Questions tagged [python]

Python is a dynamically and strongly typed programming language that encourages readability.

1743 questions
0
votes
1 answer

Django WSGI segfaults when importing setproctitle module

I want to use the python setproctitle module to update the process name of a python WSGI worker process when it starts working on a request. (This is to try to track down what URLs are using all the CPU). I have written a simple Django middleware…
Amandasaurus
  • 31,471
  • 65
  • 192
  • 253
0
votes
4 answers

What is the best online python tutorial?

I would like to learn the basics in a few days during the holidays.
Jerry33
  • 148
  • 5
0
votes
1 answer

source of "python-program" in apache2 config file

I'm attempting to tweak my server but I don't understand what the definition of "python-program" is in a site configuration file. And by that, I understand it's some sort of reference to python. What I mean, where is it defined? Which version does…
Frank V
  • 449
  • 4
  • 15
0
votes
3 answers

Commands to Python Script in Command Line ( except CTRL+C)

I have a Python Script, running in command line. In some machines ( maybe Linux, I don't know), I can terminate the service by typing CTRL+C. However, I can't do this in my Windows XP machine. Is there any Python script terminator that I can try…
Graviton
  • 2,865
  • 12
  • 42
  • 64
0
votes
1 answer

How to install python 2.6 on lenny

I would like the easiest way possible to install 2.6 on Lenny. I get really frustrated with compiling from source cause i can never get it right. any help will be great! Thanks
0
votes
2 answers

Apache mod_wsgi error

I have followed this guide to setup django on a cpanel server (CentOS 5.2) http://toic.org/2010/08/14/django-on-cpanel-with-python2-6-virtualenv-and-mod_wsgi/comment-page-1/#comment-680 I get a 500 page on the domain I've set up. Apache Log: File…
Benbob
  • 277
  • 1
  • 6
  • 19
0
votes
1 answer

Python Version for HPC with Numpy/Scipy

I am looking to setup an HPC cluster so that it has a modern installation of Python with Numpy/Scipy on the compute nodes. The version of Linux we are using has Python 2.4 installed by default. I know there have been a number of new features and…
dtlussier
  • 103
  • 3
0
votes
1 answer

Python actions depending on time

I want to set up some code that depending on the time of day (internal computer time i guess). It switches to do something else. Heres in english: y = 1
if 6:30am then
x = 1 + y
if 7:00am then
x = 2 + y
if any_other_time…
0
votes
1 answer

Tornado Startup Management

I have an application written to run in Tornado server.. The application should start on boot, and if it fails ( be restarted ) Currently I am using supervisord, but i wanted to see what else is available that might be better.. Anyone have…
Arenstar
  • 3,602
  • 2
  • 25
  • 34
0
votes
11 answers

Check who is logged in on another machine without ssh?

Is there a way to find out who is logged in to another Linux machine on the network given the machine name and not just sshing into that machine and running who? I'd prefer a way directly in python, but through a command would be fine.
voodoogiant
0
votes
1 answer

pyexiv2 build error src/exiv2wrapper.hpp:32:29: error: exiv2/preview.hpp: No such file or directory

The other day I used apt-get install python-pyexiv2 on my ubuntu server, but it seems to have given me an old version. It's not compatible with the code I wrote in my local development environment so I'd like to update it. I downloaded the latest…
Jake
  • 619
  • 4
  • 7
  • 18
0
votes
2 answers

When I get 500 Internal Server Errors for Python scripts, where can I find the log file

Sorry for the newb question, I just got a VPS and I've installed Python and moved my site over. Everything works, but when I try to run scripts (in /cgi-bin/ ) I get 500 Internal Server Error. Where can I locate the error log for this? My info…
Parker
  • 101
  • 1
  • 4
0
votes
1 answer

When can an FTP server close its passive connections?

Does the FTP protocol allow the server to close any of its passive connections while the client is still connected? Can it tell when the client is finished receiving and then close the connection? I'm including an FTP server in my application using…
Don Kirkby
  • 1,354
  • 3
  • 11
  • 23
0
votes
1 answer

Send commands between two computers over the internet

I wish to control my computer (and usb devices attached to the computer) at home with any computer that is connected to the internet. The computer at home must have a program installed that receives commands from any other computer that is connected…
user58183
0
votes
1 answer

Ubuntu 10.10: Python 2.5 for App Engine and pygtk

I need Python 2.5 for Google App Engine. I downloaded and compiled Python 2.5.5 from sources, set it as default python, but now when I try to run Ubuntu Software Center I get: ImportError: No module named pygtk ReInstalling python-gtk2 does not…