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

learn more… | top users | synonyms

3
votes
1answer
287 views

Supervisor cannot correctly stop uwsgi

Supervisor can start uwsgi but after stopping uwsgi, when i try to start it again I get this error: 2014-03-16 08:38:34,249 DEBG 'app' stderr output: ...
3
votes
1answer
628 views

Lighttpd, Python, MySQLdb Python Module and Permissions

After restarting a lighttpd server recently I haven't been able to get it up and running again. I am running a python built API service on it, and am relying on the web.py module to run the ...
2
votes
1answer
113 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. ...
2
votes
1answer
739 views

Getting error while install mod_wsgi on centos6.3 with python 2.7

In initially installed yum install mod_wsgi and i think it was linked with python 2.6 Now is there any way to link it with 2.7 I tried configuring from the source and i get this error apxs -c ...
2
votes
1answer
348 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
1answer
485 views

is there a way to tail a log from remote server without using any user credentials?

I run a script tailing a log in a remote server, like so: ssh userx@someip tail -f /data/current.log|python2.7 monitorlog.py There are dependencies and service requirements that disallows me to run ...
2
votes
1answer
673 views

IIS FTP 7.5 Data Channel Problem (SSL)

Hey there I wonder if anyone can get me in the right direction. I am setting up both a FTPS Client and Server, FTPS Server using Microsoft’s iis FTP 7.5. On the client side it will be running on ...
2
votes
1answer
589 views

FCGI & recompiling python code without restarting apache

At one hosting company, they used to run python projects with fcgi. They had set it up so that when i changed django.fcgi file, which put django & my project on pythonpath, my project code was ...
1
vote
1answer
41 views

salt-stack : Using multiple grain files

How can I use multiple grain files and organise them in directories : # pwd /etc/salt This is just an example: etc └── salt └── minion    ├── minion     ├── grains_1    ├── ...
1
vote
1answer
119 views

How to Access Apache Virtual Host from Cell Phone?

I'm developing a mobile web application using Django. Currently I can start the Django development server like this: python ./manage.py runserver <my-ip>:8000 When I do that, I'll get a ...
1
vote
1answer
331 views

Uwsgi and flask with unix socket instead of URL

I was trying to find out the difference between a socket as a unix file and a socket that is a ip and port. If I switch something like uwsgi to use a file instead of a port and ip, how do I then ...
1
vote
1answer
260 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
1
vote
1answer
347 views

Sending email with Python/Django through Microsoft Exchange (IMAP)

I have a Django web application which sends email through a standard SMTP, but I want it to use a mailbox from the corporate Exchange server. I would like the emails sent from the application to be ...
1
vote
1answer
175 views

amazon EC2 x11 problems

We are trying to set up a virtual development / research cloud environment for our students. Students need to be able to log-in, launch python IDE, and plot some graphs for their homework. We are ...
1
vote
1answer
227 views

Setup Pootle on Uberspace Webspace

I tried to setup Pootle on my uberspace server, but after installing all the required apps/software i get the following error message: (pootle)[tundem@phoenix ~]$ pootle start Loading custom settings ...
1
vote
1answer
319 views

Python install issue on Mac OS X

I have been using the standard python that comes with OS X Lion (2.7.2) but I wanted to build a UCS-4 version to handle 4-byte unicode characters better. I had already installed pip and packages like ...
1
vote
1answer
154 views

uWSGI and Nginx python file handling

I've been trying to figure out how to propertly utilize uWSGI with Nginx and have hit a bit of a design roadblock. I'm trying to figure out how my python files should be accessed via uWSGI. I've been ...
1
vote
1answer
268 views

Python, IIS scripts, and user accounts

This isn't a question on my specific problem, as I've got that more or less solved, but about IIS/Python and user accounts in general. I have python scripts that I'm running with IIS 7.5 (Mercurial ...
1
vote
1answer
319 views

how to send a corrupt netbios packet

I want to send a corrupt netbios Session Service packet to my machine, My goal it to check whether my machine restarts or not upon receiving the corrupt netbios packet (this has happened before and I ...
1
vote
1answer
288 views

centos: unable to write to whoosh indexes

got a problem here. In my development server, I ran into a problem when I try to search using django/haystack with the whoosh backend engine. The path to your Whoosh index ...
1
vote
1answer
127 views

safesquid external parser

i am running safesquid and it does support an external parser, so i wrote this simple URL rewrite code in python which also logs the initial request... #!/usr/bin/env python import sys def ...
1
vote
1answer
304 views

Is there an issue with working directory when using service to launch an init script?

I am curious, is there something I need to watch out for when spawning process as background jobs from init scripts using service? Here is the line that works at terminal, in a bash script/an init ...
1
vote
1answer
765 views

rsyslog to external script

Using CentOS I have rsyslog configured to send data to a python script via a shell execute action(^). I have python 2.7 installed, but when my script is called, the shell environment is referencing ...
1
vote
1answer
283 views

NGINX executing Python

I am fairly new to NGINX and Python is not my field at all. I am interested in introducing SASS support in my server. I don't want to use Ruby, but I found Python version. ...
1
vote
1answer
271 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 ...
1
vote
1answer
120 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 ...
1
vote
1answer
148 views

How to get an authentication provider status list from IIS (for a Sharepoint site)?

I need to get the authentication provider status of a web application available in IIS through C# or Python code. Example: Is Basic Authentication available for X site?
1
vote
1answer
588 views

How do I make pip or easy_install use /opt/python2.6/include?

I have built and installed python2.6.2 in /opt according to these instructions: http://casualengineer.blogspot.com/2009/09/install-python-262-on-centos-53.html#comment-form but for some reason my pip ...
1
vote
1answer
254 views

git hook and ssh on server

I have a git repo on a server. I would like to run a update hook on this when a push is done. I am unable to get git revlist or take any information from the user because i can't enable tty. I have ...
1
vote
1answer
672 views

How to install mod_wsgi 3.1 on Ubuntu 9.10

I have a Python 3 web app so mod_wsgi < 3.1 doesn't cut it for me. However, on my Ubuntu 9.10 installation there doesn't seem to be a package for mod_wsgi 3.1. Is there an alternative repository ...
1
vote
1answer
89 views

Getting waaay too many “Spawning Local” fastcgi messages

I've got Lighttpd running 7 Python apps via fastcgi on an Ubuntu server. I turned on fastcgi debugging in the Lighttpd configuration and noticed something very weird in the logs: Normally, when you ...
0
votes
0answers
50 views

pam_exec not working for auth?

Here's my PAM configuration file: #%PAM-1.0 auth requisite pam_exec.so seteuid /srv/auth/pam_auth_user.py Here's /srv/auth/pam_auth_user.py (I've run chmod +x and chown root:root on it): ...
0
votes
0answers
34 views

Avoid duplicate python package installs on system when using virtualenv

Is it possible to setup virtualenv so that certain packages are treated as if they are local in the virtual environment but are instead installed globally? I'm thinking particularly for packages which ...
0
votes
0answers
24 views

fabric for “tree” like deployments

i am trying to get my head around fabric. we have different machines: +--+ b2b (+config) +------+ api --+ | +--+ b2c ...
0
votes
0answers
560 views

uwsgi complains about python application not found

looks like quite common with uWSGI application, but still can't find any valuable solution. I ma working on ubuntu 12.04 with uwsgi 1.0.3 and python2.7 Here is my config.ini file: [uwsgi] uid = ...
0
votes
0answers
167 views

AWS + Nginx + Uwsgi + couple flask applications. Can't separate static files

I'm trying to build 1 aws-testserver for all of my Flask-applications. Nginx conf: server { listen 80; server_name localhost; location /app1/ { uwsgi_pass unix:/tmp/app1.sock; ...
0
votes
0answers
113 views

AssertionError when using uwsgi with pypy with the sample test app

I'm trying to get the sample pypy test hello world application to run using uwsgi with pypy. I've attempted to build uwsgi with the pypy plugin (using python uwsgiconfig.py --plugin plugins/pypy) and ...
0
votes
0answers
56 views

Run Django on Gunicorn with Python 3.3

How would one go around to run Django on Gunicorn using Python 3.3 on an Ubuntu 12.04 LTS Server? As Ubuntu 12.04 LTS is dependend in Django 2.7, Python 3.3 has to be installed side-by-side with ...
0
votes
0answers
85 views

Centos Supervisord Python 'invalid literal for int() with base 10: 'process_num'

Im doing the following in supervisord: [program:inf_svr] process_name=inf_svr%(process_num)s directory=/opt/inf_api/ environment=USER=root,PYTHONPATH=/usr/local/bin/ command=python ...
0
votes
0answers
32 views

mkfs doesn't work using fabric

I am writing a python script that creating an amazon volume and attach it to an instance using boto. To do so, I need to create a file system using mkfs command. So, I wrote this code: with ...
0
votes
0answers
93 views

nginx and gunicorn configuration test using ab-BenchMark

I am using c1.medium (2 cores, 2gb) with nginx web server and gunicorn app server.I am running this with 5(2*cores+1) gunicorn workers. how can i improve my server performance??? Here is my nginx ...
0
votes
0answers
35 views

How to secure django powered site on IIS 8.0

I have setup a django site using Helicon Zoo with IIS 8.0 on Windows Server 2012. My site includes the /admin, and I want secure only the admin with HTTPS. I have been searching on the Web for a ...
0
votes
0answers
100 views

utcoffset drift with celery

I have quite a problem with celery on my distribted system. I have couple of machines among different localizations and I've got a lot of warnings in my log files like: "Substantial drift from ...
0
votes
0answers
675 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
0answers
76 views

Is there any way to 'describe-instances' for another AWS account from awscli?

I've added a role to allow another account to list instances, but there doesn't appear to be any option to choose which account I'm listing instances from. Is there some undocumented option to pass in ...
0
votes
0answers
33 views

Communication between different servers

I have a dynamic site which has a database and a static file generator. I now want to detach the static file generator from the dynamic site and host it on a different server. The issue is I still ...
0
votes
0answers
249 views

problems while installing python-mysql package

I've got an Ubuntu 12.04 x64 Server edition VM that I'm running python2.7 on and trying to install the MySQLdb package via the command (I've already got easy_install installed and working): $ sudo ...
0
votes
0answers
24 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
326 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
181 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 ...