Python is an interpreted, general, high-level programming language. Programming questions are off topic. Questions about the use of Python and should be asked at [Stack Overflow](http://www.stackoverflow.com).

learn more… | top users | synonyms

12
votes
0answers
785 views

Jenkins realtime console output for parallel threaded fabric command

We have a Python fabric command that runs in parallel across several hosts, something like this: $ fab --hosts=prod1.server,prod2.server,prod3.server --parallel copy_cache This will copy cache to ...
4
votes
0answers
819 views

Python and Google Sketchup

Is there any way of scripting Google Sketchup using Python rather than Ruby? I have had a look at SuPy but unforturnately I'm working with Python 2.6 rather than Python 2.5 which SuPy appears to ...
3
votes
0answers
158 views

Why does dnf uninstall python-pip want to uninstall Fedora?

Having trouble installing packages with pip (wow. so unexpect. much surprise) and upon trying to toss it entirely and start over (no, dnf reinstall was not sufficient) I found that dnf seemed to think ...
3
votes
0answers
889 views

Installing Tcl and Tix in OSX

I'm having trouble installing Tix on OSX the version of Tix I am using is 8.4.3. I try to install it by following the instructions in the README % ./configure % make % make install And iat the very ...
3
votes
0answers
3k views

Python Can't Find Platform Dependent Libraries — Mac Homebrew Install

In an effort to purify my environment I have recently eliminated MacPorts and all traces therein from my Mac OS 10.6.6 box, replacing it with the hip new Homebrew (https://github.com/mxcl/homebrew). ...
2
votes
0answers
18 views

Do iTunes backups store file modification times?

I have an iPhone. With a USB connection, I can use tools such as Macroplant iExplorer or Apple's Image Capture to transfer files from the iPhone to my computer. When I transfer files over USB, the ...
2
votes
0answers
84 views

youtube-dl gracefully stop download

I'm using youtube-dl to download a live stream and I'd like to be able to limit the time of the download, closing the connection once that time has elapsed. Is there a built in way to close the ...
2
votes
0answers
128 views

McAfee firewall blocks localhost in subprocess only

This is a programming-related question but seemed more appropriate for SuperUser than StackOverflow. I have installed McAfee (a trial version of LiveSafe -- Internet Security) on my PC. I am running ...
2
votes
0answers
181 views

How to install sll for python?

I have a strange problem that is described at SO http://stackoverflow.com/questions/31549052/how-to-interpret-this-traceback We got nearly nowhere trying to solve the problem though it doesn't look ...
2
votes
0answers
75 views

How do I recompile Python in VirtualEnv?

I built virtualenv and it adds Python 2.7 by default in it. After reading this solution to a bug I have, it says I have to recompile Python with the option --enable-shared. So should I rm -rf Python ...
2
votes
0answers
92 views

PyCharm having trouble with inferring ndb property type

While developing a Google AppEngine application with PyCharm, I am constantly seeing an issue where PyCharm doesn't properly infer the ndb property type. What is the best way to work around this ...
2
votes
0answers
149 views

Tor on Google App Engine Launcher

I have installed Google App Engine SDK for Python on Windows 8.1. I use Vidalia Bridge Bundle and the Chrome extension Proxy SwitchySharp to access the net through Tor. But the problem seem to be it ...
2
votes
0answers
382 views

Sublime Text 3 - Detect syntax based on file header

How would I get Sublime Text 3 to recognize file type (i.e. set syntax and build system) based on a files header? For example: If the first line of a file was <!DOCTYPE html>, it would be ...
2
votes
0answers
272 views

Moving python modules across computers

I'm going to be getting a new laptop running 64-bit Windows 7. On my current 32-bit Windows XP laptop, I have a large number of python modules in the site-packages folder that I want on the new ...
2
votes
0answers
325 views

NumPy Matplotlib install error: ftheader.h: No such file or directory (Fedora/RHEL)

When I am trying to build matplotlib-1.3.1, I am getting the below freetype header errors. Probably it is not finding the ftheader.h Any idea on how to solve this problem. NOTE: I just installed ...
2
votes
0answers
513 views

Installing MySQL-python raises compiler warnings after Mavericks

I had many python modules installed before I upgraded Mavericks and were very disappointed when I noticed that they had been removed. I installed Mavericks, and I installed the command line tools. ...
2
votes
0answers
90 views

SoX fails to concatenate *some* newly generated aiff files

I have a Python script that is using Mac OS X's built in speech synthesis API to create aiff files of some processed text via PyObjC/AppKit. Everything is working fine, but I can't get the aiff files ...
2
votes
0answers
293 views

Mac 10.5 Python libsvm 64 bit vs 32 bit

I have a Mac 10.5 when I type "python" in terminal, it says Enthought Python Distribution -- www.enthought.com Version: 7.3-2 (64-bit) Python 2.7.3 |EPD 7.3-2 (64-bit)| (default, Apr 12 2012, ...
2
votes
0answers
176 views

pydoc -p fails with gaierror

I'm getting this strange error when I try to use pydoc to look at python documentation. $ pydoc -p 10000 pydoc server stopped Traceback (most recent call last): File "/usr/bin/pydoc", line 5, in ...
2
votes
0answers
216 views

Branch names not showing in Mercurial's tab completion

I have a development machine running mercurial 1.6.3. Tab completion in bash works great for completing commands, tags and branch names. I've set up a new machine with the same mercurial version (both ...
1
vote
0answers
13 views

A way to update gimp plugins on OSX all at once

I'm using GIMP 2.8.16 and py-slice.py keeps throwing errors for layered grouped psd files and its preventing me from exporting it to web. I am simply trying to send my sliced image to web with no ...
1
vote
0answers
14 views

Apache Server Running Django Project showing only “Index of /” and the names of project files instead of running the site

When I navigate to the site, it only shows 'Index Of /' and then the files I have inserted in my htdocs. I've looked at a lot of people with this same error but haven't found a solution yet. I'm using ...
1
vote
0answers
18 views

How to convert a file format from tar.gz to tar.bz2 using the windows console?

I have some python packages in tar.gz format that I need to convert to tar.bz2. Is there a way to do that in the windows console? thanks!
1
vote
0answers
8 views

Deploying web.py project to Bluehost, WSGIServer: missing FastCGI error

I'm trying to deploy a very simple web.py app to my Bluehost website using these instructions. Here's my main python file: #!/usr/bin/python import web from web import form import whitelistchecker ...
1
vote
0answers
45 views

How to parse a Wireshark pcap for a string

What efficient ways exist to parse a Wireshark capture to check for a given string? I'm trying to find a STOP command for an embedded device that its plaintext in the Wireshark 'info' field. Are ...
1
vote
0answers
31 views

Disable Ghostery add-on intro page in Selenium Firefox profile - Python

I am using Ghosetry add-on in my Selenium Firefox profile. Firefox is opening with Ghostry add-on but I have two issues with that. 1.Every time I invoke Selenium-Firefox, it is going to intro page ...
1
vote
0answers
43 views

python34 installing rtree on Windows 64

I am using windows10 64 bits, my os.name is 'nt', I used pip to install but its complaining about the spatialindex_c.dll File ...
1
vote
0answers
65 views

Running `pip` gives 'command not found' after successful Python homebrew install

To preface, I am very bad with the terminal, please be patient with me. when I run pip I get: zsh: command not found: pip I have installed Python 2.7.11 with brew, which should allow pip to work ...
1
vote
0answers
39 views

Can't import python module in .vimrc

So, I decided to try out powerline in vim, and for that reason I installed pypy using brew. I installed macvim as well and it is compiled with python support. Following powerline installation ...
1
vote
0answers
16 views

How do you add Python syntax highlighting to a markdown file in vim?

For Vim how do I add Python syntax highlighting to markdown files? Context I'm creating a markdown document to show how to use a project. Fairly simple thing if __name__ == "__main__": ...
1
vote
0answers
28 views

I cant run python from cmd but it lead to python.exe

I am new in python and i try run it in window. I use window 10 and python 3.5. I changed the environment variable already and when i type "python" in my cmd it doesn't run like i saw from the other ...
1
vote
0answers
36 views

pip install virtualenv taking forever on Windows 7

I'm trying to setup everything in order to start developing with python and Django on a Windows 7 laptop. I already installed python 2.7.11 from here and installed pip using the get-pip.py script and ...
1
vote
0answers
182 views

Error installing Python package Leven using Visual C++, Python27 64 bit, Windows 10, even installing directly from github

I am having trouble installing the Python package Leven. I downloaded the python package from there. I extract the folder, went to where setup.py is located, open cmd and run python setup.py ...
1
vote
0answers
126 views

pip hangs after upgrade to 7.1.2 on Windows x64

I am using the Anaconda distribution for my programming needs in python (Python 2.7.10 :: Anaconda 2.3.0 (64-bit)) - running under Windows 10. After upgrading the pip package manager to the latest ...
1
vote
0answers
41 views

Python 2.7 don't have HTTPSHandler and _ssl modules on Centos4.4

I build Python 2.7 from source code on Centos4.4, but there aren't HTTPSHandler and _ssl modules in Python2.7.10. I have already installed and upgrade openssl and openssl-devel before building ...
1
vote
0answers
43 views

noVNC console on Openstack Dashboard is rendering garbled UI on RHEL7

I am running nova-compute on RHEL7. Openstack dashboard's noVNC console is rendering garbled UI for any instance having a UI console. Can somebody please help out? This is working just fine on RHEL65 ...
1
vote
0answers
8 views

How can I insert at the start of a line a string dependent on two other string values that define beginning and end locations using python note++

How to use Python plugin for note++ for the example below...please advice So for example, I have First x y z Second a b c Third d e f The result I would like to achieve is; First Q1 x Q1 y Q1 z ...
1
vote
0answers
212 views

The system cannot find the file specified error when using subprocess.check_output()

I have a sed command like : sed -r 's/^((.){20})/\n/' log1.txt I want the above command to be executed in python script. I tried something like this : path = 'log1.txt' sedcmd = 's/^((.){20}/\n/' ...
1
vote
0answers
59 views

How do you download a zipped build from a jenkins job using “jenkinsapi” module in Python?

Has anyone tried download a build using jenkinsapi module in Python?
1
vote
0answers
68 views

How to automate pressing right command key on a macbook using python

I am doing some automation for my testing work on mac. While a lot of tools and libraries are available to simulate button pressing on keyboard(like pyautogui and osascript), I could not find a way to ...
1
vote
0answers
43 views

why is my master node idle when running gnu parallel remotely?

I'm using gnu-parallel to run a number of python scripts in parallel across a number of computers in my gigabit network. The files being processed are located on a tmpfs (RAM) folder on my master ...
1
vote
0answers
98 views

Issue installing PyPar on Ubuntu

I am attempting to install pypar the parallel computing python toolbox on Ubuntu ver 14.04.1 LTS (code name trusty). Essentially I'm having installation errors and was wondering if anybody knows what ...
1
vote
0answers
119 views

How do I use the Python commands in PowerShell?

I work in a GIS department and I'm trying to learn Python to automate something boring. I started using "Learn Python the Hard Way", but I can't figure out how to run Python scripts from PowerShell. I ...
1
vote
0answers
180 views

Cannot get pip working on Python 2.6 in Fedora 22 Virtualbox

I'm working on a project that must be tested in a Fedora VM with Python 2.6.6. I have successfully installed that (so I can use that instead of the default 2.7), but I need to install some packages ...
1
vote
0answers
40 views

Delete parts of sequential files in folders in windows

I need to find a way to delete parts of sequences of files. For example in specific folder I have several subfolders, which contain: blabla_0001.jpg blabla_0002.jpg blabla_0003.jpg blabla_0004.jpg ...
1
vote
0answers
89 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 ...
1
vote
0answers
84 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 ...
1
vote
0answers
241 views

Is it possible to install llvmlite Python package on Cygwin?

When trying to install llvmlite Python package on cygwin, I get the following errors: $ pip install llvmlite Downloading/unpacking llvmlite Downloading llvmlite-0.4.0.tar.gz (69kB): 69kB downloaded ...
1
vote
0answers
43 views

Python IDEs stopped working

I'm a beginner programming student, and was using PyScriptor as my Python IDE. Today I wanted to start working and surprisingly, I get an error when starting PyScriptor: Python could not be ...
1
vote
0answers
100 views

Can we send and receive uTorrent packets through TOR?

I just started using pcapy python module to capture network packets. Is it possible to capture packets going out from uTorrent (on my own machine) with pcapy or scapy and sending them over the TOR ...