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

learn more… | top users | synonyms

1
vote
0answers
83 views

Soccorro server does not work

I tried to configure Socorro server with apache as described here. I started httpd, but when I contact it with browser it doesn't respond. In lynx I get: HTTP request sent; waiting for response. When ...
1
vote
0answers
44 views

Automatically create virtualenvs for new user accounts

In Linux, how can I go about automatically creating virtualenvs for each newly created user account? Can it easily be done?
1
vote
0answers
817 views

Command not found, when it's in a directory on the path

I have the following environment variable set (trying for a 12-factor app approach): PATH="/home/hope/env/bin:$PATH" /home/hope/env/bin is the bin directory of a virtualenv, it has gunicorn and ...
1
vote
0answers
169 views

“Error importing middleware” while upgrading to Django 1.5 from Django 1.4?

I have a shared hosting account with Python 2.7.2 installed. I have done a local installation of Django 1.4 (python setup.py install --user) and everything was working fine. I decided to upgrade to ...
1
vote
0answers
461 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
524 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
70 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
179 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
237 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
799 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
141 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
190 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
654 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
171 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
112 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
2k 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
266 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
582 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
15 views

Freeradius / python / package import fail

I'am tring to import an external library into (PyJWT) for a freeradius authorization, but when i run freeradius -X i get this error message. # Instantiating module "python" from file ...
0
votes
0answers
14 views

Why does Apache2 not find the Python libraries of my Django site?

I have deleloped Django sites with the built in development server (python manage.py runserver), and have now started using Apache2 with WSGI instead. But if the site uses additional Python libraries ...
0
votes
0answers
7 views

Issue while installing ibm_db on RHEL with easy_install

easy_install ibm_db error: Searching for ibm-db Reading https://pypi.python.org/simple/ibm_db/ Best match: ibm-db 2.0.7 Downloading ...
0
votes
0answers
14 views

Getting a custom package to install properly on Elastic Beanstalk

I'm trying to get an elastic beanstalk worker environment set up, but one of the packages in the project's requirements.txt file comes from a private pypi server that I've got set up on EC2. I can ...
0
votes
0answers
5 views

WSIG module cannot import compressed eggs

I'm trying to install a Python webapp used for conference management, called Indico. While doing this I've realized that mod_wsgi cannot see some of the eggs I have installed, and thus I get import ...
0
votes
0answers
14 views

Docker compose application scale

Im using docker-compose to launch my application. This application uses Docker Flask API behind an Docker Ngnix loadbalancer. All works fine as of today. Currently I configure network ports and ...
0
votes
0answers
9 views

502 3 12152 Error after upgrading Django version

After upgrading to Django 1.9 from 1.7, and upgrading a number of other python libraries related to Django and my web service, I get a 502.3 12152 error in IIS logs. Looking that up, the error ...
0
votes
0answers
10 views

run fabric command when a requirement is met

1. I am trying to run a command when a certain requirement is met instead of pausing/sleeping So for example if run('when the memory utilization is greater or equal to 80%') then ...
0
votes
0answers
41 views

Could not find platform independent libraries <prefix> after recompiled mod_wsgi

I am on centos 6, while I need python 2.7 for some reason. And I recompiled mod_wsgi for python2.7, then add python2.7 shared library path to /etc/ld.conf, then ldd, it works fine and the log shows me ...
0
votes
0answers
61 views

Python to change password for user in JunOS device

My script is good to make device changes but the only thing im unable to do is to change the password one a particular user. Im running JunOS set system login user user authentication ...
0
votes
0answers
14 views

uWSGI process switching to root user after starting?

I got a vanilla flask/uwsgi/nginx setup on ubuntu 14.04, with the wsgi app started with an Upstart script with uid:guid set to www-data, and no virtual env The uwsgi init file: [uwsgi] base = ...
0
votes
0answers
23 views

How can I run websocket server on Virtual Private Server that use apache?

I am trying to implement a websocket server on a virtual private server that uses apache. This websocket socket server is tornado which is written in python Testing websocket on my local machine I ...
0
votes
0answers
30 views

CentOS 6.4 YUM Python error

I'm getting an odd YUM error using the shell which I can't find any answers to elsewhere. What's weirder is that this worked fine on a very similar machine. It's a CentOS 6.4 machine and both YUM ...
0
votes
0answers
18 views

Python changes to user profile data

Forgive me if my terminology if a bit off, I have little expertise in networking and domains. To the point: After calling python "example.py" in a batch file, the script executed perfectly. However, ...
0
votes
0answers
27 views

trying certificate authentication with python3 - ftplib got an unexpected keyword argument 'context'

I got this error while trying to use ftplib.FTP_TLS function as described in documentation here. Here is my MWE : (I run it with python3 on debian) import sys,ssl from ftplib import FTP_TLS # only ...
0
votes
0answers
43 views

web2py running mod_wsgi on Apache - “ImportError: No module named site”

Im having problem to run web2py on apache. OS is CentOS Apache 2.4 Python is installed in /usr/lib/python2.7/ defualt.conf looks like: NameVirtualHost *:80 NameVirtualHost *:443 <VirtualHost ...
0
votes
0answers
20 views

Does Microsoft SQL Server have something similar to 'sqlite:///:memory:'?

Python 2.7 SQLAlchemy Microsoft SQL Server Management Studio 10.50.2500.0 Microsoft Analysis Services Client Tools 10.50.2500.0 Microsoft Data Access Components ...
0
votes
0answers
22 views

Ping request timed out when basehttpserver is loading website

I am running a website using basehttpserver. 10.0.xx.xx is the ip to access the site. There is a 'controller' with a cellular modem on it, which hosts the website and runs the basehttpserver. When ...
0
votes
0answers
51 views

Python script to delete HPSA RHEL software policy items(rpms)

I'm looking to script the deletion of HPSA software policy items (RHEL RPMs) from HP Server Automation server. In our environment we have "HP Server Automation 10.22", using rhn_import command we ...
0
votes
0answers
48 views

Python/Django/WSGI/Apache webserver gateway timeout with outgoing SSL connections with urllib2/urllib3/requests

I have a webserver serving Django through Apache 2.4 with mod_wsgi and Python 2.7 on Ubuntu 14.04. Outgoing connections with any of urllib2, urllib3, or requests, connections to non-SSL (on port 80) ...
0
votes
0answers
10 views

Creating images and use ionice to prevent the script from using too many I/O resources

I have a python script that generates images for me and updates a database. I need to create almost ~200k images and for every image it does an insert to the database. I have a VPS with 100GB ...
0
votes
0answers
63 views

sh: x-terminal-emulator: command not found

I got this message during apt-get upgrade in my Ubuntu server 14.04, and I have no idea what is it. E: changelog for this version is not (yet) available; try ...
0
votes
0answers
34 views

python server running but nothing in web browser

I have python server running in terminal but I don't get anything in my web browser, beside it, below is written django 1.8.3 but I made upgrade to django 1.9.2: (env)root@mx:/srv/mercury# python3 ...
0
votes
0answers
28 views

building a cluster using dispy on aws

I'm trying to use dispy to distribute work to ec2 instances. I've followed: http://stackoverflow.com/questions/33557194/using-dispy-with-port-forwarding-via-ssh-tunnel ...
0
votes
0answers
24 views

puppet Error 400 could not find class

I am new to puppet but keep getting an error I cannot get passed. Any help would be much appreciated!! Puppet version: 3.8.1 Redhat version: 6.6 I want to install Python version 3.3 (default ...
0
votes
0answers
30 views

How do I configure the listener binding address for python 2.7 smtplib running in a windows environment?

I am setting up an application called openemm which uses the python 2.7 smtplib to handle smtp transactions. My outgoing mail works fine but smtplib is not responding to incoming requests on port 25 ...
0
votes
0answers
106 views

Gunicorn Flask Deployment with Supervisord doesn't find command on boot

I am deploying a Flask application with Gunicorn, Nginx and Supervisord. Here is my config file for the application: [program:apwd-flask] command = /home/aaron/dev/apwd-flask/venv/bin/gunicorn ...
0
votes
0answers
25 views

EC2 t2.micro instance becomes unresponsive to http queries

I am using ubuntu on EC2 instance. On top of that i am running a bottle framework. A python script is run in the background that serves for the http requests Then i start running the script using ...
0
votes
0answers
8 views

Flask Deployment - Security/clone

I've recently deployed a flask app with Gunicorn to a VPS. Within 4 days of deploying I found an exact copy of my flask app in France - assuming by the French domain. A few days later I had a worker ...
0
votes
0answers
54 views

How do I get virtualenv (on Ubuntu 14) to install the current version of Python?

I upgraded the version of Python on my VPS to 2.7.9 from 2.7.6, so I now (correctly, I think) see this: $python Python 2.7.9 (default, Dec 19 2015, 23:39:34) [GCC 4.8.4] on linux2 Type "help", ...
0
votes
0answers
25 views

SMTP server for Python parser

I'm trying to get emails into a Python application. There is an exchange server that marks some emails with a BCC address for archive@somedomain.com. I do not control the Exchange server. The email ...
0
votes
0answers
12 views

ubuntu upstart script fails to load job

When I run: sudo start homepage homepage.conf looks like: description "uWSGI server instance configured to serve homepage" start on runlevel [2345] stop on runlevel [!2345] setuid user setgid ...