The tag has no wiki summary.

learn more… | top users | synonyms

0
votes
1answer
57 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 ...
0
votes
1answer
57 views

Different Python versions under the same uwsgi Emperor?

I'm running an uwsgi Emperor with various Vassals that each serve a specific Python app from a different virtualenv. Since uwsgi was compiled with it's own Python 2.7 interpreter, trying to use a ...
3
votes
1answer
240 views

psycopg2 not found by django after installing in virtualenv

I want to use postgresql with django so did the following: sudo apt-get install libpq-dev python-dev sudo apt-get update workon myenv sudo pip install psycopg2 And after configuring my settings.py ...
0
votes
0answers
31 views

Avoid duplicate python package installs on system when using virtualenv

Is it possible to setup virtualenv so that certain packages are treated as if they are local in the virtual environment but are instead installed globally? I'm thinking particularly for packages which ...
0
votes
2answers
1k views

uWSGI and python virtual env

I'm trying to use uWSGI with a virtual env in order to use the Trac bug tracker on it. I've installed system-wide uwsgi via pip. Next, I've installed trac in a virtualenv $ virtualenv venv $ . ...
0
votes
1answer
20 views

Python code location on debian [closed]

Simple question, which of these is a better directory setup for locating my project and why, as I have seen both recommended on different tutorial sites: Option 1: ...
1
vote
1answer
509 views

Why does httpd seem to use a different version of python with the same executable?

I am running Apache httpd 2.4.4 on a RedHat 5 machine. I am using Django and running through mod_wsgi. I have Python 2.4.3 installed in /usr/bin and Python 2.7.6 installed in /usr/local/bin and I want ...
0
votes
4answers
137 views

Trying to use virtualenv Django 1.4.1

I have Django 1.2.1 on the server. I need to use virtually Python to install Django 1.4.1 and an adapter to PostgreSQL which I want. I am trying to set up this software on my server. So I run ...
0
votes
1answer
57 views

Trouble with $PATH on debian

I think I have a problem with $PATH. I am running a shell script and it is complaining that it doesnt recognize the command even though when I run it manually it does. Shell Script: #!/bin/bash # ...
0
votes
1answer
227 views

Is it practical to use Google App Engine for a Django app?

I'm currently building a Django app that uses a MySQL backend. Traditionally I've worked with a VirtualEnv where I can install python packages, set folder permissions, etc. From some pages I've found ...
1
vote
1answer
241 views

Trying to run gunicorn from supervisor gives error - error: class uri 'simple' invalid or not found

I am already running successfully 2 django projects (in same virtualenv with python 2.7) with Django + gunicorn + virtualenv + Supervisord environment. But now i am trying to run another project in ...
1
vote
1answer
46 views

Debian virtualenv location

I have a question that I would appreciate some help with. I want to run a number of sites from my debian server, each with their own virtualenv. Should I be creating my virtualenv in the www-data or ...
1
vote
0answers
42 views

Automatically create virtualenvs for new user accounts

In Linux, how can I go about automatically creating virtualenvs for each newly created user account? Can it easily be done?
0
votes
1answer
438 views

Import error on boto - Module not found

I have a ubuntu LTS server. On boot I run a script which does the following: #!/bin/bash apt-get -y install build-essential python-dev libxml2-dev libxslt1-dev apt-get -y install python-pip ...
0
votes
1answer
2k views

Unable to execute gcc: No such file or directory

I am running Ubuntu LTS and I'm getting errors when trying to do some of my pip install stuff, like scrapy for example. This is the error I get: Unable to execute gcc: No such file or directory ...
1
vote
3answers
436 views

PIP not installing to virtualenv directory

I am attempting to install django to a virtualenv that already exists. Following the instructions listed on the pip-install website here, I ran the following from SSH. name@server:~$ . ...
0
votes
1answer
56 views

How do I setup nginx and uwsgi when using virtualenv?

I am going to start using virtualenv for the first time. If I am going to have multiple environments with a django project in each, do I have 1 nginx instance running and have each domain point to the ...
0
votes
1answer
2k views

Ubuntu - Supervisord and virtualenv

I'm attempting to run a series of Python apps from supervisor. It works fine on Mac OSX, but when I attempt to run the same app on Ubuntu, supervisor doesn't seem to be activating the virtualenv so my ...
1
vote
1answer
791 views

Deploying Flask application with nginx, uWSGI and virtualenv

I'm having a lot of trouble to deploy a Flask application on a CentOS 6 server. I know a few other questions have been asked concerning this problem, but I haven't succeeded yet. Description ...
3
votes
1answer
75 views

Workaround for pip install -E option

I am running a Fabric script that sets up a virtualenv on a remote server (running Ubuntu 12.04) and installs various packages into it. The script uses the -E option for pip to install the packages ...
1
vote
2answers
964 views

“Connection in use” running Gunicorn using VirtualEnv

I am trying to set up a development environment using Gunicorn and NGINX. While following this tutorial: http://ijcdigital.com/blog/django-gunicorn-and-nginx-setup/ I get the following error: ...
1
vote
1answer
126 views

SSH session closing whilst virtualenv session stays open (I think)

I've been developing some sites using Flask recently (running on debian within a virtualenv), and when I am testing I can run it on a port, let's say post 5000. So I run the script like so: . ...
1
vote
3answers
838 views

Why can't I run virtualenv without root?

I'm trying to run virtual env and all the documentation says I don't need to run it as root (and probably shouldn't). If I run it as root, everything works. If I run it without root, I get: ...
1
vote
1answer
187 views

Virtualenv not isolating pip installs properly on Ubuntu

I'm using virtualenv on Ubuntu 12 and when I install packages with pip (after activating the virtualenv) the packages are not being installed in the environment's site-packages directory, they're ...
14
votes
1answer
1k 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 ...
1
vote
1answer
2k 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 ...
2
votes
1answer
776 views

How to run easy_install and pip without root, without virtualenv?

People have access to servers as normal users (jailed actually), and they're advised - at the moment - to download whatever python packages they need, setup.py build them, then add their location to ...
0
votes
1answer
529 views

Uninstall python modules

How to uninstall all python modules that where ocasionally installed. I need this cleanup (as if it is a fresh installation) to start working with virtualenv. Also I want to be sure that there's no ...
3
votes
1answer
1k views

pycurl install looks for a non-existent file (libcurl.a)

I'm running a Gentoo Linux system under which I've never had problems installing anything into my virtualenv using pip. I've managed installing PIL and django, but for some reason, pycurl (a ...
5
votes
2answers
4k views

“ImportError: No module named flask” - Trouble with nginx + uWSGI + Flask in a virtualenv setup

I got nginx + uWSGI running on localhost inside a virtualenv with a simple hello world program, but I get this error when I replace the hello world with a simple Flask app: File ...
1
vote
1answer
141 views

Python virtualenv, pip and large setupping

What is the best practices for management large installs of virtualenv. How to do mass update of the packages?
3
votes
1answer
2k views

virtualenv gcc error MySQL-python

I am trying to install MySQL-python through PuTTY with virtualenv. Specs. *CentOS-6.0 *Python2.6 So I have read many sites and the biggest thing I see is python-dev, and python-devel(btw I don't ...
1
vote
0answers
834 views

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 ...
2
votes
2answers
754 views

Installing Pootle with uwsgi on ubuntu server

I'm trying to install a Pootle server on an ubuntu server under uwsgi. While everything went ok on my local dev server, when online i got this error i cannot overcome. It seems application-related, ...
2
votes
2answers
285 views

Installing compiled Python modules on Windows on a virtual env

I'm using virtualenv to maintain a Python installation on Windows. I want to install the popular PIL module, which comes as .exe. I run the .exe installer, but it tries to install to the regular ...
0
votes
2answers
485 views

Apache2 not loading wsgi script

I am setting up CKAN, a pylons application according to these instructions: http://packages.python.org/ckan/deployment.html But when I point to the server (no DNS setup yet) using IP or hostname, I ...
6
votes
1answer
4k views

Django + gunicorn + virtualenv + Supervisord issue

I have a strange issue with my virtualenv + gunicorn setup, only when gunicorn is launched via supervisord. I do realize that it may very well be an issue with my supervisord and I would appreciate ...
0
votes
3answers
399 views

How can I download django-1.2 and use it across multiple sites when the system default is 1.1?

I'm on Debian Lenny and the latest backports django is 1.1.1 final. I don't want to use sid so I probably have to download django. I have my sites located at: /www/ and I plan on using mod_wsgi with ...
1
vote
2answers
757 views

Python Profiling not installed in Ubuntu? How do I get it in a virtualenv and without apt-get?

According to the Python documentation, the "profile" module is part of the standard library. But I can't find it. On my home machine, I was able to add it using apt-get install. (ie. it's split out ...