Python is a dynamically and strongly typed programming language that encourages readability.
Questions tagged [python]
1743 questions
5
votes
5 answers
Running python app in the background on linux
Weird question here, but I'm playing with a python chat server/client combo on my Linux server. Currently, if I do this:
$: cd /path/to/chat/server
$: sudo python ChatServer_Listen.py
This starts the python app run loop and the server listens for…

Daddy
- 237
- 1
- 4
- 10
5
votes
1 answer
rsyslog update on Amazon Linux suddenly treats INFO level messages as EMERG
I'm having strange issue with rsyslog on some of my EC2 instances running Amazon Linux 2012.3.
Upon yum upgrading rsyslog 4.6 to 5.8.10, it seems like every INFO level log message is suddenly treated as an EMERG level issue and they are getting…

slucidi
- 53
- 5
5
votes
1 answer
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 instances are mostly successful in sending an…

larham1
- 171
- 6
5
votes
2 answers
Where to find python fabric setup examples?
I want to know what is your experience with fabric scripts? Do think it is useful?
is there sample scripts for this? copying, setup service etc
I know there is puppet and chef but i am looking for something that does not use a client/server setup to…

Riaan
- 421
- 5
- 13
5
votes
0 answers
Running Celery as a Daemon while using VirtualEnv
I've setup and tested celery on my amazon linux server, using mysql as the messaging backend and it works fine when running the program directly. My python project and celery install are located in a virtualenv. However if I attempt to daemonize…

elkelk
- 161
- 1
- 8
5
votes
4 answers
Make mod_wsgi use python2.7.2 instead of python2.6?
i am running Ubuntu 10.04.1 LTS and it came pre-packed with python2.6 but i need to replace it with python2.7.2.
(The reason is simple, 2.7 has a lot of features backported from 3 )
i had installed python2.7.2 using
./configure
make
make…

guron
- 51
- 1
- 1
- 2
5
votes
2 answers
Error installing mod_wsgi in centos with python2.7
When i do "make" in mod_wsgi folder i get this error
I configured using following
./configure --with-apxs=/usr/local/apache/bin/apxs --with-python=/opt/python27/bin/python
/usr/bin/ld:
/opt/python27/lib/libpython2.7.a(node.o):
relocation…

Mirage
- 561
- 4
- 10
- 25
5
votes
4 answers
Confused with doing sys admin things with python or not
I was doing backups in bash and I have written few other bash scripts as well.
I wanted to shift it to python because I needed to learn python for AI techniques and I was always delaying that. As I have to do sys admin things very often, so I…

Mirage
- 561
- 4
- 10
- 25
5
votes
2 answers
wsgi and python print statements
I have become aware that the print statements in my django app are causing wsgi to error and fail. Without going over all my code and removing/commenting out the print statements, is there a way I can disable them when running wsgi. It needs to be a…

Designer023
- 193
- 1
- 1
- 8
5
votes
4 answers
Coding exercise for Linux Systems Admin?
I am preparing for a Systems Admin(linux) role for a big company(top 10 companies) and one of the requisite is knowledge of a language like perl, python or Ruby. I have a phone interview which involves sharing a editor with the interviewer, now what…

Prashanth Sundaram
- 451
- 4
- 10
5
votes
2 answers
Processing incoming emails with Python
I'm developing a web application that requires that a registered username be able to receive emails to:
@.com
I need a way to be able to process the email with Python once the system has verified the address is in the…

NFicano
- 163
- 1
- 6
5
votes
2 answers
Has anyone used uwsgi nginx and django for a high-load environment?
I was wondering if anyone has used uwsgi with nginx to serve a high-load django site before. If so, did they have any problems?

kkubasik
- 209
- 3
- 5
5
votes
1 answer
how to configure ISPConfig for mod_python or mod_wsgi?
how to configure ISPConfig for mod_python or mod_wsgi for django like apps deployement?

shahjapan
- 141
- 1
- 13
5
votes
5 answers
Ansible OpenSSL Error with apt module
This is rather odd, I noticed it yesterday on one of my target machines, and today its happening on the rest of them too. I also tried running the playbook from a different machine and the same thing happened. It seems like this problem occurs after…

RedHack
- 153
- 1
- 5
5
votes
2 answers
Ubuntu 20.04 minimal: "Unable to locate package python-pip"
Launching some small VMs in GCP and thought I would give Ubuntu 20.04 LTS minimal a try. After doing an "apt update; apt upgrade" I'm able to install packages like Apache, but having zero luck with PIP:
root@ubuntu-rr58:/home/me# apt install…

John Heyer
- 211
- 1
- 3
- 10