Python is a dynamically and strongly typed programming language that encourages readability.
Questions tagged [python]
1743 questions
6
votes
4 answers
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 based on Celery). They live in different git…

valya
- 203
- 2
- 7
6
votes
6 answers
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 widgets that run arbitrary Javascript.
In order to…

larsks
- 43,623
- 14
- 121
- 180
6
votes
2 answers
Recompiling python with SSL support on ubuntu
I have built/installed Python 2.7 on my Ubuntu 10.04 and I just saw that SSL is not activated.
Do I have to rebuild Python ?
How can I rebuild it with SSL support and update my current install ?
I would not like to have a new install in…

Pierre de LESPINAY
- 370
- 2
- 6
- 18
6
votes
4 answers
Ubuntu 11.10 with Nginx and uWSGI
I'm trying to get a LNP [Linux Nginx Python] stack (is that even a thing? heh) going, but I'm having some difficulties.
A lot of blog posts and documentation on doing this seems to revolve around using Upstart to manage the uWSGI process, which…

devians
- 223
- 2
- 7
6
votes
1 answer
How to setup Python with Lighttpd and FastCGI (like PHP)
Running Lighttpd on Linux, I would like to be able to execute Python scripts just the way I execute PHP scripts.
The goal is to be able to execute arbitrary script files stored in the WWW directory, e.g. http://www.example.com/*.py.
I would not…

johndir
- 305
- 1
- 5
- 9
6
votes
3 answers
Getting an error while installing supervisord on ubuntu 11.04. Any way to fix this?
# aptitude install supervisor
The following NEW packages will be installed:
python-medusa{a} python-meld3{a} supervisor
0 packages upgraded, 3 newly installed, 0 to remove and 0 not upgraded.
Need to get 0 B/290 kB of archives. After unpacking…

Andres
- 201
- 2
- 4
6
votes
2 answers
Getting contact list from IMAP server
I want to update my local Thunderbird address book with a list of valid email addresses on an IMAP server. I'm not that familiar with IMAP, does it allow this? If so, could someone point me to an existing code library (preferably python) that…

Brendan Abel
- 270
- 1
- 3
- 13
6
votes
3 answers
Setting up xpra for client use in OS X
I've been trying to get xpra to run on OS X for the last few days to connect to my Ubuntu server. Note that there's a GUI for it called shifter, but that (at least on OS X) is still far too buggy.
For those who don't know what xpra is, if you know…

Jonathan
- 301
- 2
- 8
6
votes
7 answers
What is the simplest, open-source webmail frontend available?
I am working on a project to create a few extremely stripped down interfaces for common Web/Internet tasks in order to make computers accessible to my visually impaired grandmother. Currently she uses Mac OS X Mail.app, but I had the idea that I…

josePhoenix
- 183
- 2
- 8
6
votes
3 answers
Configure FastCGI for Python
I have nginx running on a VM and I want to run a Trac site. I need to run a python FastCGI server, but I cannot tell which is the server to use. I have found the following:
Lighttpd spawn-fcgi But this seems to require that you compile lighttpd…

Rob
- 185
- 1
- 8
6
votes
1 answer
How to make mod_wsgi use Python 3.9?
I originally had Python 3.6 installed and working well with WSGI and Apache2 on my Linux server.
Then I created a Flask app that had a dependency needing Python 3.7.
I've successfully (and I think) upgraded to Python 3.9.
Running
python3 or sudo…

ThatCoolCoder
- 193
- 1
- 7
6
votes
2 answers
How to get a download URL for files in Google Cloud Storage?
I have created a service using :
storage.Client(project='project_name', credentials=credentials)
https://googleapis.dev/python/storage/latest/client.html
And I'm able to upload, delete and list the files in a users Google Cloud bucket. I've seen an…

subin_john_
- 61
- 1
- 1
- 3
5
votes
1 answer
Ansible split string on backslash
I'm passing a list of dir/subdirs into a playbook as follows:
dirs=['Web\this','Web\that','Web']
This works fine when I actually do tasks on those directories (win_shell, invoking a build process), but later I need to copy the files and the '\'…

Wolske
- 53
- 1
- 1
- 6
5
votes
2 answers
How to tell whether a serial connection is "established"?
We have a Debian-based embedded device. It runs an application that communicates with other embedded equipment via serial (RS-232, /dev/ttyS*). Usually, this works just fine. But of course, sometimes things go wrong and while our app can still send…

Nils Toedtmann
- 3,342
- 5
- 26
- 36
5
votes
2 answers
What shebang for Anaconda Python on my directory of Server
I have anaconda python distribution in ~/anaconda/bin/python but what shebang can I use to call this version of python instead of the old one that is default on the server?
# /opt/python/bin/python2.7 is the one i've been trying

O.rka
- 161
- 1
- 1
- 5