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

learn more… | top users | synonyms

0
votes
1answer
9 views

OpsCenter 5.1.2 fails to start with SSL enabled on CentOS 5

This applies to OpsCenter 5.1.0 and 5.1.1 as well. I got the following error when trying to run OpsCenter 5.1.2 on a CentOS 5 server: Unhandled Error Traceback (most recent call last): File ...
0
votes
0answers
9 views

NGINX + uWSGI + Flask. Some requests very slow

We're running a fairly large Flask application and finding that at random times we'll end up with a very slow request (sometimes a minute or more) I presume the issue is related to lazy-loading ...
0
votes
1answer
10 views

Staticfiles for Django cannot be located on IIS 8

I have a Django 1.7 website configured on IIS 8 platform. The staticfiles are kept in a folder generated after running collectstatic command. As mentioned in the tutorials I have made that folder a ...
0
votes
2answers
27 views

How to install python3.4-pip in Freebsd 10.1

I searched in the ports and can't find a pip installation package other than the pip for python27 py27-pip-6.1.1 Which way is the best for installing pip for python 3.x in FreeBSD 10.1 ? Or is it ...
0
votes
1answer
27 views

Python Requests image upload HTTP POST

I am having some problem with a POST request that is driving me crazy. I am trying to upload an image using a POST using python requests by replicating the original request First of all, this is the ...
-1
votes
0answers
10 views

Error in Python multiprocessing process [on hold]

I am trying a write a python code having multiple processes whose structure and flow is something like this: import multiprocessing import ctypes import time import errno m=multiprocessing.Manager() ...
0
votes
0answers
34 views

Nagios python plugin not working properly

I have installed Icinga for monitoring my azure infrastructure. I want to monitor my DB Servers using python script which is here Now it is making connection to DB server but mode options are not ...
0
votes
0answers
4 views

Celery worker timeouts

I'm trying to run a celery worker with each task having a timeout of 30 seconds. However whenever I run celery with the --time-limit option, it simply quits. This is the command I use. python ...
0
votes
1answer
32 views

Can I double my throughput when I double my cores? [duplicate]

I currently have an server with an E5-2620V3 6 cores cpu. I run an python app using nginx and gunicorn. If I load test the app with 150 clients in a continuous loop it has a throughput of 20k ...
0
votes
0answers
15 views

RADIUS server does not call a custom script

I do have a RADIUS server which called a custom script for authentication in the past. In the /etc/freeradius/sites-enabled/default, I modified the following lines to archieve this: authorize{ ...
1
vote
0answers
12 views

PHP remote network location not appearing

I'm having some difficulty getting PHP (or more specifically, Python via PHP) to recognize an important network location. I'm trying to make a simple website which will allow users to easily execute ...
1
vote
1answer
48 views

mod_wsgi not working on Apache 2.4.12 64 bit on Windows 7

I'm running Apache (Haus) 2.4.12 64 bit on Windows 7 64 bit. Python 2.7.9 64 bit is installed. Apache is running flawless if I don't try to load mod_wsgi. I downloaded mod_wsgi.so from this site. I ...
1
vote
1answer
21 views

Error with Python2 as a https client with an nginx server and SSL certificate chaining

I am having trouble getting Nginx 1.8 working with my certificates so that I can use a python2 based https client. (requests.py, URLLib) I've tried using Comodo and GlobalTrust wildcard certificates ...
0
votes
0answers
16 views

mod_fastcgi child exited with status 8

I am trying to make fastcgi+lighttpd+python setup. But my lighttpd keeps dying with following error messages. 1970-03-16 03:51:17: (log.c.164) server started 1970-03-16 03:51:17: ...
0
votes
0answers
35 views

Django / uWSGI - Nginx giving 502 status code: error.log says “Permission Denied”

I'm trying to setup my Django app to use uWSGI and Nginx. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html I'm on the "Using Unix sockets ...
1
vote
0answers
54 views

Django uwsgi Nginx not serving media files - Django returns 404 status code

I originally posted this on SO but I think it might belong here instead. I'm following this tutorial: http://uwsgi-docs.readthedocs.org/en/latest/tutorials/Django_and_nginx.html Everything was going ...
0
votes
1answer
48 views

docker container port forwarding behavior for `run` command (for websockets)

I am running an ipython notebook server inside a docker container. Running code inside the notebook from the browser works over websockets, which have to connect from outside the container (a browser) ...
1
vote
1answer
38 views

Finding local IP addresses using Python's stdlib under Debian jessie

I am writing a distributed systems program in python, and in this program I need to know the local ip-address... eg. 168.192.... 10.13..... etc, not 127.0.0.1 or hostname. I have found following ...
0
votes
0answers
48 views

Error installing Python related packages for Ansible on an AWS Ubuntu server

I am trying to install the Ansible control server on Ubuntu 14.x (an AWS instance). When trying to install the dependencies, I saw an error. I'm not sure what I need to do. Is this an ignorable ...
0
votes
0answers
7 views

How to retrieve attributes of message written to a SQS queue using Boto? [migrated]

I have the following code snippet. conn = boto.sqs.connect_to_region(region) q = conn.lookup('myqueue') m = Message() m.set_body('My Message') data = {"UserID": {"data_type": "Number","string_value": ...
0
votes
2answers
46 views

Python Pip Install fails - Could not build the egg. Also cannot use 1.2.5 because of google cloud sql

I need mysql-python. I get error of could not build egg while installing 1.2.4 Everywhere it says install 1.2.5, which works for me too. But googleAppEngine's app.yaml supports only 1.2.4 ...
0
votes
1answer
47 views

Not able to use mysql in google app engine - Error loading MySQLdb module: No module named _mysql. I am using cloudSQL

I am using googleAppEngineLauncher to try mysql connection. It gives the log File "/Users/kakshilshah/Desktop/hope/skeduleBackend/django/utils/importlib.py", line 40, in import_module ...
1
vote
0answers
10 views

What would cause pysmb to fail when OSX Finder “Connect to Server…” succeeds? [migrated]

(originally asked on StackOverflow, but I think there are more appropriate experts here): I'm trying to transfer a file from a remote samba share (on a windows server) in a python script (running on ...
0
votes
1answer
38 views

Python2.7 issue after updating Debian to Jessie

After running dist-upgrade on one system I am getting this error: Sorry: TypeError: compile() expected string without null bytesdpkg: error processing package python2.7 (--configure): subprocess ...
0
votes
0answers
45 views

How do I re-compile python?

I am attempting to install pip on RHEL. When I run: [root@somewhere ~]# python get-pip.py Traceback (most recent call last): File "get-pip.py", line 20204, in <module> main() File ...
0
votes
1answer
45 views

Installing scipy in virtualenv on Elastic Beanstalk

I'm using Amazon's Elastic Beanstalk to deploy an example Flask app. I can get a simple "Hello World" app deployed perfectly, but now I'm trying to deploy the app with scipy as a requirement. I've ...
1
vote
2answers
31 views

Where is WSGI installed on Centos?

I am getting a permissions issue when running django in daemon mode. Reading here https://code.google.com/p/modwsgi/wiki/ConfigurationIssues#Location_Of_UNIX_Sockets I think the solution is to ...
0
votes
0answers
14 views

openshift gear borks and restarts

I have a Django application on Redhat OpenShift that uses a postgresql database. I use the free plan with 1 small gear using: Python 2.7 PostgreSQL 9.2 For a certain command I get thrown out from ...
0
votes
0answers
132 views

python django venv ImportError: No module named site

I have tried to deploy a django application using apache webserver. I have enabled wsgi_module in apache. Now i have created a virtual environment and installed django in it. Also installed required ...
0
votes
1answer
23 views

how to automatize/create sub-domains with boto for amazon Route53?

Is there a way to use the amazon boto(python tool) API for Route53 in order to create custom subdomains for a multi-tenant application?
0
votes
1answer
107 views

why django project failed deploying? - django + nginx + uwsgi

I am trying to deploy a Django project through Nginx and uWSGI. If I run the project manually running python manage.py runserver :8000 it works fine, so the project itself is not the problem I guess. ...
-1
votes
1answer
31 views

On-Premise Django deployment

I am developing a Django project that's will be hosted on a client private server (On-Premise mode). I'm new to that because usualy i am deploying my application as SaaS mode, so the client only have ...
1
vote
1answer
44 views

Is it possible to run two instances of mod_wsgi?

I have two python apps I'd like to run on the same server. One requires Python 2.7, the other requires Python 3.3. I'm running CentOS 6.6 with httpd 2.4 and the python 2.7 and 3.3 SCLs. The Python 2.7 ...
1
vote
1answer
242 views

Executing a python script through php button

I am having an issue with executing my python script through using a button on PHP. I looked through any or all relevant questions regarding my issue, and tried any answers i could find and modifying ...
0
votes
1answer
340 views

502 bad gateway nginx. uwsgi, flask

Ok so I developed a web app in python and it worked with the internal server: if __name__ == '__main__': app.app.run(debug = True) with no issue at all. I am now trying to start up a nginx ...
0
votes
1answer
23 views

gunicorn call fails every 6th time

i have a bottle app that has an endpoint that gets a timeout every 5th or 6th time i hit it (in my case, i just refresh every second to replicate) when it works successfully, it takes ~ 150ms to load ...
0
votes
0answers
30 views

Rights issue, extracting a zip archive

I'm in need for some expertise. I've been tinkering a few days at this with fruitless results. I'm trying to write an update script starting out in PHP. PHP will download a zip archive via FTP ...
1
vote
1answer
114 views

uwsgi configuration with Nginx, with python scripts as cgi - 502 Bad Gateway

This is my .ini file to run the uwsgi "pyApp.py" [uwsgi] plugins = cgi socket = 127.0.0.1:9010 cgi = /=/usr/share/test/ cgi-allowed-ext = .py cgi-helper = .py=python i have a file "firstapp.py" at ...
-2
votes
1answer
91 views

Connect to IPython via HTTPS, got SSL error

This question is migrated from here. I have a server running Ubuntu 12.04. I have installed IPython on it. Now, I would like to access IPython via HTTPS. I have done the following steps: Creating ...
0
votes
0answers
48 views

PySphere ESXi 5.0 Python VM Provision

I found this tutorial on creating a vm with Python. http://jensd.be/?p=370 I'm stuck on the bit about "esx_host" I tried the IP of the ESXi server and 127.0.0.1 and the script errors saying it ...
0
votes
1answer
97 views

Postgresql keepalived gluster | FAULT state

I am trying to achieve a simple failover using Keeplalived, postgres and gluster. Using CentOs 7 I have mounted a replicated gluster volume on both nodes at '/var/lib/pgsql'. Shared ...
0
votes
0answers
53 views

Running python to unlock luks full disk encryption

I wish to make use of full disk encryption using Luks on ubuntu 14.04. However, i wish to make use of my own python script to carry out the functionality of generating the decryption key during device ...
1
vote
1answer
210 views

How to serve static files with apache on openshift official python cartridge?

I have scalable openshift online app with official python-2.7 cartridge. By default everything is served with mod_wsgi handler. How do I configure my app and/or Apache to serve some static files in my ...
0
votes
0answers
187 views

HAProxy tcp load balancing with an https check fails

I'm trying to load balance a posgres tcp connection, with a node check done via a python script residing on an https connection. conf file looks like so: global log 127.0.0.1 local2 ...
1
vote
0answers
60 views

how to serve a single page application with openshift

I'm tryng to deploy a single page app on openshift. On openshift all the static contents have to be in wsgi/static dir, but I obviously want to serve my static index.html from the root. Every attempts ...
7
votes
2answers
4k views

How can I upgrade Python to 2.7.9 on Ubuntu 14.4?

Ubuntu 14.4 comes with Python 2.7.6 built-in, but I'd like to upgrade it to 2.7.9 (it has security features that I want). Is that even possible? If so, how can this be achieved?
0
votes
1answer
49 views

AWS EB deployment errors - No module named cfnbootstrap

I am trying to deploy my application on AWS Elastic Beanstalk, it states some errors when the process is completed and reading the logs this is what I've found: File "/opt/aws/bin/cfn-get-metadata", ...
0
votes
1answer
48 views

restarting apache using python causes port change

i'm using python bottle web framework to create a service manager so i've created endpoints for services re/starting / stopping the wired thing that happens when i'm using os.system('service apache2 ...
0
votes
1answer
226 views

Unsupported version control system “svn”: No module named svn

I'm using The Trac Project with TracModWSGI – The Trac Project on RHEL7: # cat /etc/redhat-release Red Hat Enterprise Linux Server release 7.0 (Maipo) # rpm -q httpd mod_wsgi subversion swig ...
0
votes
1answer
24 views

Static Analyzer for Configuration files

I'm currently planning to analyze csv-reports from our ActiveDirectory and configuration files from our switches with Python. I'm thinking of having seperate modules for each type of data (csv, txt). ...