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

3
votes
0answers
70 views

how to include python modules not under distribution root in setup.py?

I am new to python and am figuring out and using distutils to create a distribution for a python project, in the setup.py file you indicate which python modules to be included with the option ...
3
votes
0answers
411 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
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
640 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
61 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 ...
2
votes
0answers
52 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
163 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
59 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
60 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
263 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 ...
2
votes
0answers
232 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
135 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
680 views

Install python pywin32 in WINE?

I'm trying to install python under WINE in order to run and communicate with a windows application that uses COM. I've tried the following but neither seems to work: [root@localhost ForCentOS]# wine ...
2
votes
0answers
709 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 ...
2
votes
0answers
204 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
11 views
+50

Is my understanding of the WSGI path correct

My past web application experience is limited to a few Apache+PHP experiments. Starting from this background I've been reading up on using Python for REST services, and this is my current ...
1
vote
0answers
78 views

How to connect a Raspberry PI to a PC using wifi

For a schoolproject i'm making a quadcopter which can be flown from a laptop. On board of the quadcopter is a Raspberry PI to stabilize the aircraft and send back a video signal to the laptop. Im just ...
1
vote
0answers
21 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
58 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
17 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
377 views

Looping on image2pipe with FFMPEG

I have a Python program that generates images at various intervals. I'd like to be able to create a streaming video of each image as it appears. Previously I was using an ffmpeg command like ffmpg ...
1
vote
0answers
322 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
52 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
201 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
24 views

Nautilus, Ask for confirmation when moving files

I need Nautilus to ask for confirmation when moving files from one folder to another. Is it possible to set this up? I guess I need something that listens to moves.
1
vote
0answers
167 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
192 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 ...
1
vote
0answers
427 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. ...
1
vote
0answers
164 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
238 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 ...
1
vote
0answers
63 views

Possible Firewall Issue

WHen I try to access the internet through IE with the follwing proxy details , I am able to access ineternet succcesfully Proxy : MyProxy , Port: 88 But when I try to access the same ...
1
vote
0answers
120 views

Pylint on Windows XP and Cygwin

Having recently upgraded my Python installation from 2.4 to 2.7 (ActiveState), I can no longer get pylint to work in either Cygwin: $ pylint C:\Python27\Python.exe: can't open file ...
1
vote
0answers
120 views

EOFError when executing python scripts that need user input inside emacs

EOFError: EOF when reading a line Is what I'm getting when executing this one line script inside emacs in python-mode (by pressing C-c C-c) : print raw_input(">") Is there a way to make ...
1
vote
0answers
166 views

Record line-in audio from two applications using Alsa

Im currently working on an small application which runs on a cubieboard (ARMv7, rasp-pi-like). What I really need to do is, accessing and recording the line-in audio-signal from two different ...
1
vote
0answers
135 views

File written by Python on Windows 7 does not have expected permissions

I'm using a python module to write a file on Windows 7. When I Rightclick->Properties->Security on the file I see that: Everyone, me and None have Special permissions. System and Administrators have ...
1
vote
0answers
156 views

Is it possible to delete unused media from the file system in Django, systematically?

I have a django project in which the admins are able to upload media. As items sell, they are deleted from the site, thus removing their entry in the MySQL database. The images associated with the ...
1
vote
0answers
69 views

List repositories from multiple projects in Trac using mod_python

Currently working on a customized webpage that shows the available projects I have in Trac (1.0.1). I am using mod_python to connect the trac interface. I found a standard page for this, but it didn't ...
1
vote
0answers
76 views

Windows 7, Python script to use command to access megawarc web archive file,

I've found myself having to use a Python script to access a web archive. What I have is a 'megawarc' web archive file from http://archive.org/details/archiveteam-fanfiction-warc-11. I need to ...
1
vote
0answers
168 views

PYTHON EGG Cache extraction error - PYTHON_EGG_CACHE

I have Fedora 18 installed as the OS in my machine. I created a user called myworld. I installed the MapFish virtual environment and created a MapFish application. Now I tried to run that application ...
1
vote
0answers
109 views

Python taking too much memory on server,

I have a running EC2 instance on amazon AWS. and some time server gives me the memory maximum utilization above 97%. When i saw my server stats on newrelic That showed me the below running processes ...
1
vote
0answers
270 views

installing Django on a remote server not working

I am attempting to install Django on a remote server. I have yum installed the following: apache mod_wsgi Django mysql (python is already installed) I have uploaded my project to the directory: ...
1
vote
0answers
77 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 ...
1
vote
0answers
202 views

install python on AIX no root

I found the python version is old on our cluster. How to install python on AIX without root? Could you provide some guidance. Thanks.
1
vote
0answers
89 views

How to install pkg in a non-standard location? (OS X)

In brief, my question is this: How can I install an OS X framework from a *.pkg file somewhere other than under /Library/Frameworks (or /System/Library/Frameworks)? Background I want to ...
1
vote
0answers
88 views

Autostarting Python Script Can't Open txt File, DoubleClicking it Works Fine

So I have a Python 2.7 script and I'm running xubuntu. When I run the script by double clicking it, everything works fine. However, I recently added it to the autostart menu and it runs but once it's ...
1
vote
0answers
73 views

How to uninstall a program that was not installed using the package manager?

So, I installed canto Atom/RSS reader using the source from the official website, but it was throwing me errors so I installed it using apt-get (this worked). Now, I want to uninstall the original but ...
1
vote
0answers
457 views

Python 3.3, Issues with PATH

All, I am just beginning with learning Python 3.3. After installing Python 3.3 and having the installer update my PATH (on Windows Vista) automatically, I am trying just typing python from any ...
1
vote
0answers
68 views

Aptana Studio 3 opens a copy of source while debugging

While debugging a Python script, Aptana always opens a second window with my source code. If I edit this second file, and then go to my "original" file, it will ask me if I want to load the changes ...
1
vote
0answers
120 views

No output returned when curl ing any URL in Red Hat 6 but the same url works in lynx browser

I am trying to install some packages in Python using easy install. But i get a 'Download Error' for any package i try to install. So i tried to test if internet is accessible at all from the machine ...
1
vote
0answers
565 views

Messed up Python path in OS X

I am using python 2.7 in Mac OS X (10.7). I have been trying to install OpenCV, but to no avail. In one attempt to get OpenCV to install properly I tried the MacPorts version of OpenCV, and I ...