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

10
votes
0answers
674 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
800 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
65 views

Can't install python requests library on Centos 5.11

I'm running Centos 5.11. I'm trying to install the python requests package. But pip keeps giving me syntax errors. pip help returns [root@32437-201824 bin]# pip help Traceback (most recent call ...
3
votes
0answers
869 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
53 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 ...
2
votes
0answers
16 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
89 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
68 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
78 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
142 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
341 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
229 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
307 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
512 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
86 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
289 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
173 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
215 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
10 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
12 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
17 views

How does the LZMA Algorithm works?

Making some research on the net, I found that one of the most recent, optimized and high-performance algorithms for data compression, especially in term of compression ratio and decompression time is ...
1
vote
0answers
11 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
21 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
19 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
89 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
84 views

How to clean up a failed pip installed app?

I was trying to install flask onto a Raspberry Pi Raspbian using pip-3.2 install flask. However, the installation failed. I tried to uninstall using pip-3.2 uninstall flask. It said "Successfully ...
1
vote
0answers
98 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
36 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
30 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
174 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
68 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 ...
1
vote
0answers
51 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
61 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
40 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
65 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
129 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 ...
1
vote
0answers
105 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
162 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
39 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
74 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
76 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
199 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
36 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
91 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 ...
1
vote
0answers
25 views

Python not finding appropriate modules/ python version problems

I'm trying to install w3af, and getting a myriad of dependency issues; these I'm trying to resolve by attempting to run a python script which imports the required modules - if this runs without ...
1
vote
0answers
220 views

How to add existing django project to Aptana Studio 3 without modifying files?

I have created a new Django project using django-admin startproject mysite on C:\tuts\ The initial file structure is as shown in the official documentation where the root folder of the project ...
1
vote
0answers
46 views

Sort lines to form a unique words dictionary listing

Many a times we build dictionaries in online forums for typical words used in a forum, the user responds in following format in a phpbb forum term: defination hence the job is to collect all these ...
1
vote
0answers
120 views

Installing specific Not-In-Repository version of python-dev within virtualenv without using VCS

I have read the question : How can I install python-dev without sudo? However it does not quite cover the issues I am facing. I have a Debian 6.0.9 server with system python 2.6.6 installed. ...