Python is an interpreted, general, high-level programming language. The design emphasizes readability. It is notable for using tabs to indicate block levels. As a dynamic language, it shares many similarities to Ruby, Perl, and Scheme. The language is very popular for scientific computing and ...

learn more… | top users | synonyms

0
votes
0answers
22 views

How to convert wordpress export file to blogger format

tl;dr one part of question is how to install and use wordpress2blogger in windows and the other is to know any other option to convert wordpress export file to blogger format. answer to any one could ...
0
votes
1answer
5k views

How to launch python script as a windows Services

Using python 2.7 and windows 7. I have a python file(.py). I want to launch this script as a windows services, i.e. this code will keep on running from start to end and never terminate. I can convert ...
0
votes
0answers
11 views

My .py python file is null after PC crash? [on hold]

Yesterday my PC crashed and i had a opened .py Python file.My PC crashed and now it is showing EMPTY file but the file size is still 44 kb how to get back my data?
2
votes
2answers
60 views

pip not working on hombrew python 2.7 install

I've installed python using homebrew and I can't invoke pip from the bash. I've tried amending my .bash_profile to include /usr/local/bin/python and /usr local/share/python to no avail. When I use ...
0
votes
0answers
9 views

oocalc unknown node setting file

When I run oocalc, I get a warning: W: Unknown node under /registry/extlang: deprecated This looks like a Python warning to me. However, I do not see the warning when running Python scripts. My ...
0
votes
1answer
2k views

Remote debugging with pydev > pydevd > “connection refused”. Why?

I'm trying to have remote debugging working in Eclipse (actually Aptana 3). I'm using the same computer both for server and Aptana (localhost, ubuntu 12.04) My code looks like this: ...
1
vote
1answer
25 views

Does Libvirt have any commands to find out disk i/o information?

Disk i/o information like throughput,activity or latency, or at least some disk related data, by which the throughput, activity or latency can be calculated. Is there any virsh command or some method ...
0
votes
0answers
7 views

How can I make my python application the default for a filetype?

I am making a text editor, and would like it to be the default application to be opened when a file with the extension ".clvr" is double-clicked. I can save it to a folder, but if I click it Windows ...
2
votes
2answers
26 views

Where do I put commands to run scripts?

I'm trying to run a few scripts (whether python, java, etc). The developers in their documentation give code for me to put in. Here are some examples: java -Xmx2g -jar muTect-XXXX-XX-XX.jar ...
0
votes
1answer
20 views

Load the OS from SD card which is purposed to run on Raspberry, on my computer

I have an SD card where I want to write an OS for my Raspberry, then I want to do some modifications to its files, like create Python code files there in a convenient manner, install libs and ...
0
votes
1answer
318 views

Change pythonpath in Vim

I'm using Vim for Python coding. The problem is, that I'm writing in Python 3 and Vim settings contain only Python 2.7 paths. That does not allow me to use plugins (like python-mode) for autocomletion ...
0
votes
1answer
121 views

Compiling vim with python support - installing powerline

I spent all day yesterday backing up my hard drive, clean installing Mac OSX Yosemite, and now I'm trying to get all my stuff in order like it was before. I have powerline installed properly (it ...
2
votes
6answers
507 views

Install Python for Windows

What is the best way to install Python for Windows?
1
vote
1answer
81 views

Error when installing pip for python2.7

I have installed python2.7 on Linux and I want to install pip under /path/to/python2.7.9/bin. So I did this: > cd /path/to/setuptools-16.0 > /path/to/python2.7.9/bin/python setup.py install ...
1
vote
0answers
19 views

PYTHONPATH variable can't be echoed by non-root

I edited my sudoers file by getting root privilege as sudo -i Then I edited my sudoers file by nano /etc/sudoers I added Defaults env_keep += "PYTHONPATH" to the sudoers file. Then from root, I ...
0
votes
0answers
13 views

How to install wxpython on centos 6.5 (with python 2.7)?

I've updated python on my centos to 2.7 and installed wxpython via: yum install python-wx Unfortunately python can't find the library and I get an error: ImportError: No module named wx Did I ...
1
vote
2answers
521 views

Redirect output of remote python app started through ssh to file

I have a python app in a remote server that i need to debug, when I run the app locally it prints some debug information (including python tracebacks) that i need to monitor. Im trying to redirect ...
-2
votes
0answers
16 views

2 actions in my python script

I'm trying to create a hotkey that clears history in firefox. My script opens the dialog window but how can I send an enter key to the window? If I run: ...
11
votes
9answers
9k views

Vim: execute the script I'm working on in a split screen

I'm working on a small python script, which needs frequent execution in order to debug and further develop. Can I split the vim screen and execute my script on one part with a keystroke?
1
vote
1answer
2k views

How to permanently append a directory to PYTHON PATH on Mac

I tried the two common methods: import sys sys.path.append('foo/bar') AND export PYTHONPATH=$PYTHONPATH:foo/bar The first one terminates the appendage once interpreter is exited. The second ...
0
votes
2answers
524 views

osx: setting default python for files in terminal?

How do I set the default python for running py files without "python" keyword i.e $ django-admin.py manage.py startproject" in bash shell?
1
vote
2answers
288 views

How to change default Python path to 2.6 from 2.7.2 on iMac OSX Lion 10.8.5?

I need to install Scipy, Numpy, Scikit-Learn on my iMac, which runs on OSX Lion 10.8.5, the default Python is 2.7.2. I have downloaded Scipy, Numpy, Scikit-learn, but could not install them because ...
1
vote
1answer
97 views

How do I choose the python-framework where to install packages with pip?

I have two python-frameworks installed on my Mac OS X 10.6.8: one standard (/usr/bin/python) and now I installed 3.3. I have already figured out that pip is installing things into site-packages but ...
16
votes
9answers
16k views

How to install matplotlib on OS X?

I want to install matplotlib on OS X. If possible, using homebrew. I installed Python 2.7.1 using brew install python, I modified my path to use it I installed pip using brew install pip I installed ...
0
votes
1answer
39 views

How to clear screen on Python 3.4.2 shell?

I am trying to clear the screen on python 3.4.2 shell, I used clear screen, clear(), cls, clrscr etc. But no one is working, Please let me know the command to clear the screen.
7
votes
11answers
17k views

Scripting: what is the easiest to extact a value in a tag of a XML file?

I want to read a pom.xml ('Project Object Model' of Maven) and extract the version information. Here is an example: <?xml version="1.0" encoding="UTF-8"?><project ...
0
votes
0answers
8 views

URLField in django models allowing users to submit blank records, why?

This is what my models.py file looks like: from django.db import models class accounts(models.Model): url = models.URLField(max_length=200, blank=False) The database is still allowing blank ...
1
vote
2answers
157 views

What's the exit code for “curl -I” when not HTTP 200?

I want to check what HTTP status code is returned for an HTTP(S) URL. I don't care about content, so I just request head with curl -I $url or curl --head $url But what's the exit code I should ...
9
votes
2answers
10k views

Python / Selenium / PhantomJS: “Unable to start phantomjs with ghostdriver.”

I'm trying to get Selenium to use phantomjs on a Windows machine. My code compiles without any error: from selenium import webdriver from selenium.webdriver.common.desired_capabilities import ...
1
vote
1answer
3k views

Python installation errors

This is incredibly, annoying, I can't do anything in python until this is fixed. Thanks if you can help, I know it can be annoying to have to look at so much code but i'd really appreciate. I'm trying ...
0
votes
0answers
13 views

Powershell - Set-alias doesn't accept paramters - python

Following this tutorial i want to set an alias for python autopep8. the syntax described is. Set-Alias gs Get-Service <enter> So o copy that format i have done. PS C:\Users\sayth> ...
3
votes
8answers
12k views

Trying to edit a python file but the “edit with IDLE” has disappeared when i right click the file. How do I restore that command?

Trying to edit a python file but the "edit command" has disappeared all of a sudden when i right click the file. How do I restore the edit command so i can continue working on my python files? I am ...
7
votes
1answer
2k views

%paste magic function on ipython3

I'm using ipython3, installed on Ubuntu with apt-get. I can't use the paste magic function, it complains about missing Tkinter. But I do have Tkinter and the same thing works fine on ipython (2). ...
2
votes
1answer
280 views

Installing pymedia on OSX

Trying to install the most recent version of pymedia available at sourceforge. python setup.py install I get the error: In file included from sound/sound.cpp:33: sound/audio_unix.h:29:10: fatal ...
0
votes
1answer
2k views

Change install path to /usr/bin instead of /usr/local/bin

A simple question, but I have no concrete documentation to confirm my answer. When installing software with the make install command under a unix machine, the default path is going over to ...
0
votes
0answers
8 views

Redirecting stdout of program launched via Monit [migrated]

I am unable to redirect the output of my program to a file when that program is launched via monit. The file gets created but no data gets flushed out to it. If I run the program by hand, all works ...
0
votes
0answers
26 views

Windows: add python scripts folder to path

On windows, I have some python scripts in a folder. How can I do to invoke a script without having to specify its full path? I tried adding the folder to the PATH environment variable but it's not ...
0
votes
0answers
7 views

How to connect psql to the forumdb.py(a python file) in ubuntu?

I have my system with UbuntuOS installed. I am following an online course where it indicates the use of Vagrant and connects your Windows/Mac system using the Virtual Box having Linux installed in it. ...
1
vote
1answer
68 views

how to install autotest on linux?

I'm looking at the autotest software suite found here: https://github.com/autotest/autotest I follow the instructions in the documentation here: ...
1
vote
2answers
12k views

Windows scheduled tasks fail with 0x1, don't log errors

I have three Python scripts running overnight as scheduled tasks on a Windows Server 2008 VM. I can run them manually with no problems. But when I look at the Task Scheduler each morning, the first ...
1
vote
0answers
27 views

Adjusting 10.10 Desktop Change Python Script

I'm not fantastic in Python and I'm currently using a script based off of https://gist.github.com/gregneagle/6957826. I'm looking to make one change to the Desktop Image Dictionary Keys option in ...
3
votes
2answers
6k views

How exactly does one install `.egg` files?

When I tried downloading the Sphinx installer here, my computer couldn’t find a default application to run the installer. easy_install doesn’t work either. I’m running Python 2.7 but only have ...
1
vote
1answer
26 views

.zshrc doesn't export variable for anaconda

I installed Anaconda Python on my Mac today and following line was added to .bash_profile by Anaconda. Since I am using zsh so I moved this line to .zshrc. However, it doesn't work properly even if I ...
0
votes
0answers
12 views

How to make boxplot-like plot with histograms instead [migrated]

I'm making a plot of internet speeds. I want to show the distribution of speeds collected, bucketed by the hour in which they were collected. I'm hoping to obtain a result that looks like where for ...
3
votes
2answers
4k views

How do I install python with proper permissions?

So python installed probably fine. Or perhaps it was already on here (I'm using xubuntu 12.10). But I tried to install networkx today using pip: pip install networkx then says I don't have ...
0
votes
0answers
45 views

Sublime text 3 and PYTHONPATH environment variable (windows)

It seems that sublime text 3 on my machine isn't respecting the PYTHONPATH environment variable, meaning I cannot easily import modules in to sublime text. I've written a script to get around this ...
0
votes
0answers
6 views

download complete when run from command line but not complete run from launchd

Curious thing. I have a Python script that I've set up through launchd on my Mac to run every 5 minutes. All it does is download a file from a website. My issue/question is that when it's run that ...
0
votes
0answers
41 views

Python setup failed Unspecified error

I'm install python 3.5.0a3 first time on windows 8.1 64 bit and at just starting of installation it just says "Setup failed". Here is the log file.
1
vote
1answer
97 views

My computer can't find the git command

I recently installed git on my computer (OSX 10.10.1) and when I run git I get git: error: unable to find utility "git", not a developer tool or in PATH. So I checked, found that I didn't have the ...
15
votes
3answers
56k views

How to globally modify the default PYTHONPATH (sys.path)?

On a Ubuntu (10.10) system, I have a Python package that installs itself into /usr/local/lib/python2.6/site-packages/. This isn't contained in the default path (sys.path). How do I add this directory ...