The python tag has no wiki summary.
1
vote
3answers
35 views
How to execute further commands in a Linux startup script after starting a process
I am trying to write a startup script that executes an application (MapProxy) after a server reboot. My server runs Ubuntu 11.04 Natty 64 bit.
In the script, I execute a python script exec python ...
4
votes
3answers
65 views
deploying Python code with Puppet
I'm trying to implement a deployment system for my web application, based on Puppet.
The application consists of several services (a couple of web servers: Django- and Tornado-based and a worker ...
4
votes
0answers
50 views
Google c2dm transient 401 errors on some AWS instances
How can we figure out why we're getting occasional 401 errors from the Google c2dm push service on some AWS instances when asking c2dm to deliver a notification?
This is a transient problem. All AWS ...
2
votes
3answers
41 views
Upgrading Python on Linux
I hate to play the annoying dull person who doesn't have a clue what he is talking about. But, unfortunately, that's me as far as linux is concerned...
I'm doing some file manipulations in python ...
-1
votes
0answers
16 views
Name or service not known when sending mail
My server has been sending mails for last 9 months but today suddenly it start to raise error:
Error: gaierror: (-2, 'Name or service not known')
I think it is somehow related with my DNS config or ...
-1
votes
0answers
38 views
django-gunicorn-nginx: 502 bad gateway
I'm trying to ship my web application to the server and this is my first time configuring the server. I'm using django-gunicorn-nginx setup by following this tutorial ...
0
votes
0answers
35 views
Can't install Cloud9
cp grep-src/src/grep bin/grep
*
* at ChildProcess.<anonymous> (/usr/lib/nodejs/sm/node_modules/sourcemint-pm-sm/node_modules/sourcemint-pm-npm/lib/npm.js:69:29)
* at ...
1
vote
1answer
47 views
how to send a corrupt netbios packet
I want to send a corrupt netbios Session Service packet to my machine, My goal it to check whether my machine restarts or not upon receiving the corrupt netbios packet (this has happened before and I ...
0
votes
1answer
49 views
Nginx,Uwsgi and Django App Not Found
I have configured Nginx with uWSGI and Django on CentOS.
Django Directory(contains all my django app): /home
Django Project Directory: /home/hdblog
/home/hdapp.py contains below:
import os, sys
...
1
vote
1answer
21 views
mod_wsgi with no access to apache config
Provided that on the server I have:
mod_wsgi loaded and enabled
all-powerful htaccess,
can I use mod_wsgi without the need to edit the global apache config files? I don't have administrative ...
-2
votes
0answers
40 views
Network monitoring systems in Python
There are a host of open source network monitoring systems available. I tried we used to use Nagios, I have been hearing good things about Munin too.
The thing is most networking monitors are written ...
0
votes
0answers
15 views
How to Install libz.1.2.3.dylib on OS X 10.7? [migrated]
I want to install libz.1.2.3.dylib to use for building an iPhone app. OS X 10.7.4 has libz.1.2.5.dylib. But, the server I'm sending the gzipped data to has zlib 1.2.3 (used by Python). And, when it ...
0
votes
1answer
30 views
“User 'wsgi' not found” when starting uWSGI
I'm currently trying to set up a server on Amazon EC2 (Ubuntu 11.10) using web.py, nginx and uWSGI as shown here: http://blog.nobien.net/2011/08/14/nginx-uwsgi-and-web-py-and-my-new-job/
I've ...
0
votes
1answer
65 views
Building Python3 on a redhat 5 machine
I am trying to build Python3 on a RHEL 5.7 machine, I successful managed to build Python 3.2.2, with :
# Install required build dependencies
yum install openssl-devel bzip2-devel expat-devel ...
-1
votes
0answers
31 views
manage python scripts on server [closed]
I have a large collection of python scripts (crawlers) and I want to them to be running on a linux server, what is the best tools to manage python scripts online (which one is running which is not)
1
vote
2answers
120 views
Python SVN Bindings - ImportError: No module named svn
I have recently updated my server using apt-get upgrade and then suddenly trac started showing the following error message:
Warning: Can't synchronize with repository "(default)" (Unsupported version ...
0
votes
1answer
17 views
Cygwin with python for windows source
I need Cygwin with python to run PETSC library.
Does someone know source code for this? it's desirable to have also installation guide
2
votes
1answer
33 views
Beginner, trying to setup Python
I'm a PHP programmer, but I want to learn Python. I'm a bit confused with how to actually execute a script. I've created test.py in my web server root, in the file I've written:
#!/usr/bin/python
...
1
vote
0answers
56 views
Reporting critical disk usage with fabric
For example, we're running about 50 servers.
Let's say I'd like to be able to see if any of them are getting close to filling a partition. I can make a task that runs df -h on each of them, but the ...
1
vote
0answers
22 views
Python upgrade broke Plesk
I'm running Plesk 10.2 on Plesk Debian 6.0.
Since the last upgrade, my Plesk Interface returns an error 500 at domain.tld:8443.
In the apache error.log I get the following errors:
[Sun May 06 ...
0
votes
0answers
23 views
upstart process not receiving SIGTERM on reboot
I have a very simple Python process and a correspond .conf script:
start on net-device-up and local-filesystems
exec /scripts/uptest
respawn
#!/usr/bin/python
###
# An upstart process needing a ...
-2
votes
0answers
18 views
How to install a third party python module using python enabled cpanel
I have just gotten a web domain and have configured the cpanel to allow python scripts to run on the site. I am looking for a way to install third party python modules into the python that was ...
0
votes
0answers
29 views
virtual hosting php python
My question is I have a local setup for development with php using wamp. I am now adding python to my arsenal but upon setting up python I have lost my php abilities. I have setup virtual hosts with ...
0
votes
0answers
59 views
Apache with mod_wsgi and hello world works at first and then fails
I am struggling to get Apache, mod_wsgi and a hello.py script to work reliably on a Gentoo box. It works for a little while (few seconds it seems) after an Apache restart but then starts failing:
# ...
0
votes
0answers
33 views
Installing python Selenium client on Debian fails
I am trying to install the Selenium python client on a Debian squeeze server. The command sudo python setup.py install generates this:
...
0
votes
4answers
693 views
Postgres used in Ubuntu 12.04
I am trying to get django running on an ubuntu 12.04 release using postgres (clean install). To get it running it used to be that you would have to edit the /etc/postgresql/9.1/main/pg_hba.conf file. ...
0
votes
1answer
28 views
centos: unable to write to whoosh indexes
got a problem here. In my development server, I ran into a problem when I try to search using django/haystack with the whoosh backend engine.
The path to your Whoosh index ...
0
votes
1answer
103 views
Xen - “'NoneType' object has no attribute 'rfind'” error when trying to create domain with VNC enabled
I'm setting up a Debian Xen server for the first time, and so far it's gone smoothly. However, whenever I tried to enable VNC connections for a domain (by adding a vfb=... line to the config file), ...
1
vote
1answer
61 views
Installing mod_wsgi with python 2.7 on ubuntu
I tried to install mod_wsgi on my ubuntu server using the package manager, but noticed it depends on python 2.6. I'm using python 2.7, and would rather avoid installing 2.6...
Does mod_wsgi really ...
0
votes
1answer
62 views
I alternated my system default python version to python2.7, but the apt-get still use python2.6
Ubuntu , I changed my system default python version from python2.6 -> python2.7.
after
sh-3.1$: update-alternatives --install /usr/bin/python python /usr/bin/python2.7 2
sh-3.1$: sudo ...
0
votes
0answers
91 views
ImportError: No module named site - mod_wsgi into Apache
I have only seen some related questions to this with answers stating that there are version mix ups.
Specs:
Windows XP
Apache HTTP server 2.2.22
Python 2.7.2
WSGI mod mod_wsgi-win32-ap22py27-3.3.so
...
0
votes
1answer
73 views
syslog-ng not flushing the pipe to external program (SOLVED)
I have written a python script that takes log entries from syslog-ng and writes them to MongoDB (I couldn't do it with afmongodb driver because I need to do some special processing).
This is how it ...
0
votes
0answers
72 views
Django and Ruby on Rails - What is more mature in terms of security and ease of use? [closed]
I am currently in the decision making process for a CMS system that does not depend on PHP out of security reasons and for personal taste.
Basically for me it comes down to the technical and security ...
0
votes
0answers
18 views
WSGI hosting deployed with Hg? [closed]
I've recently written a custom blogging engine (using Bottle), and I'm looking for a web hosting solution where I can host with WSGI and deploy with Mercurial.
I'm new to this area of webhosting so ...
0
votes
2answers
49 views
mod_wsgi on Plesk server
I've installed mod_wsgi on my Plesk server, but I can't get it to behave the way I'd like. If I add
WSGIScriptAlias /python /var/www/vhosts/domain.com/httpdocs/python/test.wsgi
To my config file, ...
0
votes
1answer
32 views
uploading a python site to httpdocs?
OK - so we've agreed to host a python site, got the files and not sure where to go next.
We use a dedicated server and manage it mainly with plesk which has a tick box for a python support but not ...
0
votes
1answer
59 views
Python with mamp
I have a MAMP 1.9 install on Lion and would like to start using python with it. Mainly to learn and develop django sites.
I am very new to python in general. In my research I found that I either need ...
3
votes
1answer
132 views
Is virtualenv suitable for a production server?
I'm planning to set up a Python app (Pyblosxom) on my server and considering to run it in its own virtualenv sandbox with --no-site-packages. I'm hoping that such a setup would be easily portable and ...
2
votes
1answer
90 views
How to reduce celeryd memory consumption?
I'm using celery 2.5.1 with django on a micro ec2 instance with 613mb memory and as such have to keep memory consumption down.
Currently I'm using it only for the scheduler "celery beat" as a web ...
1
vote
1answer
46 views
SMTP server closes connection unexpectedly
I'm writing a python program to send emails, and when trying to send to yopmail, hotmail and some other hosts the connection gets closed by the server without a message. I tried connecting directly ...
0
votes
1answer
47 views
How do I get the caller name in Asterisk using Python?
I have an Asterisk (Elastix) installation. I have a MySQL database with about 10,000 customer names and numbers. I would like my call agent to recognize the name associated with the number. I can have ...
0
votes
1answer
45 views
Lighttpd $HTTP[“host”] regex matching
I've set up my config like this:
$HTTP["host"] =~ "(^|\.)domain1\.com$" {
fastcgi.server = ( "/domain1.py" =>
((
"socket" => "/tmp/fastcgi.socket",
"bin-path" => ...
2
votes
1answer
38 views
Python default version errors
For a while I've been getting this error while doing anything apt-get related:
Preparing to replace python-cairo 1.4.12-1.2 (using .../python-cairo_1.8.8-1+b1_i386.deb) ...
Traceback (most recent ...
1
vote
0answers
31 views
Error running Solr
I'm trying to install Apache Solr for Plone, via collective.solr.
I've followed the instructions above, and extended my buildout with:
[buildout]
extends =
buildout.cfg
...
1
vote
1answer
471 views
How do I upgrade Django 1.3.1 to 1.4? Any tips, tutorials, or warnings?
Django 1.4 was recently released. Almost all the information about Django 1.4 is in the release note, but I didn't see anything about how to upgrade. Should I just remove the django folder inside ...
0
votes
2answers
101 views
How should I upgrade Python on CentOS 5.5 (64-bit)
I believe I am running CentOS 5.5 (64-bit) on CA AppLogic 3.0.
uname -a says
Linux LINUX64 2.6.18-194.32.1.el5xen #1 SMP Wed Jan 5 18:44:24 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
I have upgrade ...
0
votes
1answer
40 views
Daemontools to run a python script
I have a run sript under ress directory:
#!/bin/sh
exec python gmail_new15.py
And when I try to execute svc I get:
~# svc -du ress/
svc: warning: unable to control ress/: file does not exist
My ...
0
votes
1answer
63 views
Restart python script if it crashes
I have a VPS running a simple python scripts. However, sometimes the script crashes. How can I make sure the script starts agian?
3
votes
4answers
134 views
Is there a simple LDAP-to-HTTP gateway out there?
We have a local LDAP directory that provides basic contact information about our user community. We would like to integrate this into some third-party hosted services that allow us to implement ...
0
votes
1answer
119 views
Installing Mod-wsgi 3.3 for apache 2.2 and python 3.2
I am attempting to install Mod-wsgi 3.3 on an ubuntu 11.10 desktop edition with apache 2.2 and python 3.2
I downloaded the source tarball and extracted it. I configured it using the ...