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

learn more… | top users | synonyms

3
votes
0answers
99 views

How to support VRF in Netflow Collector?

I am somehow able to analyze netflow packet using my own netflow collector (build in python). It works for certain ip and CIDR(Classless Inter Domain routing), definitely not overlapping. What is the ...
2
votes
0answers
14 views

Unable to serve Django static files

I am trying to serve Django admin static files but nothing seems to be working below is my nginx configuration : upstream django { server 127.0.0.1:8000; } server { listen 4321; ...
2
votes
0answers
131 views

ImportError: No module named flask - uwsgi and buildout

uWSGI config: <uwsgi> <module>app_wsgi:app</module> <pythonpath>./src</pythonpath> <socket>/tmp/uwsgi.sock</socket> ...
2
votes
0answers
247 views

Python and mod_wsgi path issue

I have an AIX 6.1 system that I've compiled and installed: Apache 2.2.21 (into /usr/local/mercurial) Python 2.7.2 (into /usr/local/bin and /usr/local/lib) mod_wsgi 3.3 (with the AIX fix #1 described ...
2
votes
0answers
100 views

Supervisord not closing http ports

I'm trying to use Supervisord to keep my node.js web app alive. However when I run supervisorctl shutdown, it doesn't close the http port that node.js uses. Is there a way to configure Supervisord ...
2
votes
0answers
271 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 ...
2
votes
0answers
190 views

Guidance on deploying a python application, with HAProxy routing requests to instances of paster

Say I have 2 front end servers, and another load balancer running HAProxy. On the front end servers, I want to deploy a python application. I want to create say 4 instances of paster on each server, ...
1
vote
0answers
54 views

Executing a python script from PHP to open a socket

I have a python script chatserver.py that includes:- #!/usr/bin/python from twisted.internet.protocol import Protocol, Factory from twisted.internet import reactor <SNIP> ...
1
vote
0answers
42 views

Supervisord leaking child processes launched through shell script

I'm using supervisor 3 to daemonize a python process, which is launched through a bash script that sets up some configuration for python. The bash script runs python program in the foreground, FWIW. ...
1
vote
0answers
168 views

IIS FTP 7.5 not responding with 226 during file put using Python 2.7.3 client with FTP_TLS

I am experiencing very strange behavior with IIS FTP 7.5 on Windows 2008 Server R2 and a python 2.7.3 ftp module I am writing. The module does a ftp connect with the FTP_TLS library in FTP Active ...
1
vote
0answers
125 views

OS X 10.8 Server - Apache Python

What module does OS X 10.8 Server use to provide Python support for Apache? I know it uses some form of CGI, but I wasn't sure if it was mod_python or mod_wsgi. Also, are there any gotchas with that ...
1
vote
0answers
23 views

Passenger_wsgi.py given precedence over DirectoryIndex?

I was having an issue with my site today, where apache wasn't serving index.php by default. I had moved passenger_wsgi.py to the directory above document root so that I could serve python files ...
1
vote
0answers
124 views

Apache will not start with mod_wsgi enabled

I'm trying to run Apache with mod_wsgi to run Python scripts. The server is running Ubuntu 12.04 with Zend Server installed, but when I enable the wsgi module Apache will not start. I get an error ...
1
vote
0answers
144 views

Bottle.py application times out on mod_wsgi and uwsgi but works in dev mode

I have a bottle.py application that performs well in dev mode. However, a function that has a larger database query is causing the app to time out when run in either uwsgi or the browser to time out ...
1
vote
0answers
313 views

Getting Python to work in IIS 7 using pyISAPIie

I have been trying for the past few hours to get python working on a test machine. The machine is running Server 2008 SP2 with IIS7 (32 bit). I have nearly all the role's services installed except for ...
1
vote
0answers
85 views

Lighttpd + django on gentoo 10 seconds to answer

I want to run a Django site on a lighttpd with fastcgi on a gentoo machine. Everytime I try to access the site I get a response after more or less exactly 10 seconds. Im using a socket to let lighttpd ...
1
vote
0answers
110 views

nTop Graphing Scripts

I would like to graph the RRD files that nTop creates, but I don't want to re-invent the wheel. What I Know There is an API for nTop that involves python. I have read the details of it yet. I know ...
1
vote
0answers
213 views

Run python script as a service on Ubuntu 11.10

I am facing the following problem. I want to run a python script as a service on Ubuntu 11.10 system (already mentioned in the following link: ...
1
vote
0answers
67 views

email handling with inbox.py and nginx

I have a Flask web application running behind gunicorn and Nginx. Nginx proxies any traffic to ivrhub.org to the correct flask app. I would very much like to use inbox.py to process some incoming ...
1
vote
0answers
80 views

Error running Solr

I'm trying to install Apache Solr for Plone, via collective.solr. I've followed the instructions above, and extended my buildout with: [buildout] extends = buildout.cfg ...
1
vote
0answers
623 views

Fixing problems with yum, urllib2, and missing dependencies?

I've been trying to resolve the following problem with yum / python's urllib2: [root@...]# yum Traceback (most recent call last): File "/usr/bin/yum", line 4, in ? import yum File ...
1
vote
0answers
480 views

Running Celery as a Daemon while using VirtualEnv

I've setup and tested celery on my amazon linux server, using mysql as the messaging backend and it works fine when running the program directly. My python project and celery install are located in a ...
1
vote
0answers
232 views

How can I use WPHP with Python Paste

It was suggested to me in answer to my question How can I use Python’s CGIHTTPRequestHandler as a dev server for PHP that I try WPHP. I've tried: import wphp my_php_app = ...
1
vote
0answers
384 views

Python server does not excecute PHP script: permission denied

I am trying to execute a PHP file through a Python server. However, I get the following error: File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/CGIHTTPServer.py", line ...
0
votes
0answers
12 views

Compiling mod_wsgi on MacOSX with EPD Python

I'm trying to compile mod_wsgi 3.4 on MacOSX 10.7.4 with the Enthought EPD Python distribution, which I require to do some mathematical modelling from the web server. I run configure using: ...
0
votes
0answers
23 views

Using fabric api with Django

Can someone suggest how to use fabfile functions in Django. Example: I have a fabfile with function hostname as follows: def hostname(): run(hostname) I am used to run this with fab command ...
0
votes
0answers
21 views

Creating binary distribution of lxml

I need to install a current release of lxml into a virtualenv on a VPS. This VPS however has some memory quota that doesn't allow me to build the package there. I tried therefore to build a ...
0
votes
0answers
20 views

Convert python virtualenv to pypy

So I've seen great things about PyPy. It seems to run faster than light and I'd like to test it out on our server. I've been building my virtualenv with the default Ubuntu cPython since we started ...
0
votes
0answers
45 views

is there a way to get PSEXEC to output the results of python

The situation: I am running psexec.exe from one windows machine to another and would like to run a python script on the remote machine and look at the output of the script without having to pipe it ...
0
votes
0answers
17 views

Error when building spidermonkey in Debian 5

I follow the instructions here: https://developer.mozilla.org/en-US/docs/SpiderMonkey/Build_Documentation cd js/src autoconf-2.13 ./configure make &> build.log I see the next error in the ...
0
votes
0answers
18 views

uWSGI repeated execution of Flask app.route() function

I'm currently running uWSGI with a Flask web app, via the command line. The command used is: uwsgi --http :80 --file /scripts/flaskWebApp/app.py --callable app --processes 4 --threads 2 -b 25000 -M ...
0
votes
0answers
36 views

Postgres segfault on Ubuntu 12.04 64

i have a unbelivable problem: Ubuntu server 12.04 64 bit running on Wmware Infrastructure, postgres 9.2 and django connecting via psycopg. Randomly postgres crashes with segfault, si i restart it an ...
0
votes
0answers
94 views

Apache PythonAuthenHandler pyntlm, silent authentication not working

We have some softwares developed in PHP running on Apache. They use PythonAuthenHandler pyntlm to do silent authentication over Active Directory. When it works, user enters any software page, browser ...
0
votes
0answers
33 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
0answers
37 views

IIS6 PYSAPIe error of “specified module could not be found”

Missing something, but I believe I have IIS6 + PYSAPIe almost working. ( py2.7 pysapie-py2.7 both 32bit ) If I view test.html It works. If I view test.py I get: > The specified module could not be ...
0
votes
0answers
32 views

Import error with mod_wsgi and apache

I am having problems migrating a django site from Ubuntu to CentOS 6.3. When I run the site I get Internal Server Error error from apache, and looking in the logs I get ImportError: Could not import ...
0
votes
0answers
87 views

Check_MK check for check_mk_agent plugin

I have a Perl script which is placed into /usr/lib/check_mk_agent/plugin/ directory on client machine. on server I ran following command: cmk -d hostname Above command throws following output: ...
0
votes
0answers
61 views

How to write Check_MK check for check_mk_agent plugin output

I am using agent based Check_MK checks. check_mk_agent plugin is throwing this ootput: JOB1 70 40 100 Build stability: No recent builds failed. sdfsdfsdf OK Test 50 20 75 Build stability: 1 out of ...
0
votes
0answers
77 views

Python default binary with additional shared libraries

If I build python with "./configure --prefix=/opt/python2.7/Python-2.7.3 --enable-shared" I get an executable with the following libraries required by the executable: # ldd ...
0
votes
0answers
90 views

How can I get event details in a transform with Zenoss 3.x

I need to get the event details from a trap in an event transform. The traps come with oids in the event details. The problem is that the OIDs are not predictable because the last digit is the event ...
0
votes
0answers
40 views

Zenoss error with zenmodeler.py

We have zenoss system management tool installed for monitoring our servers. Yesterday I received a notification in which it has the below error. I don't why I am getting this one. When I checked for ...
0
votes
0answers
27 views

Python with IIS Hosted - Worker Processes

Currently, I am doing load testing on the Python application which hosted using IIS. When come to 8-10 ppl hitting the application at the same time, the application getting lag and slower. However, ...
0
votes
0answers
60 views

Forbidden - 403 error Apache

I was setting my local Apache server to run Python cgi, then I came with the following error: Forbidden You don't have permission to access /hw10/main.cgi on this server. What I've changed on my ...
0
votes
0answers
73 views

Getting error while installing mod_wsgi in centos

I have reinstalled python with enable shared [root@master mod_wsgi-3.4]# make clean rm -rf .libs rm -f mod_wsgi.o mod_wsgi.la mod_wsgi.lo mod_wsgi.slo mod_wsgi.loT rm -f config.log config.status rm ...
0
votes
0answers
48 views

Python script not executing after setting executable permission

i am having a python script #!/usr/bin/env python in top of my script? following is the permission i had set -rwxr-xr-x 1 user1 user2 6423 Nov 15 15:12 test i tried executing the script as user1 ...
0
votes
0answers
52 views

Apache mod_wsgi elegant clustering method

I'm currently trying to build a scalable infrastructure for my Python webservers. Actually, I'm trying to find the most elegant way to build a scalable cluster to host all my Python WebServices. For ...
0
votes
0answers
34 views

getting cgi to work on aws server

I want to execute py/cgi files on my server. I have changed the httpd.conf as below, but the browser says the files don't exist. AddHandler cgi-script .cgi .py LoadModule cgi_module ...
0
votes
0answers
80 views

Troubleshooting app crash

Every couple of days, my python app goes down, and though the logs seem to show that Supervisor restarts the process, when I visit the app in the browser I get the following message: Internal Server ...
0
votes
0answers
66 views

How to wrap Plone authentication around a third-party servlet?

We're using Plone to serve up some third-party middle-ware. Unfortunately the middle-ware has a particular servlet that gets invoked from a Java applet and doesn't do any kind of authentication. I ...
0
votes
0answers
32 views

schedule number of web dynos dependent on the time of day

I am looking for a way to use e.g. the Heroku scheduler to scale up and down the number of active web dynos depending on the time of day. Let's say for business hours 2 dynos but during the night only ...

1 2 3 4