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

learn more… | top users | synonyms

0
votes
0answers
6 views

apache fails to load mod_wsgi: complains of 'missing symbol'

When I run apachectl configtest after installing mod_wsgi I get the following error message: httpd: Syntax error on line 117 of /private/etc/apache2/httpd.conf: Cannot load ...
1
vote
2answers
925 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 ...
0
votes
1answer
20 views

NodeJs running in command line shows “Aborted”

I am using an Amazon EC2 instance using CentOs 5.4. I installed nodejs in different servers that follow the same architecture. In the current server I installed nodejs by following the below steps. ...
0
votes
3answers
1k 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
1answer
861 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 ...
3
votes
6answers
9k views

IO Wait causing so much slowdown (EXT4 JDB2 at 99% IO ) During Mysql Commit

I am writing an indexer, using python, which indexes documents and insert them into Database, Before it was single process but now i made it to multiprocessing with 4 parallel processes running.After ...
-2
votes
0answers
16 views

Converting a hobbit/xymon bash script to python [closed]

I have this bash line that I want to convert to python. $BBHOME/bin/bbhostgrep $TESTNAME | while read IP HOSTNAME OTHER; do How would I convert this to python? TIA usaims
1
vote
1answer
41 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    ├── ...
0
votes
0answers
4 views

Flask - Get key values from request.get_json() [migrated]

I am attempting to get the key values after requesting json data from ajax POST. I succesfully retrieve the data, however I get the error: " AttributeError: 'unicode' object has no attribute 'keys'". ...
0
votes
0answers
5 views

Get static code analyzer messages only from 'git diff'? [migrated]

In our build system (with sources under git version control), I'd like to get the static code analyzer (pylint, in this case) messages for every build. And I want them incremental: in the new build ...
2
votes
1answer
51 views

SPF issue with SpamAssassin

I have an internal management app for a small company, written in Python and running on a Linode VPS, with which users can send occasional emails to their customers. The emails are quite ...
-2
votes
0answers
7 views

does python PEX format support c extensions? [migrated]

Can the format be used to deliver apps with the C extensions too? Eggs (zip) cannot do that AFAIK. http://pex.readthedocs.org/en/latest/index.html
18
votes
3answers
7k views

How do I uninstall gitosis?

I've installed gitosis on my dramhost machine but now I want to uninstall it because it's causing more problems than solutions. The thing is that I can't find how to uninstall it. I deleted the ...
-3
votes
1answer
42 views

Mailman 404 page not found

I have configured mailman following these instructions. https://www.gnu.org/software/mailman/mailman-install/index.html I have run into this problem Problem: All Mailman web pages give a 404 File ...
0
votes
1answer
46 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
24 views

Pip mixup of python versions [migrated]

I recently installed python 3.4 using this custom installation guide, the system had python 2.6 as default. Today i needed to install tldextract to python2.6 I did that using pip pip2.6 install ...
-1
votes
1answer
48 views

Nginx Internal Server Error

I am new to NGINX and uwsgi and Im deploying my first python web application. Having tried numerous times, I get an internal server error. There may be something wrong with my configurations but i ...
2
votes
2answers
2k 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
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 ...
-1
votes
0answers
10 views

Import TAB delimited csv in python and strip /n and , from description field [migrated]

I have been trying to do this in python for a couple days now and I have it working sort of but I am stuck on this last error: File "C:\Python34\lib\csv.py", line 149, in _dict_to_list + ", ...
0
votes
1answer
27 views

Adding python to /usr/bin/env python variable [closed]

The #!/usr/bin/env python hashbang isn't working on my Ubuntu install. I tried the following: root@x# python=/usr/bin/python root@x# PATH=$PATH:/usr/bin/python
0
votes
0answers
22 views

How to get UIDNEXT in python procmail pipe script? [migrated]

I have this python script for inserting raw email to db. Do not ask me why I am inserting raw mail to database. import sys from DB import * import email full_msg = sys.stdin.readlines() j = ...
1
vote
1answer
956 views

How is it possible for mod_wsgi to be compiled against Python 2.7.3 but use the 2.7.2 runtime?

The following is what appears in my error_log: [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Compiled for Python/2.7.3. [Sat Nov 17 23:13:14 2012] [warn] mod_wsgi: Runtime using Python/2.7.2. If I ...
1
vote
0answers
45 views

Is my site getting hacked (Bluehost)?

I'm running a simple website off of Bluehost, and I needed to use custom Python scripts so I created a cgi-bin folder in my site's directory and added my cgi python files there. Everytime I tried to ...
0
votes
1answer
121 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
1answer
27 views

Pyajam in debian 7 [closed]

I'm trying to make the installation package python Pyajam I tried to install a pip, I received an error 4Suite-XML package Installing collected packages: pyajam, 4Suite-XML Running setup.py install ...
0
votes
0answers
7 views

Download log files from a server with Fabric

I'm using Fabric to download some log files from a server. So far so good, i'm having problems with the following scenario: env.roledefs = { 'dev': ['192.168.0.5'], 'hml': ['192.168.0.5'], ...
0
votes
1answer
865 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... ...
0
votes
1answer
21 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 ...
2
votes
1answer
113 views

Supervisord leaking child processes launched through shell script

I'm using supervisor 3 to daemonize a python process, which is launched through a bash script that sets up some configuration for python. The bash script runs python program in the foreground, FWIW. ...
0
votes
1answer
9 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
152 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: - ...
3
votes
4answers
4k views

RHEL 6.x - yum gives “ImportError: No module named cElementTree” errors

I'm making a set of changes to a group of 150 servers. All systems were able to successfully download and install a specific set of RPM's via yum, except for one. One this particular system, all yum ...
0
votes
0answers
23 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
62 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 ...
4
votes
2answers
604 views

Can Fabric be used for auto-deploying from GitHub?

Can I use Fabric to automatically deploy an app on my server every time I push the code to GitHub? (GitHub has the ability to POST to a URL every time I push.) If so, how?
0
votes
0answers
52 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 ...
3
votes
4answers
3k views

How to choose python version to install in gentoo

I'm using linux gentoo and i want to install python2.5 but it's a problem. emerge -av python shows These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild ...
1
vote
0answers
92 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
24 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
46 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
3answers
503 views

fail2ban error about python?

I have just installed fail2ban on my debian7 machine but whenever i start it i get a lot of error which seems to be about python? [....] Restarting authentication failure monitor: fail2banTraceback ...
0
votes
0answers
17 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
107 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 ...
0
votes
1answer
1k views

Ubuntu 13.04 errors with Python PIP install

After trying to use Ubuntu 13.04 instead of Ubuntu 12.10 to run my Chef recepis against I am getting an error when it tries to run sudo pip install cElementTree supervisor STDOUT: ...
0
votes
1answer
36 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
91 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 ...
-1
votes
1answer
3k views

How to install pip/easy_install on debian 6 for python3.2

I'm trying to install pip or setup tools form python 3.2 in debian 6. First case: apt-get install python3-pip...OK python3 easy_install.py webob Searching for webob Reading ...
3
votes
1answer
61 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 ...
0
votes
1answer
99 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 ...