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

learn more… | top users | synonyms

1
vote
1answer
1k views

Install Twisted on CentOS 5.5

CentOS 5.5 is using the old python 2.4 ! But I want to install Twisted on it ! Does anyone maintain a RPM of this library ?
4
votes
1answer
2k views

Daemon can't be started from fabric script or on boot - only interactively

I have a daemon script in /etc/init.d that performs some background packet logging using the tcpdump command. The script starts up fine using an interactive shell using sudo /etc/init.d/packetlog ...
3
votes
2answers
723 views

Connecting to Exchange PowerShell from a Linux machine

We currently have a Python script that automates user creation tasks on our servers. This script provisions users in OpenLDAP and ActiveDirectory by using python-ldap. Now, I want to modify some ...
5
votes
4answers
5k views

Small Linux distro for use as server

I'm doing a development that requires multiple machines, in-order to check. Currently, I'm running Python code on a full-fledged Linux VM. This makes it hard for me to run more than 2 machines inside ...
0
votes
1answer
842 views

Python script take long time to backup folder

I copied this script from some book to make tar.bz2 of some folders for backup. #!/usr/bin/env python import tarfile, os def make_tar(folder_to_backup, dest_folder, compression='bz2'): if ...
1
vote
1answer
363 views

how to make pyinotify to run a program on any modification over a file?

I have to watch for any input given to or any changes that made in the present content over a file, upon any modification i need to run a python program which is located in the same folder. I tried ...
0
votes
1answer
87 views

Got error while encoding text in linux

I am using python code to encode text before inserting into a database in a remote server (linux). Since I have special characters so I need to encode them to unicode. But I got following error while ...
0
votes
1answer
2k views

IOError: [Errno 32] Broken pipe

I got "IOError: [Errno 32] Broken pipe" while writing files in linux. I am using python to read each line a of csv file and then write into a database table. My code is f = open(path,'r') command ...
0
votes
1answer
110 views

Whhich is best way to do linux tasks via shell commands or via python scripts

I want to build the web interface for executing or doing linux tasks . Although there may be some existing tools but i have build a complete system on the top of that so i need to program that system ...
0
votes
1answer
1k views

Cant make mod_wsgi-3.3 on centos, is there a python2.7-dev(el) package?

I'm trying to get mod_wsgi to work om my CentOs server so I can run Django sites on apache. I've installed python2.7 paralel to 2.4 (because you have to keep 2.4 in order to keep yum happy), the root ...
0
votes
3answers
471 views

creating database in remote server

I want to install a postgresql database on a remote linux server. In order to create the database on the remote server, I wrote a script in a python that executes the commands on the server. I am ...
0
votes
2answers
148 views

Linux - Software I'm installing needs to know path to JDK installation

I'm trying to install this Python library (works with Java) and the read me file says to tell it the path to my JDK installation. Any ideas how I would find this? What is it asking for, a directory? ...
2
votes
1answer
98 views

How to install python 2.6 on CentoOS? [closed]

I am new to linux. I want to install Python 2.6 on CentOS. How can I intall them ?
4
votes
4answers
474 views

Confused with doing sys admin things with python or not

I was doing backups in bash and I have written few other bash scripts as well. I wanted to shift it to python because I needed to learn python for AI techniques and I was always delaying that. As I ...
2
votes
2answers
1k views

Deploying Django with mod_wsgi

/etc/apache2/site-available/mysite.com <VirtualHost my_ip_here:80> ServerAdmin foo@mysite.com ServerName mysite.com ServerAlias www.mysite.com WSGIScriptAlias / /srv/www/...
0
votes
2answers
1k views

Error Installing mod_wsgi on RedHat

I'm trying to install mod_wsgi on RedHat Linux. And I'm getting this error: apxs:Error: Command failed with rc=65536 The answer seems to be here, but I think I already have 64 bit Python so I'm ...
0
votes
4answers
311 views

High Performance Server - what should I Use?

I have a large game engine which serves mobile phone clients and a web site. The DB is MSSQL2008 and the engine is written using C#. The web site is built with ASP.NET MVC and the web service for the ...
0
votes
2answers
929 views

Allow php and python script with apache but still have a secure server

problem "solved"? after backtracking where the permission first stops, the permission denial suddenly went away for no reason. I am building a webpage where the user must have the possibility to send ...
1
vote
1answer
395 views

Trac problem: AttributeError: Cannot find an implementation of the “IRequestHandler” interface named “WikiModule”

This problem already has been described mutliple times in different mailing lists, but no solution has yet been published. My original setup is as follows (but in the mean time i have a simpler one ...
2
votes
3answers
940 views

Python equivalent to Heroku

Is there a Heroku or Engine Yard equivalent for Python?
3
votes
2answers
1k views

Attempting to run Django with start Apache2 mod_wsgi on Ubuntu Lucid Lynx without success

I have a small vps with a minimum install of ubuntu lucid-lynx with about 256mb memory, it's newly installed with nothing special running on it. I'm trying to deploy django to it, while I'm ...
0
votes
1answer
676 views

Installing python-mysql on windows with AppServ

I am trying to install the python module "mysql" on Windows 7 with apache installed with AppServ (installation includes Apache, MySQL and PHP). When I try to run the setup.py script of "python-mysql" ...
2
votes
1answer
4k views

How to change port on simplehttpserver in linux?

How to change port from 8000 on simplehttpserver in linux?
1
vote
3answers
3k views

Postfix refusing to relay mail from local client

I'm trying to get a python script to send mail (using smtplib.SMTP), but postfix is refusing to relay the message. I don't use the Ubuntu 10.10 Virtualmin server as a mail server (I happen to use ...
1
vote
2answers
300 views

Share Data Using HTTP / FTP?

I have a network of 20 machines, running Ubuntu 10.04. Each machine has about 200[GB] of data that I'd like to share with all other 19 machines for READ ONLY PURPOSES. The reading should be done at ...
2
votes
1answer
1k views

Trouble running Python Celery as a daemon

I have Celery setup and running as a daemon on a Ubuntu EC2 instance. This morning I updated some of the tasks and tried to restart Celery and it wasn't working. After working at it a bit I found: ...
1
vote
1answer
1k views

How can I install Python in IIS 7.5

I want to install python 3.2 in my IIS7.5 server so that I can use something like this : http://localhost/index.py Is this possible? How?
1
vote
1answer
996 views

Django LDAP - How to map description field to Django group

I'm trying to set up LDAP authentication with my Django app using Django-Auth The basic idea I want to do is any LDAP user with "IT - Help Desk" in the description would get mapped to a certain ...
1
vote
3answers
787 views

Why, when everything is working properly, an apache restart writes into error.log?

This is just a minor nitpic, but I wonder if anyone can tell me the reason - when I restart apache, these lines get written into /var/log/apache2/error.log [Thu Mar 24 10:20:56 2011] [warn] mod_wsgi: ...
2
votes
0answers
329 views

Why did cherokee-admin-launcher crash?

I'm trying out the Cherokee http server on a seemingly fine machine. Following simple set-up instructions, I tried running cherokee-admin-launcher but it printed error messages and hung up. Ctrl-C ...
1
vote
1answer
146 views

Python version issues

I have a Mac which uses MacPorts to have multiple versions of Python installed and use the python_select application to switch between them. Currently, this Mac has OS 10.6.6, which comes with Python ...
2
votes
2answers
179 views

How to manually start and re-start Apache with mod_wsgi powering a password protected Python WSGI app?

I'm working on a project where I have to meet some regulatory requirements that require at least 3 out of 5 authorized users to start a backend web service that handles very sensitive information ...
1
vote
1answer
123 views

Live and test deployment of Django

We devoloping a community based site with Django. Since we want to do a rapid developement process we want to be able to do (multiple) daily updates of the live site. Before we roll out an update we ...
2
votes
2answers
1k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
1
vote
3answers
648 views

Which user account should be used for WSGIDaemonProcess?

I have some Django sites deployed using Apache2 and mod_wsgi. When configuring the WSGIDaemonProcess directive, most tutorials (including the official documentation) suggest running the WSGI process ...
6
votes
4answers
8k views

Perl or Python, better suited for Unix system automation?

I have been using bash for most of my system administration tasks. I also know a bit of perl. Should I learn Python or Perl is better for system automation. So far from my experience learning perl ...
1
vote
2answers
362 views

How to deploy local project to Amazon

I have a small webapp written in Python/Django which works fine on my local machine. I've been tinkering and setting up my server on the free tier of Amazon EC2 by following online tutorials. However, ...
0
votes
2answers
322 views

Gitosis-init returns “Fatal Python error: <stdin> is a directory”, why is this?

I'm trying to get gitosis installed because I want to use Indefero and I need a deamon for the git:// protocol. However, following the instructions in the Git Pro book (http://progit.org/book/ch4-7....
0
votes
1answer
314 views

calling a different python interpreter from bash command line

I have python 2.7 installed [user@localhost google_appengine]$ python Python 2.7 (r27:82500, Sep 16 2010, 18:03:06) [GCC 4.5.1 20100907 (Red Hat 4.5.1-3)] on linux2 Type "help", "copyright", ...
0
votes
1answer
937 views

How to send task to celery using redis pubsub with postgresql?

How do you send task to celery through redis pubsub once a new record has been inserted into a postgresql table? My problem here is to get redis to listen for inserts in my postgresql table, and when ...
0
votes
1answer
215 views

Can not upgrade to python-2.4.3-43 on Red Hat Linux 5

I'm trying to upgrade using package python-2.4.3-43.el5.x86_64.rpm, but everything I do so I get a failed dependency requirement for libpython2.4.so.1.0, but I've checked /usr/lib64 and the file is ...
1
vote
2answers
363 views

Problem with deploying django application on mod_wsgi

I seem to have a problem deploying django with mod_wsgi. In the past I've used mod_python but I want to make the change. I have been using Graham Dumpleton notes here http://code.google.com/p/modwsgi/...
0
votes
1answer
169 views

Getting a domain name, reccomended servers, etc [closed]

Ok. I know all the programming but what I want is expert advice on how and where to register a domain name. Also I need to use a server online to host my website. I need it to allow python programs(so ...
4
votes
2answers
2k views

wsgi and python print statements

I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can ...
2
votes
2answers
2k views

How do I get Apache to run Python 2.7 rather than 2.5?

How do I get Apache to run 2.7 rather than 2.5? I'm configuring Apache to use mod_wsgi with Django and Python 2.7, but error logs show Apache is using Python 2.5.2 and can't find django.core.handlers....
2
votes
1answer
156 views

Is it safe to assume that python interpreter is installed on Debian/Ubuntu server?

Do servers get python as one of basic system packages? Can Debian or Ubuntu live without working python interpreter?
0
votes
1answer
2k views

Apache, mod_wsgi, Django - strange 500 errors

I have a Django site which works well most of the time, memory usage is stable and I wouldn't have to worry if not some strange problems, which were occasional until yesterday and cause site to go ...
3
votes
1answer
194 views

Why start script with /usr/bin/env python

I just downloaded a python script and noticed that the "shebang" line at the top looks like: #!/usr/bin/env python instead of the familiar #!/usr/bin/python What's the reason for that?
6
votes
1answer
5k views

Django + gunicorn + virtualenv + Supervisord issue

I have a strange issue with my virtualenv + gunicorn setup, only when gunicorn is launched via supervisord. I do realize that it may very well be an issue with my supervisord and I would appreciate ...
2
votes
2answers
3k views

Getting contact list from IMAP server

I want to update my local Thunderbird address book with a list of valid email addresses on an IMAP server. I'm not that familiar with IMAP, does it allow this? If so, could someone point me to an ...