Tagged Questions

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

learn more… | top users | synonyms

0
votes
1answer
7 views

Locust AWS python requirements fails

Folks, Trying to setup Locust in AWS using latest amazon linux. After installing locust, i get the following when starting in master mode: locust -f foo.py --master Traceback (most recent call ...
0
votes
0answers
14 views

Writing a fail2ban multiline regex

I've got some troublesome hosts trying it on with an SSH server I run, and I'm trying to ban them using fail2ban. Problem is, I haven't done much work with regexes, and even less with Python regexes. ...
0
votes
1answer
6 views

Minimizing Downtime With Upgrades For 3rd Party Products

I am currently maintaining a Review Board server (https://www.reviewboard.org/) and one of the big pain points is scheduling upgrades. Currently the process is: Take the server down and send all ...
1
vote
1answer
27 views

salt-stack : No Top file or external nodes data matches found

To test salt-stack I would like to copy a config file to another distant one (I am testing master and minion in localhost) /etc/salt/minion : master: 127.0.0.1 file_roots: base: - ...
-5
votes
0answers
24 views

Python code to filter packets by protocol like in wireshark [on hold]

I'm not sure if this question should go to stackoverflow or here, but since this is about packets and protocol, I figure it should go here. I have a program that can read raw bytes in packet data. ...
0
votes
0answers
18 views

Error when launching salt-master

I have this error when I execute : salt-master : # salt-master [ERROR ] Failed to read the virtual function for module: apt Traceback (most recent call last): File ...
0
votes
0answers
14 views

Apache not serving my python app

So here's my apache config: LoadModule wsgi_module /usr/lib/apache2/modules/mod_wsgi.so <VirtualHost *:80> ServerAdmin marijus.merkevicius@gmail.com ServerName 31.220.49.197 ...
-1
votes
0answers
8 views

gentoo how to switch python version from 3.3 to 2.7? [duplicate]

I am having problem with eselect python set. When I select for example 2.7 and then start python interpreter it sill show version 3.3. Do you have any idea how to solve this?
0
votes
0answers
19 views

salt-stack : Using multiple grain files

How can I use multiple grain files and organise them in directories : # pwd /etc/salt This is just an example: etc └── salt └── minion    ├── minion     ├── grains_1    ├── ...
1
vote
0answers
37 views

Pyramid + Nginx + uWSGI Server 500 Errors

I have a uWSGI application written in Python using the Pyramid framework. Nginx is configured like below (I left out a few bits, but I don't think they will matter): upstream uwsgicluster { ...
1
vote
1answer
13 views

Using collectd with Python 3

I'd like to use the Python 3 interpreter within collectd, but there's no (documented) option to set the path or the version of the interpreter, and it defaults to the Python 2 interpreter that's also ...
0
votes
1answer
37 views

How to run WSGI-file with Nginx

I have a Python-application with a Bottle-webserver running with port 8080. Now i will connect Nginx to the Bottle-webserver with a wsgi-file. Now, i have a wsgi-file, but how can i execute this with ...
0
votes
0answers
13 views

Elasticsearch service automatilly terminates

When i try to start the elasticsearch service, it starts normally (no error messages). But terminates immidiately. There is no log in the /var/log/elasticsearch directory.I'm using elasticsearch ...
0
votes
1answer
57 views

uWSGI cannot load virtualenv

I'm setting up a Python app using nginx and uWSGI. My dependencies are in a virtualenv. If I activate the virtualenv manually, everything works by running this command: uwsgi --ini uwsgi.ini But if ...
-3
votes
0answers
26 views

removed python2, can't connect any more [closed]

I'm new to CentOS (6). I removed python with sudo yum remove python2 (big mistake, I know) and now I can't connect to my server any more. I know that I need to reinstall python, but I don't know how ...
0
votes
1answer
56 views

Packaging a virtualenv

I'd like to package a Python virtualenv with fpm, so that I can deploy it to my servers. I want to setup the virtualenv somewhere in my home directory without having to use root permissions, but ...
0
votes
1answer
27 views

IIS fastcgi race condition or locking with .py files (file watching?)

I am trying to deploy the python web framework web2py on iis8 on Windows server 2012. I am using fastcgi, downloaded from microsoft, v 2.1 and python 2.7 web2py sometimes creates .py files under the ...
-1
votes
1answer
26 views

Web client software, running on server, using a proxy [closed]

an institution I work for, a library, has a proxy server, that can be used by registered (logged-in, authorized) users. There is high demand for this service, as browsing internet with library's IP ...
3
votes
1answer
47 views

Tweaking Ansible output

I want to use Ansible to collect information from a number of servers. The information should be postprocessed locally, so it should be presented in a certain format. Other than grep and sed and awk ...
1
vote
1answer
31 views

Azure Memory Allocation (Windows VM) for Python?

I'm running a pretty intensive python script on a large Azure Windows VM. I'm using Enthought Canopy for my python environment. The VM has 56gb of ram available... however in the task manager python ...
0
votes
0answers
45 views

Mount NFS share and symlink it to a directory using non-Administrator account

I'm on Windows 8.1 Enterprise and what I'm trying to do is to have a python script that will: Mount an NFS share for the current user Create a symlink in the current working directory to a drive ...
1
vote
2answers
123 views

Python Script portion failing to execute within init.d/ on RedHat 6.5, why?

I've created a init.d script called rmCluster which is supposed to execute a simple python script at shutdown which uses boto to shutdown a particular cluster of servers, with 755 perms, located in ...
0
votes
1answer
24 views

AWS EC2 Ubuntu - Logging Python print statements

What is the easiest way to see "print" statements made when a Python file is executed on my AWS EC2 Ubuntu server? I have tried the aws cli, but this does not work for me.
0
votes
1answer
389 views

Django, mod_wsgi, pyvenv-3.4 - configuration

I'm trying to deploy my first, simple django website. I have an VPS with Ubuntu 14.07 Server, Apache 2.4.7 with mod_wsgi. So, i added this vhost: <VirtualHost *:80> ServerName api.XXX.net ...
0
votes
1answer
53 views

Different Python versions under the same uwsgi Emperor?

I'm running an uwsgi Emperor with various Vassals that each serve a specific Python app from a different virtualenv. Since uwsgi was compiled with it's own Python 2.7 interpreter, trying to use a ...
0
votes
1answer
67 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 ...
-1
votes
1answer
97 views

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

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 ...
0
votes
1answer
46 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 ...
0
votes
1answer
41 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
206 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 ...
2
votes
0answers
46 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
80 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
83 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
49 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
112 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
182 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
32 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
149 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
59 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
82 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
63 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
103 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
24 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
231 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
69 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
90 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
79 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
108 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
225 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
52 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. ...