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

8
votes
0answers
451 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 ...
7
votes
0answers
534 views

gedit indent guides

I would like some indent guides for gedit. This is very useful in python code. I couldn't find such an option in the settings, nor a plugin to add it. Does anyone know how to make such a thing ...
3
votes
0answers
391 views

Creating multipart/alternative mails in mutt?

I'd like to create a text/plain message using Markdown formatting and transform that into a multipart/alternative message where the text/html part has been generated from the Markdown. I've tried ...
3
votes
0answers
826 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). ...
3
votes
0answers
735 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 ...
2
votes
0answers
35 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
120 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
282 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
160 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
277 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
503 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
78 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
279 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
162 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
213 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
9 views

python2.7 from macports stdin issue

My python2.7 from macports seems to mess up with osx terminal in a weird way. Here is what I mean. The exact input from the keyboard was: /opt/local/bin/python2.7<ENTER> a = 3<ENTER> ...
1
vote
0answers
14 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
10 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
25 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
21 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
19 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
45 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
42 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
71 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
34 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
44 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
57 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
117 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

Default OSX hash key produces non-ASCII error in Python?

I'm using OSX Yosemite on a Macbook Pro with a UK keyboard. When I type # into a Python file (using Alt+3) I sometimes, but not always, see this syntax error when I try to run the Python file: ...
1
vote
0answers
29 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
312 views

What “requirement” do I need to give to pip?

I am trying to install PyECC on a Windows 7 machine. Pip is pretty inconsistent, so I'm not sure what it wants this time. First I ran pip install PyECC and got Collecting PyECC Could not find any ...
1
vote
0answers
70 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
19 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
46 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 ...
1
vote
0answers
171 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
42 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
478 views

Outline view in Sublime Text 3

I've been advised to use SublimeText and I'm giving it a try. When I take notes in a text file, I would like to structure it with a few levels of headers (in LaTeX, that would be sections and ...
1
vote
0answers
96 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. ...
1
vote
0answers
251 views

How can I tell WebSphere wsadmin to run a python package rather than a single python file?

I'm trying to create a jython package that will allow the user to conduct some WebSphere actions from the command line. I'm using jython as the language and specify the file to run with the call to ...
1
vote
0answers
60 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 ...
1
vote
0answers
117 views

Importing pygments' highlighting to vim

Usually, vim does very good job in highlighting, using the packaged syntax files. Unfortunately, it does bad job with MySQL. At first, I looked everywhere for a better MySQL vim syntax file, with no ...
1
vote
0answers
567 views

PyV8 failing to install with pip, does not compile in Fedora 20

I am having the exact same issue as here: https://code.google.com/p/pyv8/issues/detail?id=132, but answer didn't work either. I am trying to install PyV8 using pip in Fedora 20. I get this: $ pip ...
1
vote
0answers
178 views

is pip install scipy fails with ld: symbol(s) not found for architecture x86_64

I am trying to install python scipy in a virtual environment using pip install scipy It fails with the following error ... ld: symbol(s) not found for architecture x86_64 collect2: error: ld ...
1
vote
0answers
151 views

How to forward data to mysql server using socket module in python

How to forward data to mysql server using socket module in python, i have try to import socket and connect it to mysql server for test, but have no data received from it, my code like this def ...
1
vote
0answers
85 views

Have fill-region break Python code into multiple lines to stay under 80 columns in Emacs

How can I get Emacs' indent-region command to re-indent def foo(): my_favorite_object_ever = ObjectConstructor(cool_parameter=4, not_cool_parameter=5) as def foo(): my_favorite_object_ever ...
1
vote
0answers
342 views

Pycharm community: how to revert to previous version (uninstall 3.0.2 patch which breaks Terminal plugin)

Is there a way to undo pycharm patch installtion and downgrade from 3.0.2 to 3.0.0 ? JetBrains web page under previous versions shows only 2.X branch and it's not clear where to get original 3.0.0 ...
1
vote
0answers
242 views

pip install fails on guest Linux Mint 15

On my Windows 7 PC, I installed VMware VM for Linux Mint 15. Windows PC is behind corporate firewall /proxy server. Now inside Linux I issued: sudo apt-get install python-virtualenv Then created ...
1
vote
0answers
234 views

Mac: Run screen command from launchctl

I have a Python script that I would like to run on a Mac at system start up in a detached screen session. The Python File (foo.py): import time import datetime while True: print 'hello', ...
1
vote
0answers
330 views

Tunnel HTTPS traffic through a proxy on Mac OS X

I am trying to route all my browser traffic through an HTTP proxy for debugging reasons. I have tried mitmproxy and burp, with Firefox, Safari and Chrome on Mac OS X. The problem I'm having is that ...