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

learn more… | top users | synonyms

0
votes
0answers
13 views

Nginx with Python and Wordpress same server

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
9 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; } } ...
2
votes
2answers
3k views

Celery daemon as a Ubuntu service does not consume tasks while running from terminal does

On Ubuntu 11.10, I have to issue python tasks from django using celery. I'm currently testing on the same machine but eventually the celery worker should run on a remote machine. django uses the ...
0
votes
0answers
8 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
8 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
3answers
2k views

Getting a list of patches in an HPSA patch policy

I'm trying to get a list of patches contained in a Patch Policy in HPSA -- I can get what I need via the Twister web interface (under PatchPolicy.getPatches(), give it an ID, and it happily returns a ...
0
votes
0answers
17 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
16 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 = ...
0
votes
1answer
921 views

python-ldap add member to Active Directory group

I am trying to add member to Active Directory group with script using python-ldap module. Here are my attempt so far: import ldap from ldap import modlist as modlist l = ldap.initialize(server) ...
0
votes
1answer
2k views

Error while installing with Python “pip”: Cannot fetch index base URL http://

I am trying to install a local version of ScrumDo for testing. Only then I come to the point in my installation that I have to run: source bin/activate pip install -r requirements.txt I get ...
0
votes
1answer
931 views

How can I install Zope on Ubuntu 10.04 with Python 2.6.5?

I tried to install Zope on Ubuntu server 10.04: mnk@srv:~/zope-plone/Zope-3.4.0$ ./configure --prefix=/opt/zope-3.4.0 Configuring Zope installation Testing for an acceptable Python interpreter... ...
1
vote
1answer
144 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 ...
1
vote
1answer
40 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
27 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
31 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 ...
0
votes
1answer
999 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 ...
1
vote
2answers
1k views

Lighttpd with FastCGI won't create /tmp/fcgi.sock on startup?

I'm running lighttpd-1.4.19 on a debian 5 box and try to run web2py with fastcgi. The problem with that is, that lighttpd does not create the socket file /tmp/fcgi.sock. If I'm creating the file by ...
-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
39 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
42 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
17 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
29 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
1answer
2k views

Python script to send mail through Amazon SES

I'm setting up Splunk to send e-mails through Amazon SES. But before doing this, I found a Python script (Splunk uses Python to send the mails) that I wanted to test which is not working on my Linux ...
0
votes
1answer
1k views

How to find timestamp of file on FTP server

I need to find the latest created file in a FTP folder. However the FTP server is not returning full timestamps for files with the LIST command (missing the year): drwxr-xr-x 2 owner group ...
1
vote
1answer
55 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
19 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
30 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 ...
0
votes
0answers
24 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 = ...
1
vote
1answer
20 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
267 views

Error installing Python packages 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 ...
3
votes
2answers
3k views

how to do a graceful uwsgi reload via bash script?

I have a django application which is executing a bash script. I require the nginx server to restart so I run /etc/init.d/nginx reload which works great. I have been using restart uwsgi for uwsgi but I ...
0
votes
0answers
28 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
67 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 = ...
0
votes
1answer
146 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 ...
0
votes
0answers
38 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
60 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
0answers
68 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
1answer
194 views

OpenVPN Python plugin

I have a task about authentication OpenVPN users using database which is located on remote server (not a host with OpenVPN server instance). And we use Python as main language for all our tools. ...
0
votes
2answers
328 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 ...
1
vote
1answer
64 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
70 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
16 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
0answers
34 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 = ...
2
votes
2answers
488 views

Non-responsive apache + mod_wsgi after installing scipy

I am currently running a Centos 6.4 server, with Apache 2.2.15 and mod_wsgi 3.2. The server is hosting a django-based site (django 1.5.1, python 2.6.6). Everything was running fine until I installed ...
3
votes
2answers
819 views

Deploying CherryPy apps: Standalone, WSGI Server or NGinx?

I intend to use a single VPS to deploy multiple low-traffic CherryPy apps as subdirectories; eg: example.com/app1, example.com/app2, etc. After researching on WSGI deployment, it looks like the ...
22
votes
4answers
29k views

How to run easy_install in cygwin?

I am trying to install some package in cygwin's python, but I'm getting the following error: "easy_install: command not found". I have tried to run "easy_install.py", the result is also ...
0
votes
1answer
32 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 ...
1
vote
4answers
998 views

PIP not installing to virtualenv directory

I am attempting to install django to a virtualenv that already exists. Following the instructions listed on the pip-install website here, I ran the following from SSH. name@server:~$ . ...