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

learn more… | top users | synonyms

0
votes
0answers
6 views

TracError: Unsupported version control system “svn”: cannot import name fs

I started out with a duplicate database entry error, and in trying to fix it am no longer able to resync my Trac database at all. Unable to import all the history I tried to upgrade from 0.12 to ...
0
votes
0answers
5 views

IIS 8 fastcgi python: tar extract fails when encountering files with .py extension, no exception triggered

I have a python framework (web2py) I am trying to set up on IIS 8. I am using the fastcgi handler (wfastcgi.py v 2.1) . The site works ... mostly. This framework lets you create a new application. It ...
-1
votes
0answers
14 views

Buffered output from tar gzip? [closed]

I have a network drive that contains a large folder (82GB currently) of back up data. I would like to periodically send this folder to Amazon Glacier for some off-site backup protection. I have a ...
0
votes
1answer
39 views

How to reinstall python2.7 on CentOS 6 in order to install mod_wsgi

I've installed Python2.7 from source on a CentOS 6 VPS, and I'd like to get a Django site up and running. Unfortunately, everything I've Googled so far says that I'll need to install mod_wsgi, which ...
-1
votes
0answers
36 views

Yum - NameError: global name 'True' is not defined

EDIT I checked to see through the interactive python console if the builtins are available, and they are. It seemed to be the configuration scripts for yum that were causing the issue, so I just ...
0
votes
1answer
11 views

Configuring wsgi application to serve a static html?

I'm looking to install www.planetplanet.org in openshift. I've hosted a few php apps on openshift, but am not sure how python apps work. The openshift template gives me a wsgi.py file, which needs ...
-1
votes
0answers
17 views

http not working after configuring https in apache

I am trying to run my django application using mod_wsgi on apache. My site settings are following: WSGIPythonPath /home/ubuntu/gmail2sfdc <VirtualHost *:80> Alias /static/ ...
0
votes
1answer
30 views

init.d script appears to run but dies immediately

I registered the init.d script and when I invoke this directly /etc/init.d/gae it appears to work...PID file is created but the process is no where to be seen by the time I do a ps I have googled and ...
-1
votes
1answer
72 views

Access to ESXI using Ansible (python)

I'm want to execute a command using Ansible on an remote ESXi but it seems that a module grp is missing. # ansible esxi -a "date" esxi | FAILED >> { "failed": true, "msg": "Traceback ...
-1
votes
0answers
8 views

How to connect a domain name to a virtual host 's sub folder without creating a virtualhost for the new domain name? [duplicate]

Suppose you have 2 domain names.. domain1.tld domain2.tld your server ip is : 1.1.1.1 you install httpd and set up a virtual host for the IP only. Listen *:80 DirectoryIndex index.php ...
2
votes
0answers
21 views

HP MSA 2312 XML API “Unauthorized access requested”

I'm trying to write a custom Nagios Plugin to monitor a HP MSA2312fc via the HTTP XML API. I can successfully log into the system via /api/login/{login_hash} but always get the error "Unauthorized ...
-1
votes
1answer
45 views

503 errors on Apache+Mod_wsgi+Django

I'm new to Python and trying to setup Django on my VPS that is running CentoOS 6.5. My Apache version is 2.2.15. Python is running on version 2.7. I created a virtualenv under ...
-1
votes
1answer
53 views

Login by ssh , change the remote PS1 and don't quit the remote ssh shell [closed]

I want to change PS1 when i ssh another centos strshell = 'PS1="remote!"' os.system("ssh -i %s -l%s -p%s %s %s"%(SSH_KEY,SSH_USER,SSH_PORT,des,strshell)) ssh quit automatically. I want to ...
0
votes
2answers
34 views

Cent OS + Apache2 + mod_wsgi error

I have a development server for my Django application running Cent OS 6. I'm serving the application using Apache and mod_wsgi. I read a lot about the default Python that comes with Cent and so I ...
0
votes
1answer
43 views

uWSGI raises segfaults when defining several mount points in preforking+threaded mode

I'm hosting an application consisting of several Python modules. So far we use Apache in MPM worker mode and mod_wsgi, which is a working environment. Now we want to check if nginx + uwsgi may be a ...
0
votes
1answer
102 views

Nginx no longer servers uwsgi application behind HAProxy - Looks for static file instead

We implemented our web application using web2py. It consists of several modules offering a REST API at various resources (e.g. /dids, /replicas, ...). The API is used by clients implementing ...
1
vote
0answers
26 views

HP-UX: Python error on os.uname() function

Has anyone ever seen the Python os.uname() function fail on HP-UX? > python -c "import os; print os.uname()" Traceback (most recent call last): File "<string>", line 1, in <module> ...
0
votes
1answer
88 views

uwsgi + Django with nginx: High Availability Setup

Moved from : http://stackoverflow.com/questions/25304968/uwsgi-django-with-nginx-high-availability-setup to here. I was setting up High Availability on RHEL 6.5 . My Stack is 1. uwsgi 2. nginx ...
2
votes
0answers
28 views

Not seeing Django logs on Heroku

I'm not seeing log entries (at a level of INFO) made by Django in my Heroku logs. This is my configuration: LOGGING = { 'version': 1, 'disable_existing_loggers': False, 'filters': { ...
0
votes
1answer
41 views

Get pyenv working for a specific directory

In my ~ directory, typing "python" will start, well, python. However, in my /usr/python/cgi-bin directory, typing python gets me an error message pyenv: python3: command not found The `python3' ...
0
votes
0answers
33 views

How do I fix the require for python(abi) when building python module RPMs for SCL?

I'm currently trying to set up an environment for one of our apps on CentOS 6 using the SCL python33 repository. The app also requires a number of additional python modules, such as numpy, so I'm ...
-1
votes
2answers
84 views

When will Red Hat fully support & ship with python 2.7

I realize there might not be a direct answer to this question, but I am wondering if there are any communicated expectations of when this will happen or if anyone can comment on the challenges ...
0
votes
0answers
19 views

Can I change uWSGI options when sending SIGHUP?

I'm using uWSGI to host a Python web app, and am interested in graceful reloading. It seems like sending SIGHUP to the master process is the simplest solution for my setup. The docs don't seem to ...
0
votes
1answer
97 views

Python script succeeds manually but fails on crontab

So I'm currently trying to get a script working but it's behaving differently when I run it manually than when I run it from crontab. Basically, I have a reverse ssh tunnel set up from one server to ...
0
votes
1answer
40 views

responding to a double password prompt with Fabric

I'm using this Fabric function to try to add a user to a Ubuntu server. It's not throwing an error, but I can't login with the user that I'm trying to add after the script's finished. If I add a user ...
-2
votes
1answer
88 views

MYSQL : Connecting to mysql from : 127.0.0.1 + telling ip tables to allow only 127.0.0.1 for mysql port : Logic vs Common Sense

if i make 1 billion or 1 trillion queries to MYSQL database.. from 127.0.0.1 via port 3306.. vs.. if i make same amount of queries to MYSQL database also from 127.0.0.1 via port 3306.. but with 1 ...
2
votes
0answers
55 views

uWSGI vs Twisted Matrix

uWSGI can be configured in ashyncronous mode same as Twisted Matrix, but has anyone tried to compare these to servers in terms of performance? If we need to develop a Python web app handling thousands ...
0
votes
0answers
75 views

Nginx returning 500 Error instead of 400 Error

On validating user input into my api, I want to return 400 http status codes for bad requests. It works fine from flask and when running my api through gunicorn, but they always come out of nginx ...
0
votes
1answer
104 views

mod wsgi picks up wrong libpython2.7.so.1.0

I've compiled python 2.7.8 with: mkdir -p /usr/local/python2p7/lib ./configure --prefix=/usr/local/python2p7 --with-threads --enable-shared LDFLAGS="-Wl,-rpath /usr/local/python2p7/lib" make make ...
0
votes
0answers
35 views

VMware Creating Windows Images through commandline

I have a ESX server and I'm using Vsphere client to connect to ESX, I have to create more than 100 of windows images, which would be a combination of Windows XP,Windows Server 2003, Windows 7 etc. ...
0
votes
0answers
95 views

Serving static files through apache

I am new to the whole mod_wsgi and serving files through apache. I am really comfortable with flask but this is something i can't get my head around. I did the hello-world program and successfully ...
0
votes
0answers
89 views

Apache single sign on redirecting to success login page, Django application

All I have a Django web application with relative paths url. For instance, I have www.example.com/inventory/get_item/?item_id=5 In the apache configuration I am using oracle single sign on to ...
0
votes
1answer
100 views

Using python in FreeRADIUS

There seems to be documentation lacking on how to use the python module in FreeRADIUS. I want to use python to interpret a MAC address (in %{Calling-Station-ID}) and return an IP address. In my ...
7
votes
2answers
140 views

Processes hanging indefinitely when reading from network connections

An update to the below: I have experienced a similar problem on an unrelated script, on a Debian virtual machine in a different datacentre. This looks suspiciously like the issue described here (and ...
0
votes
0answers
14 views

Python on IIS 7.5 - resource implications

I have a task which python is a perfect fit for : periodically (every 5min or so) manipulating a series of small, utf8 text files (20-30 files, sized between 100kb and 500kb but strictly never ...
0
votes
1answer
171 views

Saltstack iterate through second level pillar data

I might be missing something or this might just be the wrong way to layout pillar data. I want to iterate through the second level of pillar data. Pillar example: repo: Option1: ...
0
votes
1answer
51 views

Is it possible to run apache as root, to execute scripts [duplicate]

I am unable to execute commands (shell_exec) with php, and read on stackoverflow / here that the solution was to run apache as root. Is this possible / is this a totally wrong solution? When I try to ...
0
votes
0answers
36 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): ...
-3
votes
1answer
132 views

Bjoern is 4x faster than Nginx - how to tweak Nginx to handle Bjoern proxy_requests without performance loss? [closed]

I was trying to put Bjoern behind Nginx for easy load-balancing and DoS/DDoS attack mitigation. To my dismay I not only discovered that it drops connections like chips (it varies between 20% and 50% ...
1
vote
1answer
83 views

pip install seems to be ignoring dependency links

I have a Python application that depends on several packages. One of those packages, unfortunately, isn't in PyPi so I have to install it directly from the git repo. I've been trying to add it into ...
0
votes
0answers
24 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
186 views

rhel 6.4 pip with proxy error : name or service not known

the pip command pip search statsd --proxy=http://anadi.misra:XXXXXXXXX@192.168.200.77:8080 Now my password contains an @ too so I give the encoded form in password; i.e. some@pass is supplied as ...
1
vote
0answers
111 views

Failed to emerge python 2.7

I'm trying to emerge python 2.7 on my gentoo server, somehow it's not installed any more. eselect python list Available Python interpreters: [1] python3.3 * If I try to emerge it like emerge -a ...
0
votes
1answer
84 views

Apache and mod_wsgi, worker process stuck to W state, request never dies. How to diagnose?

I am running Apache 2.2 with mod_wsgi, Python 2.7 and mpm_worker. Occassionally, one of the worker processes gets stuck and all of it threads stop in writing state (as demostrated in the screenshot ...
1
vote
1answer
92 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 ...
0
votes
1answer
65 views

Error starting mod_wsgi

When I run the start-server command on mod_wsgi-experess, I get this output: Server URL : http://localhost:8000/ Server Root : /tmp/mod_wsgi-localhost:8000:0 Server Conf : ...
2
votes
3answers
620 views

CentOS (rel6) with default python 2.6, but seperate 3.3.5 installation

I have a CentOS server (rel6) that had python installed (2.6), but I needed a few features in 3.3+. I installed 3.3 into a seperate folder and made a symbolic link to execute it: I installed setup ...
0
votes
3answers
227 views

bash rsync script in python works odd [closed]

I have this problem with bash in python. I want to make script that will make folder based on system date - and this works just fine. The problem is when I want to rsync two directories one with my ...
0
votes
1answer
235 views

Multiple python versions under apache+mod_wsgi

I have several virtual hosts configured under the same apache instance on redhat: apache-2.2.15 mod_wsgi-3.5 compiled with default system python-2.6 For every virtual host WSGIScriptAlias setting ...
1
vote
1answer
160 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] ...