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

2
votes
0answers
217 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 ...
2
votes
3answers
535 views

View Script Over SSH?

A friend, using a remote machine, ran a script that SSHed to my machine, and ran the following python script that resides on my machine: while (1): ....print "hello world" (this script simply ...
1
vote
1answer
3k views

Why doesn't iPython see readline?

I am trying to compare/contrast various python tools and I would like ipython in the mix, but when I run ipython I get the readline warning even though readline is installed on my mac: WARNING: ...
5
votes
1answer
4k views

How to install Python newt or snack in Mac OS X for byobu

I've installed byobu in Mac OS X 10.6.5. It will start, (i.e. it will start a screen session) but in order to run byobu-config and probably in order to do some other things I need a module called ...
1
vote
1answer
8k views

Any way to (easily) upgrade Python in Ubuntu?

I had Ubuntu 10.04 installed, which came with Python 2.6. Then I installed 3.1 and just used either one. At one point I think I installed a bunch of libraries as well, must've used apt-get to get a ...
2
votes
3answers
3k views

Always run a particular python script when system starts

How can I have a particular python script always run on my system automatically when my system starts until I shut down? There should be some simple way by which I can just put that small script in ...
0
votes
6answers
462 views

Hit a website every X minutes [closed]

Is there any script or service that hits a specified website every X minutes?
2
votes
1answer
123 views

problems on installing py25-py2app-devel

I'm trying to install py25-py2app-devel on a Mac 10.5.8 Darwin 9.8.0 because it's required to py25-matplotlib. Using porticus I receive this error: Error: Target org.macports.destroot returned: ...
1
vote
2answers
462 views

Video from Frames at the OS X Command Line or Python?

I am looking for a good way to turn a stack of images into a video on the command line or python. Here is my setup: OS X 10.6 Sequence of images either in png or pdf format. (i.e. 001.png, ...
1
vote
3answers
585 views

How to capture the arguments passed to an .exe when is called by another program? (Windows)

I have two programs: When A.exe is running, it calls B.exe with a series of arguments. Any suggestions as to how can I see these arguments? I could write another B.exe program to do that, but it ...
1
vote
0answers
2k views

ImportError: No module named _md5

I am trying to install Altera's Quartus 10 web edition 32 bit (but I think only the 32bit part is relevant to my problem) on Fedora 14 (x86_64bit), which runs inside a VM. When I run the installer: ...
5
votes
1answer
3k views

Launch XBMC from command line and play movie from timepoint

What is the easiest way to launch XBMC and play a movie from a certain timepoint? Apparently there aren't many command line options (ref), and the XBMC python scripts seem to be designed to run from ...
1
vote
1answer
769 views

How do I totally reinstall setup tools and all associated stuff

My setups tools system appears to be broken beyond recovery. And no doubt my attempts at recovering it have made it worse. Now I'm looking for the "nuke the site from orbit" option. I've already ...
9
votes
5answers
10k views

Adding programming code into LaTex / LyX

Maybe I'm just being thick, but I can't find any sensible way to simply paste in my (python) code into latex without losing all the indent information (kinda important for python). Anyone got any ...
2
votes
1answer
307 views

Modern Python installation in home folder for scientific computing on RHEL

For various reasons, our system administrator finds Ubuntu to be too cutting-edge for our production workstation, and we have now installed Red Hat Enterprise Linux 5.5 (RHEL). I'm not terribly ...
3
votes
3answers
8k views

How can I get apt-get to install python packages for a different version of python?

In Ubuntu 10.10, I have installed python 2.7. I would like to use apt-get to install packages to this version of python but I haven't been able to figure out how. Things I have tried without ...
1
vote
1answer
3k views

Why urllib2 doesn't work for me?

I have installed 3 different python script on my ubuntu 10.04 32 bit machine with python 2.6.5. All of these use the urllib2 and I always get this error: urllib2.URLError: Why ? Examples: ...
0
votes
1answer
160 views

cgi-bin python script not working because of too many file permissions?

Yesterday python got activated on my web space as cgi-bin. I tried to run some scripts, but with little success. I asked the support for help, they kept saying the file permissions where the issue and ...
6
votes
7answers
18k views

How to convert .xlsx to .txt?

I want to know if there is a Linux tool or a script available to convert .xlsx file to .txt.
0
votes
3answers
1k views

remotely execute bash or python scripts via webserver on ubuntu

Hi I want to run certain scripts on my linux machine by simply clicking a link on a webpage that is supplied by a webserver running on that machine. It is currently running ubuntu, which webserver ...
2
votes
1answer
6k views

dpkg: error processing /var/cache/apt/archives/python2.6-minimal_2.6.6-5ubuntu1_i386.deb (--unpack)

I had an issue (Question 199582) which was resolved. Unfortunately I am stuck at this point now. Running root@X100e:/var/cache/apt/archives# apt-get dist-upgrade Reading package lists... Done ...
16
votes
6answers
31k views

installing wxpython via pip or easy_install

I am running into some problems installing wxpython using pip. Here is my current output: [myuserid]% sudo pip install wxpython Downloading/unpacking wxpython Downloading ...
2
votes
1answer
2k views

Is there a Python 3 console plugin for gedit?

I recently moved from Windows to Ubuntu and am settling into a new text-editor; gedit. With its plugins, gedit is surprisingly capable. I thought I would need to run"Notepad++ in Wine", but the ...
0
votes
1answer
2k views

How to install Psyco: Getting “No Python installation found in Registry”

I want to install Psyco on my Windows 7 x64. I have Python 3 installed but i am getting the error No Python Installation Found in Registry
1
vote
3answers
1k views

How to keep the terminal open if I run the python application by double clicking it?

I'm using Python in Windows XP. I'm running a python program by double clicking on it since it is a shared folder and I cannot refer to that file from terminal. It works well, but the terminal ...
1
vote
5answers
12k views

Run a file on startup in Linux

I have a Python script that I would like to have run on startup in Ubuntu. Is there an easy way to do this?
0
votes
3answers
3k views

updating Python from version 2.6.5 to 2.7 on Linux server without reinstalling 3rd-party modules

I have a web server that is running Debian Linux 4.3.2-1.1 and Python 2.6.5. I would like to upgrade the Python interpreter to 2.7 without having to reinstall my modules. Is there an easy way to do ...
1
vote
1answer
560 views

Python and Berkeley DB versions in RedHat Enterprise Linux 3, 4, 5 and upcoming 6

I need to know what versions of Python and Berkeley DB are installed with RHEL 3, 4 and 5. If possible (it is in BETA now), RHEL 6 too.
0
votes
2answers
1k views

xinetd keeps process open when client disconnects

I've asked this question more or less before on stackoverflow and believed it to be solved (hence accepted the answer) but it turns out it wasnt solved. :-( In simple terms, I've written a python ...
2
votes
2answers
482 views

Creating aliases for version specific macports ports

In Macports, I've just installed 'python27' along with various 'py27-*' ports. I've noticed that ports like 'py27-nose' and 'py27-pip' are available in my path as 'nose-2.7' and 'pip-2.7'. I can use ...
0
votes
2answers
296 views

Unfolding not matching problem with TextMate/Python mode

As shown below: TextMate's Python mode can't detect the end of a Python function. As a result, the folding/unfolding action isn't working for Python code. Is this a bug of the Python bundle? If ...
1
vote
4answers
368 views

Why can I not delete “Python25” folder from my C disk?

Why can I not delete "Python25" folder from my C disk? I have already uninstalled Python from the control panel, but I still can't get rid of this folder. Some message pops up (it's in Chinese so I ...
1
vote
0answers
183 views

Scribes Editor: no toolbar, statusbar or scrolbars visible

I'm planning to give the Scribes text editor a try in everyday usage. Branching ang compiling the Python code went fine, but when I start it up. I don't see any toolbars or statusbars. This Iis all ...
0
votes
2answers
664 views

VIM script for auto-completing Python identifier names

I'm used to working with the nifty "code-intelligence" auto-completion of identifiers in Komodo IDE. In the non-graphic work environments that I still have, I'm craving for a similar capability inside ...
0
votes
1answer
225 views

How to always run the same file in a Python project?

Is there a way to always run the same file in TextMate, when working on a Python project? I always press ⌘+R when editing a random file, forgetting to switch back to the tab containing the main of ...
0
votes
1answer
657 views

Remove Python 2.5 on Fedora

I followed this tutorial http://paltman.com/2007/nov/15/getting-ssl-support-in-python-251/ and installed python 2.5. Now when I enter the python terminal it reads python 2.5 and not 2.6. How do I ...
0
votes
3answers
2k views

Removing Python 2.5 in Fedora

I followed this tutorial http://paltman.com/2007/nov/15/getting-ssl-support-in-python-251/ and installed python 2.5. Now when I enter the python terminal it reads python 2.5 and not 2.6. How do I ...
0
votes
1answer
782 views

Apache serves .py as downloadable file instead of executing it

Ubuntu machine. Installed mod_python using apt-get. added <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order ...
0
votes
1answer
292 views

How to enable the libattr frature(abbreviated xattr) in linux?

I would use xattr in python, but found the xattr's keys() is empty, does that indicate the libattr feature wasn't enabled? I've learned the libattr feature is disabled in ext3/ext4 by default, but how ...
41
votes
7answers
24k views

emacs: how to indent/unindent region of python code by 4 spaces?

I have a region of python code selected in emacs. What are the most efficient ways to indent and unindent every line in it by 4 spaces? Ideally I'd like something that's not context sensitive (eg. ...
3
votes
1answer
2k views

Ubuntu 64bit - Best way to install Python 32bit

I'm running Ubuntu 10.4 64bit, and I would like to run python 32bit. The current Python version used is the 64bit one. What can be some good ways for installing the python 32bit version without ...
5
votes
2answers
8k views

How can I set up the python environment variable on Windows 7?

I would sure like to be able to type "python" on my command line instead of C:\Python27\python.exe. So to that end I'm trying to get the environment variable set up for myself. Problem is, I can't ...
2
votes
2answers
2k views

Compiling Python 3.1.1 in Windows XP

My grandson is learning Python. We have installed Python 3.1.1 for him on our Windows XP (home edition). He has written a couple of short programs, and now wishes to compile those programs into ...
3
votes
2answers
2k views

Version 5.7 of autoindent Python in Notepad++ half works

Autoindenting doesn't work on Notepad++ correctly. I can't find the equivalent SciTE file. menu Settings -> Preferences -> MISC -> Auto-indent is checked. I can't find any other Python indent settings ...
1
vote
1answer
3k views

Python Won't Install On Windows 7

I'm trying to install Python on my Windows 7 (64-bit) - AMD Sempron Machine. I downloaded the 3.1.2 Windows X86-64 installer. After running it and selecting the option to install it for all users, the ...
0
votes
1answer
234 views

Python 3.1.2 Interpreter lacks shell feaures on OS X when compiled from source

The version of Python provided by default in Snow Leopard makes available some features of the bash shell (i.e., command history, keyboard shortcuts, etc.) to its interactive interpreter. After ...
0
votes
1answer
3k views

Installed python module is not found

This borders on stackoverflow/superuser, but I guess it's a simple installation problem. I've installed python-twisted on my ubuntu 10.04 server, but it can't be found. This is what I get when I try ...
4
votes
0answers
830 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 ...
0
votes
1answer
421 views

Internet connection problem through python urllib2 and wget

I have recently shifted from behind the proxy to direct connection settings. I removed http_proxy and now my apt-get update and upgrade works fine but somehow I am not able o connect to internet ...
0
votes
1answer
1k views

How to build libsvm-2.91 for Python on OS X 10.6.4 Snow Leopard using SWIG 2.0?

Problem: I've inherited work on a Django we app that makes use Python modules that import svmc. When I type ./manage.py runserver I get the following: Error: No module named svmc Solution sought: ...