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

learn more… | top users | synonyms

0
votes
1answer
212 views

Supervisord (exit status 1; not expected) centos python

Ran into additional issue with Supervisord. Centos 6.5 supervisor python 2.6 installed with the OS python 2.7 installed in /usr/local/bin supervisord program settings [program:inf_svr] ...
0
votes
1answer
138 views

Securing the Django web site which is run with Apache mod_wsgi

I have made a website in Django 1.6 with PostgreSQL database which is hosted on Ubuntu 12.04.3 with Apache 2.2.22 and I have recently noticed lots of hacking (probing) attempts from various IPs ...
0
votes
1answer
60 views

How do I tell what request a mod_wsgi process is serving?

Occasionally, I get an apache process running at 100% CPU. I've tried letting it run it's course, but I've seen it go more than half an hour without giving up. My running hypothesis is there is an ...
0
votes
1answer
136 views

WMS Service Tilecache Python 403 error

I´m trying to migrate a Webserver + Mapserver to a new Ubuntu 12.04 machine. Everythings (apache2, mapserver 6.2.1 ) working so far, except a tilecached wms service (tilecache 2.11-2 is installed) ...
0
votes
1answer
402 views

Puppet Init VirtualEnv Just Once

So here's a snippet from my manifest (based on this module: https://github.com/stankevich/puppet-python): python::virtualenv { $virtualenv_dir: ensure => present, version => 'system', ...
0
votes
1answer
945 views

uwsgi Import Error: No module named 'encodings'

I'm trying to setup flask with uwsgi. This is my directory structure: /srv/http/www/myapp | +-- env -> virtualenv | +-- mpd -> the project directory | +-- main.py -> main application ...
0
votes
1answer
38 views

Apache and mod_wsgi prevent user from viewing source

I'm running a WSGI application written in Python with flask on Apache. I have so far configured my vhost correctly to use my application. <VirtualHost *:80> ServerName mydomain.com ErrorLog ...
0
votes
1answer
25 views

How it's possible to reload a particular user Apache WSGI?

I have multiple WSGI instances running each on it's own user account. I'm trying to give the users to reload their own HTTPD processes only on Python/DJango code update, without impacting the other ...
0
votes
1answer
670 views

How do I make html files accessible from OpenShift server running python?

I have an OpenShift DIY app running Python. However, I cannot reach static files like html. (or run php) If I try accessing: mydomain.rhcloud.com/hello.html, I get: uWSGI Error Python application not ...
0
votes
1answer
298 views

How to make pip or easy_install use aliases

I have some trouble installing python-mysqldb. The error I get is E: Could not perform immediate configuration on 'gcc'. Please see man 5 apt.conf under APT::Immediate-Configure for details. (2) ...
0
votes
1answer
409 views

How to stop long-running cron process from being killed

I have a long-running cron process, running a Python script, that seems to get randomly killed. In dmesg I see: [230568.077358] init: cron main process (890) killed by TERM signal [237517.974422] ...
0
votes
1answer
465 views

How do i install OpenEMM on CentOS 5.9

Hi i am trying to install OpenMM on my CentOS 5.9 remotely via ssh (PuTTY) based on the step mentioned here (Yes i know the guide is for CentOS 6.x). However when i try to do: yum install ...
0
votes
1answer
148 views

How to get client host IP by means of utmp

My question is pretty simple: how to get client host IP by means of utmp (who am i)? Well. Several weeks ago for connecting from my laptop to the remote server I used such command: ssh ...
0
votes
1answer
159 views

Can't get monit to start program

I'm trying to get monit to monitor a program and start it if it goes down. Here's my basic config: check process maitre_d_8000 with pidfile /home/tango/env/maitre_d/8000/pid.pid start program = ...
0
votes
1answer
355 views

Getting future feature absolute_import is not defined error while installing lxml on centos

I am getting this error while installing libxml I tried this python27 setup.py build_ext -i -I /usr/include/libxml2 --with-xslt-config=/opt/xslt/bin/xslt-config ...
0
votes
1answer
93 views

Manipulating Launchd from Python?

I have a simple python script for manipulating a plist file. Once this file is updated, I'd like to have that same script unload and then load that plist file in launchd. Normally, I'd use launchctl ...
0
votes
1answer
1k views

How to find timestamp of file on FTP server

I need to find the latest created file in a FTP folder. However the FTP server is not returning full timestamps for files with the LIST command (missing the year): drwxr-xr-x 2 owner group ...
0
votes
1answer
182 views

apache file permissions using mod_python

I'm running apache with mod_python, and I'm having trouble reading files from a specific directory. Previously the directory had 0777 permissions but I've decided to change it to 0770 (not quite happy ...
0
votes
1answer
443 views

Broken Python installation on CentOS 5.8

I already searched for solution to my problem via Google and serverfault's search facility, but haven't found anything related specifically to my case. Here's the problem: I needed python 2.7.3 on ...
0
votes
1answer
25 views

Is it possible to workaround the maxlist setting in proftp?

I help admin a website which runs on a shared host. The host uses ProFTP and is using the maxlist directive to limit the number of items returned in a directory listing. One other thing to note is ...
0
votes
1answer
314 views

Virtualenv: Install python-ldap on gentoo

I'm trying to install python-ldap on a Gentoo Server. It is running a Django application which I want to use LDAP Auth. Im using virtualenv to manage my python dependencies. I can't install ...
0
votes
1answer
177 views

Apache stops serving request

I am running django with mod_wsgi and every thing works fine most of the time but at times I observe that all of sudden Apache stops serving any requests, monitoring service on server says httpd is ...
0
votes
1answer
2k views

Error while installing with Python “pip”: Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get ...
0
votes
1answer
840 views

I alternated my system default python version to python2.7, but the apt-get still use python2.6

Ubuntu , I changed my system default python version from python2.6 -> python2.7. after sh-3.1$: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2 sh-3.1$: sudo ...
0
votes
1answer
564 views

How do I get the caller name in Asterisk using Python?

I have an Asterisk (Elastix) installation. I have a MySQL database with about 10,000 customer names and numbers. I would like my call agent to recognize the name associated with the number. I can have ...
0
votes
1answer
542 views

python-cups for CentOS5

I'm try to activate airprint support on CentOS5. I found this guide, but the airprint-generate python script needs cups support. It seems this script needs the python-cups lib. How can I install this ...
0
votes
1answer
577 views

Supervisord and gunicorn_django not playing well sometimes

I can issue a command via supervisorctl to shutdown my gunicorn_django process but sometimes it hangs around until I have to eventually kill it with a -9. The log for the process usually has this: ...
0
votes
1answer
151 views

Install python in a windows web hosting running IIS 7

How do I install python in a web host running IIS 7? Mostly of my research suggest to go to the Internet Service Manager but I can only access the server through a web browser. Is this possible? What ...
0
votes
1answer
559 views

Ubuntu Apache Gives Internal Server Error 500

So I'm trying to set up a OSQA server locally as a test run, so that when I set it up on a externally hosted server it will all go smoothly. I'm following this tutorial and have been going well so ...
0
votes
1answer
162 views

Multiple virtual hosts support for apache with scgi quixote backend for some host

I'm trying to add a domain with quixote as its backend. I searched google and found that there are servaral choices to glue quixote and apache together. I chose scgi because it seems like the choice ...
0
votes
1answer
660 views

400 bad request: use the HTTPS scheme to access this URL, restclient python

I want to access an url which requires the full authentication. The following is my code. import restclient res = restclient.GET("x.x.x.x:8181/abc/def", headers = ...
0
votes
1answer
761 views

When set SESSION_ENGINE to memcached, Django website halts

I have set up memcached in Django using Pylibmc binding: CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyLibMCCache', 'LOCATION': ['10.241.1.1:11211', ...
0
votes
1answer
390 views

Problem getting mod_wsgi running with apache

Not had any problems implementing this set up before, got a new server set up at home and wanted to work on some django projects. Im using virtualenv with virtualenvwrapper, mod_wsgi module seems to ...
0
votes
1answer
715 views

How to install Python and PostgreSQL on CentOS

I have a dedicated server running centOS. I want to install python 2.6 and postgreSQL on it so python users can host their web apps on my server. (Apache) Can anyone give me a detailed tutorial for ...
0
votes
1answer
217 views

sqlalchemy fails to connect to db after server is idle for a few hours

I have a fairly standard setup where the application server is separated by a firewall from the database server. The application is using sqlalchemy and the db is postgres. The system works fine for ...
0
votes
1answer
297 views

Distributing a Python/Django app and handling database replication

We have developed a Python/Django app which we would like to distribute to clients, so they can run it locally (on a VM). We are doing this so they can still use the app if their internet connection ...
0
votes
1answer
515 views

Zenoss - Performance issues with captured events

The problem I'm manually inserting events into Zenoss through the zensendevent command line tool. The events are successfully inserted into Zenoss. The problem is that I can just insert about 8 ...
0
votes
1answer
928 views

How can I install Zope on Ubuntu 10.04 with Python 2.6.5?

I tried to install Zope on Ubuntu server 10.04: mnk@srv:~/zope-plone/Zope-3.4.0$ ./configure --prefix=/opt/zope-3.4.0 Configuring Zope installation Testing for an acceptable Python interpreter... ...
0
votes
1answer
807 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
393 views

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 ...
0
votes
1answer
307 views

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? ...
0
votes
1answer
164 views

Cannot install pyenchant on OSX

I am trying to install pyenchant on OSX snow Leopard. I have installed enchant via macports and it produced no errors, but when I try to install pyEnchant via setup.py it gives me this error: ...
0
votes
1answer
231 views

How to test python on Centos

I have followed this tutorial and successfully did everything. http://binarysushi.com/blog/2009/aug/19/CentOS-5-3-python-2-5-virtualevn-mod-wsgi-and-mod-rpaf/ how can i check that i everything is ...
0
votes
1answer
100 views

permission errors with python/django

Error can be seen here: http://djaffry.selfip.com:8080/ If i go to the folder /srv/twingle/search and do ls -l I get -rwxrwxrwx 1 root root 65142784 May 26 20:28 words.db I gave it 777 ...
-1
votes
1answer
325 views

Python error when s3cmd is executed within bash script

I'm creating a bash script of which will run on a cron, it's purpose is to backup a directory to Amazon S3 using the s3cmd command. I get the following error when I run the script: /usr/bin/env: ...
-1
votes
1answer
64 views

Frozen exe crashes in System Center Configuration Manager 2007

We are using SCCM 2007 to deploy a custom script (written in Python) which upgrades some software and performs additional configuration on client machines. The script is frozen into an exe using ...
-1
votes
1answer
2k views

Permission denied error while creating files from a python script using mod_wsgi on apache

I'm running a python script under mod_wsgi on apache. The script attempts to create some files under a directory. The path of that directory is defined by this variable named tmpdir in the script. ...
-1
votes
1answer
84 views

How do I uninstall python from web platform installer?

I've installed python and some other packages using web platform installer, but I was having some issues getting a Django project to work so I uninstalled everything and am trying to get it going from ...
-1
votes
1answer
1k views

nginx, gunicorn and django weird 504 gateway timeout

I have an nginx / gunicorn / django setup as follows: Nginx server { listen 80; server_name myserver.com; root /www/python/apps/pyapp/; access_log ...
-1
votes
1answer
985 views

YUM error. Is this a cert error

Nov 13 13:38:57 host abrt: detected unhandled Python exception in '/usr/bin/yum' Nov 13 13:38:57 host abrtd: New client connected Nov 13 13:38:57 host abrt-server[3508]: Saved Python crash dump of pid ...