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

learn more… | top users | synonyms

4
votes
1answer
564 views

Can Fabric be used for auto-deploying from GitHub?

Can I use Fabric to automatically deploy an app on my server every time I push the code to GitHub? (GitHub has the ability to POST to a URL every time I push.) If so, how?
3
votes
1answer
554 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
582 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
333 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
428 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
660 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
553 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
70 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
115 views

uWSGI and Python on Arch Linux, encoding failure

I am running an Arch Linux box and have setup a Python 3.4 virtualenv. I have a uwsgi vassal being run by the emperor, which specifies the following ini: (some snipped for brevity) [uwsgi] ...
1
vote
1answer
185 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
187 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
264 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
143 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
200 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
893 views

How is it possible for mod_wsgi to be compiled against Python 2.7.3 but use the 2.7.2 runtime?

The following is what appears in my error_log: [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Compiled for Python/2.7.3. [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. If I ...
0
votes
0answers
165 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
95 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
87 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
43 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
146 views

pysqlite for python 3.3.5 on Centos 6.5

I have compiled python 3.3.5 from source in the /opt folder as follows: yum install sqlite-devel ./configure --prefix=/opt/python3 make make install ln -s /opt/python3/bin/python3 /usr/bin/python3 ...
0
votes
0answers
47 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
23 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
86 views

rpmbuild - File not found

I'm trying to build an RPM for Python 2.7.6 on CentOS 6.5, x86_64. The spec file used is slightly modified from that of the spec file in the Python-2.7.6 source. I am running the build like so: $ ...
0
votes
0answers
64 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
25 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
72 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
458 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
97 views

How to use cmd_yaml in external pillar

I'm trying to figure out how to use external pillars in SaltStack. I've added the following lines to /etc/salt/master: ext_pillar: - cmd_yaml: cat /srv/mysql.sls The file /srv/mysql.sls has the ...
0
votes
0answers
66 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
62 views

How do I get debug symbols for the Python 2.7.5 executable installed from the “python-2.7_1,2” port?

I have a runaway process to debug. The problem only manifests on two FreeBSD 9.1 servers I'm using. I have a core file that might contain useful information. My first two thoughts were to attach to ...
0
votes
0answers
220 views

Using Charles to sniff http traffic from reverse proxy on localhost

I have a django app running on my localhost which sends requests to a 3rd party server. I'm try to send a multipart form to the 3rd party but the request always fails. I presume it is because the ...
0
votes
0answers
92 views

Ubuntu 12.04 64-bit virtualenv memory limit

We have a server running 64-bit Ubuntu 12.04, which is serving a django application running under virtual environment, along with a celery worker. The problem is no process in the server uses more ...
0
votes
0answers
41 views

Running two different versions of the same django code using Apache named virtual hosts

We have a machine running Apache2 that we would like to use for trying out different branches for our Django code. For instance, accessing sitea.example.com should server branch sitea, while ...
0
votes
0answers
31 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
62 views

Why does Apache on mod-wsgi throw random 500s

I run a Django Piston on Apache 2.4 + mod-WSGI. I use one of those URLs to post(yes, its a POST of a few kibs) stuff from localhost. But I face random 500s. The Django logs indicate the request ...
0
votes
0answers
366 views

selenium.common.exceptions.WebDriverException: Message: 'Can not connect to GhostDriver'

I'm trying to run PhantomJS from within selenium.webdriver on a Centos server. PhantomJS is in the path and is running properly from terminal. However in the script it appears to be launched, but ...
0
votes
0answers
164 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
23 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
263 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
148 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
145 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
85 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
94 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
57 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
687 views

Loading mod_wsgi in Windows / Apache

Im trying to load mod_wsgi on Windows 7 64-bit. I've inserted LoadModule wsgi_module modules/mod_wsgi.so in my Apache's httpd.conf file. But on restarting Apache, I get The request operation has ...
0
votes
0answers
221 views

Spawning web.py as cgi server on nginx with spawn-cgi seems not to work

(I'm a beginner with servers) I try to spawn a simple index.py as cgi listener using the command: sudo spawn-fcgi -d /usr/share/nginx/www/ -f /usr/share/nginx/www/index.py -a 127.0.0.1 -p 9002 ...
0
votes
0answers
254 views

How to Install Python Modules on Web Server?

Im running a python cgi script in the cgi-bin directory which uses the sqlite3 module. I run it and it says that it does not recognize the name.. So how do I install this module or other modules on ...
0
votes
0answers
199 views

Apache with mod_wsgi and hello world works at first and then fails

I am struggling to get Apache, mod_wsgi and a hello.py script to work reliably on a Gentoo box. It works for a little while (few seconds it seems) after an Apache restart but then starts failing: # ...
0
votes
0answers
733 views

ImportError: No module named site - mod_wsgi into Apache

I have only seen some related questions to this with answers stating that there are version mix ups. Specs: Windows XP Apache HTTP server 2.2.22 Python 2.7.2 WSGI mod mod_wsgi-win32-ap22py27-3.3.so ...
-1
votes
0answers
26 views

MariaDB vs MySQL for production and development of algorithms

I have found this question Anyone used MySQL Forks in Production , but it is a few years old and not necessarily the same. Also, When - if at all - should I switch from MySQL to MariaDB? answer says ...