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

learn more… | top users | synonyms

0
votes
0answers
23 views

pymysql connect attemp raises exception

I am trying to connect to a Mysql server on a Ubuntu machine from a Windows machine. The ubuntu machine's mysql server is listening on 0.0.0.0, port 3306, for connection. I have allowed the Windows ...
0
votes
0answers
26 views

Ubuntu - Supervisor and virtualenv

Hello I am using supervisor with celery in order to run some tasks in a django web application. Celery seems to be having an issue finding/resolving, models from packages that have been installed ...
0
votes
2answers
33 views

Debian 6 - Wrong Python 2.6 Installed (have 2.6.6-8+b1, need 2.6.6-8+deb6u3)

On Debian GNU/Linux 6.0.10 I'm trying to install mailutils. apt-get install mailutils Reading package lists... Done Building dependency tree Reading state information... Done Some packages could ...
1
vote
0answers
15 views

Socket or Message Queuing for installation platform [closed]

I'm trying to develop a system with a main controller and 5 nodes or workers that keeps track of the next current IP. My question is what should i used to achieved this configuration? Should I go with ...
0
votes
1answer
21 views

How to run script with diffrent frequency within a specified time frame?

I have python script which I need to run with diffrent frequency within a specified time frame. I tried to do this through crontab but I do not know how to bite it :/ My time intervals and ...
1
vote
1answer
38 views

How do I Make OS X Server 5.0 Use Python 3.5?

El Capitan and OS X Server 5.0 use Python 2.7 by default. I've installed Python 3.5, but how do I make OS X Server 5.0 use it for wsgi without breaking El Capitan's dependence on Python 2.7? ...
1
vote
1answer
30 views

wsgi script's environment is isolated hosted on httpd, CentOS 7

I'm hosting a simple wsgi application on httpd over CentOS 7 using mod_wsgi and trying to remove the isolation illustrated below. The wsgi app, The following script is my wsgi application. it ...
1
vote
0answers
42 views

Supervisor doesn't run gunicorn with django

I want to run supervisor in my Django server with gunicorn and Nginx, but when I run "supervisord" the supervisor log says: 2015-11-06 23:23:36,746 INFO daemonizing the supervisord process 2015-11-06 ...
1
vote
0answers
156 views

Install yum module for Python 2.6

I am running a Red Hat Enterprise 5.11 Server and just installed Python 2.6 in addition to version 2.4, which is system default. Unfortunately, I don't have access to the yum module anymore which I ...
2
votes
1answer
55 views

Python: How can i read the environment variables / user path variables from another user?

As far as i know, the user variables (of the currently logged on user) are stored in HKEY_CURRENT_USER\Environment. User path variables are stored in ...
1
vote
1answer
20 views

Running a script before packages are installed from requirements.txt

My app has some prerequisite conditions that mean that the installs from requirements won't work until a few scripts are run. I've been reading through the documentation on customizing the Python ...
0
votes
0answers
45 views

exception raised while using pip3

I need help fixing my pip3 install. every time I try to use it, say to install a python program or even to list the installed modules I've got the same series of errors : root@test:~# pip3 list ...
-1
votes
1answer
112 views

What shebang for Anaconda Python on my directory of Server

I have anaconda python distribution in ~/anaconda/bin/python but what shebang can I use to call this version of python instead of the old one that is default on the server? # ...
0
votes
0answers
179 views

“WindowsError: [Error 5] Access is denied” when running a python script

I'm getting a "WindowsError: [Error 5] Access is denied" message when running a python script which attempts to make an https connection. The following error message is produced by python: Traceback ...
-1
votes
2answers
293 views

python boto3 allow ingress security groups

I am developing a simple python script to add rules to securitygroups, and I am wondering what is the difference between the two methods available within boto3: ...
0
votes
1answer
126 views

Apache mod_wsgi installation error

I'm running CentOS 6.7, I'm trying to install mod_wsgi (https://code.google.com/p/modwsgi/) Normally I'd just do: yum install mod_wsgi But since I need to make sure it compiles under Python 2.7 ...
2
votes
1answer
183 views

Why do I sporadically get SSL: CERTIFICATE_VERIFY_FAILED in python 2.7.9+?

Let me start off by saying that I am aware of Python 2.7.9's changes to verify SSL certificates. I'm also aware of a few different ways to hack around it to turn it off. My question is that why do I ...
0
votes
0answers
233 views

Howto install python psutil on CentOS 6?

#yum install python26 python26-devel python26-setuptools gcc #easy_install psutil [root@vps021 ~]# easy_install psutil Searching for psutil Reading http://pypi.python.org/simple/psutil/ Best match: ...
0
votes
0answers
55 views

tmux permission denied error

I have got ubuntu 12.04 server with python tornado http application server. Tornado server started in tmux('python server.py'). It works fine with tmux session from my laptop. After disconnecting ...
0
votes
1answer
72 views

(Possibly installing and) using a specific version of Python

For a scientific application, I need to use specific versions of the Python packages numpy, scipy, and brian2. I've installed the correct versions on my laptop and run their test suites as follows: ...
0
votes
1answer
23 views

IMAP port permission (Python)

I'm writing a program to read emails from python when I execute below code it hangs in the last line import imaplib mail_server = "192.168.2.2" connection = imaplib.IMAP4_SSL(mail_server,993) I ...
0
votes
1answer
287 views

How to stop celery worker?

I am running celery via redis. I start my worker like this: celery multi start worker1 -A mypackage.tasks.tasks celery multi v3.1.18 (Cipater) > Starting nodes... > ...
-1
votes
1answer
165 views

Running Python scripts on Apache Server: 403 Forbidden Error

I need to run a few python scripts on a subdomain of my website set up using Apache on an AWS EC2 instance running Ubuntu. I tried following some of the steps mentioned in this post. I get a 403 error ...
0
votes
0answers
114 views

Apache, how to set a different virtualenv for every virtual host

I would like to host multiple web application on my Apache Server (2.2). But I would like each application to use a different virtualenv. This is my current configuration: WSGIPythonHome ...
0
votes
1answer
30 views

What to do if /usr/lib/python*/site-packages is accidentally deleted?

I have accidentally deleted my site-packages folder for python2.7.5 under /usr/lib/ . I have seen that if this problem happens i need to install python again. So, i took an rpm and tried rpm -i ...
0
votes
1answer
57 views

Use boto to update ElasticBeanstalk environment options

Boto has a function, update_environment, that allows the user to update options in an AWS ElasticBeanstalk environment. Using the AWS CLI, this would typically be actioned as follows: aws ...
2
votes
0answers
53 views

noVNC console on Openstack Dashboard is rendering garbled UI on RHEL7

I am running nova-compute on RHEL7. Openstack dashboard's noVNC console is rendering garbled UI for any instance having a UI console. Can somebody please help out? This is working just fine on RHEL65 ...
0
votes
1answer
47 views

After moving a Django application to a new project on the same server it is still using the original project settings.py

Setup: Django version 1.4, using Supervisor, NGINX, gunicorn, and postgresql 8.4. I have two Django projects hosted on one server, and one is leaving the server. There is an important application ...
0
votes
0answers
38 views

Issues with NAUbackup Email Notification

I've setup NAUbackup to carry out backups for my xenserver 6.5 VM's. It backups up fine but I can't get the email notification to work. I've uncommented everything in the VmBackup.py script, added my ...
-1
votes
1answer
19 views

Nagios Custom scripting help needed

I am running into a file permissions error when a custom python script is running as a service check, but when I run the script from the bash shell it runs fine. Here is more information on how this ...
0
votes
0answers
60 views

Apache mod_wsgi virtualenv

I would like to install mod_wsgi for my apache server. I've seen in the documentation that I have 2 ways to install: 1. directly for the apache 2. with pip In case I install it with pip, as far as ...
0
votes
0answers
79 views

openshift online: issues with single cartridge for nodejs and python3

I'm trying to setup a single cartridge for nodejs and python3 because i need to execute a python3 script from nodejs and by default, a nodejs cart doesn't support python3, neither do I have root ...
1
vote
0answers
184 views

Can't connect to (or write to) a socket file, despite being owner?

I am working on Debian Jessie with Django 1.8, trying to set up Gunicorn to run my Django site. I have made a user called opuser, and made this user the owner of the gunicorn.sock file and of the ...
1
vote
1answer
126 views

yum or apt-get does not work on amazon-aws

when I do yum, it says bash: /usr/bin/yum: /usr/bin/python2.62.7: bad interpreter: No such file or directory my aws instance details are as given below: Linux ip-72-311-15-127 ...
-1
votes
1answer
51 views

Cron: Execute python script, capture stdout & stderr and send via msmtp [duplicate]

I try this for almost 4 hours now, in different ways. I googled a lot, but nothing I try work as expected. I have a simple .msmtprpc file, that allows me to send mails like this: echo -e "Subject: ...
3
votes
1answer
49 views

What's the difference between running Python web applications in normal way and running them under wsgi?

I know that in order to run a Python web application(an application developed with frameworks such as Flask & Django) on the server, you need to deploy it using things such as uwsgi, wsgi.. ...
0
votes
1answer
118 views

root location of Flask app returns 403 on nginx server

I've seen other posts say that either file permissions or the lack of an index directive are the cause. However, my Flask application does not have an index file at all, and most of the site works ...
1
vote
0answers
14 views

Call to pythons os.getcwd returning odd results on Lustre filesystem

I don't really know if this question should be on Server Fault or Stack Oveflow, but I thought I'd try here first. I have a python application that makes quite a lot of calls to os file system calls ...
-1
votes
1answer
75 views

Missing “app engine service account” in developers console

I'm currently in the proces of updating an old appengine application to use the new cloudstorage based files API (python). This also means setting up cloudstorage for this application. I've done ...
1
vote
0answers
144 views

How to efficiently re-order packets in PCAP files based on timestamp?

I have a PCAP file which contains many packets. They are however out of order based on the timestamp (it is actually randomized). What is the best way to efficiently sort the PCAP packets based on ...
2
votes
0answers
753 views

uwsgi and “No module named django.core.wsgi”

On a fairly vanilla FreeBSD system without virtualenv, I'm having trouble getting uwsgi to work with Django. Attempting to run generates this error: Traceback (most recent call last): File ...
0
votes
0answers
57 views

Trying to get metircs from collectd with python plugin

I am trying to write a python plugin for collectd that will grab selected metrics and send them as json somewhere else. I have seen a few similar projects such the librato plugin here. However when ...
1
vote
0answers
236 views

Docker on freebsd11

I am trying to build a python application on freebsd11 and docker i have installed docker as per https://wiki.freebsd.org/Docker and all seems to work fine. my Dockerfile is like FROM python:2-slim ...
0
votes
0answers
23 views

Uwsgi Fallback Strategies

I'm giving some thought to application redundancy, and I was wondering what the best-practices are for improved reliability using uwsgi fallback features. Specifically, I had two thoughts: 1) We ...
0
votes
0answers
141 views

pyffmpeg installation on Ubuntu fails with Cython related errors

I'm failing in pyffmpeg installation on Ubuntu. Cython installation seems to be correct: $ sudo python setup.py install ... Adding Cython 0.22.1 to easy-install.pth file Installing cython script to ...
0
votes
0answers
17 views

Why does python 3 script not execute via crontab? [duplicate]

There's one little problem with my crontab and python 3 script. Currently I'm on VDS with Ubuntu 14.04 installed. There're 2 scripts that need to be executed via crontab in desired time. The first ...
0
votes
0answers
80 views

Uwsgi “Permission denied” after “Gracefully killing worker”

I run python environment with uwsgi on old centos 6.6 (it necessary for customer). But often i get error 502. log of uwsgi with error: 1) Request to /show/12763 took 0.474370002747 seconds Request ...
0
votes
2answers
108 views

The best approach to deploying a python solution to AWS

I have a Python solution that is deployed to AWS, my current deployment approach feels very archaic. I follow these steps each time I update the service: tar the python files that have changed scp ...
-3
votes
1answer
108 views

Run Python and Php under same server

I am trying to run python on main domain and a wordpress blog in sub-directory. Is it possible to do so? Currently the they are running good in sub-domains i.e http://main-domain.com and ...
2
votes
1answer
60 views

How can I install libmemcached on Openshift with sasl support?

I need libmemcached with sasl support to use Memcached Cloud cartridge on Openshift Online. I doing next: 1) Install sasl. curl -LO ftp://ftp.cyrusimap.org/cyrus-sasl/cyrus-sasl-2.1.26.tar.gz tar ...