Questions tagged [python]

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

1717 questions
83
votes
3 answers

How do I list the files associated with a Python package installed using pip or easy_install?

I've installed a Python package using pip, which is a replacement for easy_install. How do I get a list of which installed files are associated with this package? Basically, I'm looking for the Python package equivalent of dpkg -L or rpm -ql
Lorin Hochstein
  • 4,868
  • 15
  • 54
  • 72
40
votes
0 answers

What advantages/features does Puppet or Chef offer over Salt (or vice versa)?

I am looking at rolling out a new configuration management tool to replace our home-grown solution. The defacto standards are Chef and Puppet, both of which are Ruby-centric (though can be used to deploy non-Ruby environment, obviously). The vast…
jamieb
  • 3,387
  • 4
  • 24
  • 36
38
votes
7 answers

How to automatically start supervisord on Linux (Ubuntu)

Supervisord does not come with an init script or does not indicate how to get it started automatically, ie. after a reboot. I've tried some user-contributed /etc/init.d scripts, but they all fail. What would be the preferred solution ?
sebastien
34
votes
6 answers

How can I upgrade Python to 2.7.9 on Ubuntu 14.4?

Ubuntu 14.4 comes with Python 2.7.6 built-in, but I'd like to upgrade it to 2.7.9 (it has security features that I want). Is that even possible? If so, how can this be achieved?
moomima
  • 497
  • 2
  • 5
  • 8
32
votes
4 answers

How to run easy_install in cygwin?

I am trying to install some package in cygwin's python, but I'm getting the following error: "easy_install: command not found". I have tried to run "easy_install.py", the result is also "easy_install.py: command not found". I have tried to search…
Alex Gontmakher
  • 101
  • 1
  • 2
  • 4
31
votes
3 answers

Best way to run python 3.7 on Ubuntu 16.04 which comes with python 3.5

I would like to avoid backports, they always seem to mess up my packages. So I was thinking tools like conda / virtualenv / maybe even docker can help. What's the most simple / cleanest way to work with python 3.7 on my system?
benji
  • 477
  • 1
  • 5
  • 11
26
votes
7 answers

How to set up Mod_WSGI for Python on Ubuntu

I am trying to setup MOD_WSGI on my Ubuntu box. I have found steps that said I needed to do the following steps I found at http://ubuntuforums.org/showthread.php?t=833766 sudo apt-get install libapache2-mod-wsgi sudo a2enmod mod-wsgi sudo…
AutomatedTester
  • 421
  • 1
  • 4
  • 10
25
votes
3 answers

Shinken - Anyone using it?

I've recently discovered Shinken, which is a new implementation of Nagios using python. Shinken "divides" Nagios in 5 different types of daemons, each one performing separated tasks. I haven't tried it yet but for what I've seen the whole…
Marco Ramos
  • 3,100
  • 22
  • 25
23
votes
1 answer

Python CGI on Amazon AWS EC2 micro-instance -- a how-to!

How can you make an EC2 micro instance serve CGI scripts from lighthttpd? For instance Python CGI? Well, it took half a day, but I have gotten Python cgi running on a free Amazon AWS EC2 micro-instance, using the lighttpd server. I think it will…
user595585
21
votes
1 answer

Recommended Nginx + WSGI Configurations

Please explain pros/cons when using the different Nginx WSGI interfaces? Please explain in detail what differentiates each configuration? Which configuration should scale the best? If relevant, what are you running right now, and why? Some…
cmcginty
  • 1,263
  • 15
  • 24
19
votes
1 answer

Keepalive setting for Gunicorn behind ELB without Nginx

Our app's REST API is served by Gunicorn (not behind Nginx) running on AWS EC2 instances with a typical auto-scaling/load balancing setup. The load balancer's idle timeout is 60 seconds, and Gunicorn's keep-alive timeout is 2 seconds. We've been…
handsofaten
  • 327
  • 3
  • 6
18
votes
3 answers

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 ~/repositories directories but of course all the bins…
Oscar Del Ben
  • 281
  • 2
  • 4
17
votes
3 answers

Running multiple workers using Celery

I need to read from Rabbitmq and execute task in parallel using Celery in a single system. [2014-12-30 15:54:22,374: INFO/Worker-1] ... [2014-12-30 15:54:23,401: INFO/Worker-1] ... [2014-12-30 15:54:30,878: INFO/Worker-1] ... [2014-12-30…
SrC
  • 181
  • 1
  • 1
  • 4
16
votes
1 answer

Are Elastic Beanstalk's environment variables an appropriate place to store secret values?

I have deployed my Django application to Elastic Beanstalk with the intention of using its environment variable configuration interface to store my API keys instead of storing them in my source (as described here…
M. Keller
  • 163
  • 1
  • 4
16
votes
6 answers

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 every text extraction , it insert into database…
Phyo Arkar Lwin
  • 325
  • 1
  • 4
  • 10
1
2 3
99 100