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

learn more… | top users | synonyms

0
votes
0answers
8 views

uWSGI failure to reconnect to a db

A while back out db went down late at night and the host it was on restarted. During the time it was down, we got the appropriate error tracebacks in the log. After it had come back up, the workers ...
0
votes
0answers
5 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
8 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
15 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 ...
-2
votes
0answers
8 views

OSError: [Errno 2] No such file or directory [on hold]

Need help .. I'm just beginner .. Traceback (most recent call last): File "pro.py", line 500, in <module> main(sys.argv[1]) File "pro.py", line 487, in main ret = pro.test(path, ...
0
votes
0answers
10 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 ...
-1
votes
0answers
17 views

how do you upload a file to an ftp server via an ftp proxy using curl, wget etc… . how do we replicate the same using python [on hold]

I have to upload files to ftp server via ftp proxy. Heard that curl doesnt have specific support for ftp proxy but it can be done via setting -u string. Can someone help me in this ?
0
votes
2answers
21 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
28 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 ...
-1
votes
0answers
15 views

need a script to add users under a different domain to shares [on hold]

Many users are now logging in under a different domain and cannot access the shares because they only have permission under the old domain. I need to add the same usernames with the same permissions ...
1
vote
0answers
14 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 ...
0
votes
0answers
19 views

What kind of RAM to choose for data analysis? [closed]

I'm planning to upgrade my computer and also want to buy some new DDR3 RAM modules. Making some research I realized that there are 2 main characteristics of RAMs (beside capacity): frequency and ...
-1
votes
0answers
18 views

Nginx with Python and Wordpress same server [duplicate]

I have a aplication with Python/Django running in www.mydomain.com. I want to create a blog with WordPress in the same server and I want my domain looks like this: www.mydomain.com/blog In nginx how ...
0
votes
0answers
13 views

How to configure NGINX to servce Python file and also Django file?

I have the following NGINX configuration: server { listen 8888; root /var/www; index index.html index.htm; location / { try_files $uri $uri/ /index.html; } } ...
0
votes
0answers
10 views

RHEL 6.6 pip after python upgrade “ImportError: /usr/local/lib/python2.7/lib-dynload/array.so: undefined symbol: PyUnicodeUCS2_FromUnicode”

I originally have python 2.6 and installed 2.7 and want to use pip to install some libraries like futures (with an s :)). Unfortunately, it seems like pip's libraries has been messed up. When type pip ...
0
votes
0answers
9 views

ip command vs qdisc discrepancy in dropped packets

I am simulating packet loss via mininet network on Ubuntu 14.04. Why are there no dropped packets showing up in ip command? For switch s3, I have Qdisc (sudo tc -s qdisc show): qdisc htb 5: dev ...
0
votes
0answers
29 views

Python3 virtualenv: ImportError: no module named 'ConfigParser'

I'm working on OSX and I'm trying to create a virtualenv with Python3, but I'm getting an error: $ virtualenv --python python3 env Running virtualenv with interpreter ...
-1
votes
0answers
17 views

Sending emails via smpt on FastCGI

I am using django 1.6.5 on FastCGI server (Windows Server 2012 R2) and am trying to send crash report emails via smtp.gmail.com on port 587. In the development environment the settings work perfectly, ...
0
votes
0answers
4 views

tags of axis ticks are truncated with pandas/matplotlib plot [migrated]

I am using pandas (matplotlib in the background) to create some histogram. I am doing it roughly like this: output = StringIO.StringIO() plot_canvas = matplotlib.pyplot.figure() ax = ...
1
vote
1answer
50 views

Are Elastic Beanstalk's environment variables an appropriate place to store secret values?

I have deployed my Django application to Elastic Beanstalk with the intention of using its environment variable configuration interface to store my API keys instead of storing them in my source (as ...
0
votes
1answer
28 views

Send user level messages to syslog

I currently have syslog.conf like so to send INFO logs to /var/log/messages *.info;mail.none;authpriv.none; /var/log/messages; I have an application that uses python libraries LOG_USER facility to ...
0
votes
1answer
33 views

collectd won't recognize my python plugin

I am trying to load a super simple plugin I found online as a starting point, and collectd doesn't seem to recognize my python plugin. My conf file has the appropriate lines: <LoadPlugin ...
-1
votes
0answers
14 views

can you findout what is the full meaning of following line - RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P] [duplicate]

what is the full meaning of following line - RewriteRule ^/(.*) http://127.0.0.1:5050/$1 [L,P] There are three application both running by python on ubuntu 14.4. they are visible as below link ...
-2
votes
1answer
44 views

How to find out reason of python script stop working in background?

I've bought a VDS server some days ago just to have some Telegram Bots working 24/7. I can't keep shell always open, so I've decided to use this "hack": 1. In Python script add #!/usr/bin/python3.4 ...
0
votes
0answers
6 views

ImportError: No module named gtkmozembed (Fedora) [migrated]

I am trying to run this python script https://github.com/coderholic/PyWebShot but I am using Fedora (20) and I do not know how to get module gtkmozembed. Yum provides and yum search do not help me. ...
0
votes
0answers
47 views

Internal Server Error with Nginx and uWSGI

I'm trying to host an app using Nginx on Linode.com but I'm stuck early on uWSGI config. I've used "Getting Started" guide and "WSGI using uWSGI and nginx on Ubuntu 12.04 (Precise Pangolin)" guide ...
0
votes
0answers
21 views

Correct tmux disconnect

I have got ubuntu server 12.04 for android application. Application server(python, postgresql) started via tmux. After closing tmux terminal(or "tmux detach") on my computer, application server is ...
1
vote
0answers
42 views

Amazon EC2 gives internal server error when posting via Python

I have a problem with python API and MY ec2 instance. When I am trying to post a json I am getting an error like 500 INTERNAL SERVER ERROR {"error_message": "Sorry, this request could not be ...
0
votes
0answers
25 views

nginx auth_request configuration

I'm running nginx and I wanna configure it to authenticate via a python script that will look up in my database. I need to receive the password and username in my python script but I can't figure out ...
1
vote
0answers
32 views

Nginx - How to authorize access to repositories using python script

I have set up a local Git server using Nginx ( in Ubuntu ) ,Now I want to authorize users using external python script , which should authorize them against predefined database . AFAIK, I have to ...
1
vote
1answer
58 views

Seafile “ImportError: No module named Image” After upgrade 3.0 -> 4.2

I recently upgraded our seafile server from 3.0.4 to 4.2.3. All the upgrade scripts went fine. It's running on CentOS 6.6. But now when I try to start seahub after the upgrade like seahub.sh ...
0
votes
0answers
26 views

IIS-8 - Python CGI needs to access a library outside of the web directory structure

I've got a python script that calls a dll in a directory off of C:\ (ctypes module). When I access the script, the errror I get back is in <module> mydll = ...
0
votes
0answers
31 views

how to generate a list of currently active proxies in python

I have a python script where I get connected to some sites through proxy if direct connection fails. What I want to do is get a list of currently active proxies and I cant figure out how to do so
0
votes
0answers
90 views

General SOCKS server failure while using tor proxy

I am proxying traffic over tor, so letter on when I need to call localhost port, it gives failure error. def create_connection(self, address, timeout=None, source_address=None): sock = ...
1
vote
1answer
22 views

rabbitmq server does not receive messages from a python client

I am trying to publish a message to rabbitmq. this works in production environment env with the same code so I suspect this is a configuration issue. rbqueue = RabbitMQClientQueue('cn-dip-v3', host = ...
0
votes
0answers
42 views

Windows - Flask app deploy on IIS 7 - IOError

For internal needs, I have to deploy a Flask application on IIS7 (Windows Server 2008 R2 Standard), following a resource that I found on the web: http://netdot.co/2015/03/09/flask-on-iis/ the ...
2
votes
1answer
63 views

How to establish new connection through proxy using Squid in Python script? [closed]

I am new to networking and proxy. For a project I need to give a proxy connection. I already have a connection and I want change the connection behavior of the process to connect through that proxy. ...
1
vote
1answer
70 views

vCSA command line installer fails to deploy with the error “Failed to login to host… is not a VIM server”

I'm using the vcsa-cli-installer utility under Linux (CentOS 6) to deploy VCSA 6.0 (vCenter Server Appliance). It is failing with the following: # ./vcsa-deploy -v ~/full_conf.json Start vCSA ...
0
votes
0answers
74 views

MySQL connection hanging intermittently

I'm having an intermittent bug where, on some queries, a MySQL database I'm using never responds to my queries. I am running a MySQL server and querying it through the python mysql connector module. I ...
0
votes
0answers
37 views

How do I create an SQLAlchemy class with two foreign keys (to different tables)?

Contrived example: class Person(Base): __tablename__ = 'person' id = Column(Integer, primary_key=True) name = Column(Unicode) class Location(Base): __tablename__ = 'address' id = ...
0
votes
0answers
17 views

Python/CGI on IIS - find user ID

I have a very basic Python/CGI based front end hosted on an IIS server. I'm trying to find the users within my shop that have accessed this site. All users on the network sign on with their LAN ...
0
votes
1answer
37 views

Redirect to Python script in .htaccess while maintaining request URL

I have a website configured with Apache for http://www.example.com located in /var/www/example.com/. For an arbitrary sub-path of this website I would like to have all requests handled by a Python ...
0
votes
1answer
35 views

Two mod_wsgi Django apps on one Apache are trying to use each other's config files

I have two unrelated mod_wsgi Django apps, which need to be served from two virtual hosts in one instance of Apache2. I've made each a virtual host, each with its own directory, settings.py and ...
0
votes
0answers
51 views

How use namespaces and fabric

I am using python and fabric, I have a hypervisor (KVM) defined as follows: env.hypervisor_address = 'hypervisor' # 192.168.0.250 From one VM (in the hypervisor) I want to SSH to other VMs with ...
0
votes
1answer
37 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 ...
1
vote
1answer
150 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
28 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
378 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
226 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
vote
0answers
71 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 ...