What are your settings, your tricks, and above all, your work flow?
These tools are great but they are still no best practices attached to their usage, so I don't know what is the most efficient way to use them.
Do you use pip bundles or always
download?
Do you set up Apache/Cherokee/MySQL by hand or do
you have a script for than.
D...
I've installed virtualenv in the home directory of a shared university server so that I can install custom packages I need for my application (SQLAlchemy and Amara, most importantly). SQLAlchemy works just fine, but Amara (2.0a4) refuses to cooperate.
For some reason, using the virtual environment's easy_install amara command, the Binde...
When I create a new virtualenv, virtualenv .virtualenvs/my_env, there is only a subset of the standard python modules copied/linked to the new virtualenv.
For example, when I do ls -l in .virtualenvs/my_env/lib/python2.6, I see:
...
... os.py -> /usr/lib/python2.6/os.py
... os.pyc -> /usr/lib/python2.6/os.pyc
but modules like shutil ...
I've used virtualenvwrapper, but I'm having problems running it on a new computer. My .bashrc file is updated per the instructions:
export WORKON_HOME=$DEV_HOME/projects
source /usr/local/bin/virtualenvwrapper.sh
But when source is run, I get the following:
bash: /25009.hook: Permission denied
bash: /25009.hook: No such file or dir...
I've installed virtualenv and virtualenvwrapper on Windows using easy_install. But mkvirtualenv is missing. I tried to search on my machine but I couldn't find it. I don't know how to solve it. Do you have any idea?
...
I have a Fabric task that needs to access the settings of my Django project.
On Windows, I'm unable to install Fabric into the project's virtualenv (issues with Paramiko + pycrypto deps). However, I am able to install Fabric in my system-wide site-packages, no problem.
I have installed Django into the project's virtualenv and I am able...
I set up a virtualenv, which is working, but for some reason I need to use sudo for commands as simple as mkdir. Obviously I did something incorrectly. Any idea what it might be?
Thanks
...
I've just finished setting up a django app on virtualenv, deployment went smoothly using a fabric script, but now the .wsgi is not working, I've tried every variation on the internet but no luck. My .wsgi file is:
import os
import sys
import django.core.handlers.wsgi
# put the Django project on sys.path
root_path = os.path.abspath(os.p...
Fabric displays Disconnecting from username@server... done. for almost 2 minutes prior to showing a new command prompt whenever I issue a fab command.
This problem exists when using Fabric commands issued to both an internal server and a Rackspace cloud server. Below I've included the auth.log from the server, and I didn't see anything ...
yolk -l gives me information that I've got 114 packages installed on my Ubuntu 10.04. After creating new virtualenv directory using
virtualenv virt_env/virt1 --no-site-packages --clear
I switched to that, my prompt changed and then yolk -l gives me again the same 114 packages.
What is going on there?
...
I'd usually prefer to create virtualenvs with --no-site-packages option for more isolation, and also because default python global packages includes quite a lot of packages, and usually most of them are not needed.
However I'd still want to keep a few select packages in global, like PIL or psycopg2. Is there a good way to include them in...
I'm setting up a virtualenv, but it seems to be using python2.5 by default.
I'm using this command
virtualenv newenv --no-site-packages -p python
because the python found on my path is python2.6. I believe this to be true because when I type python and go into the shell, it tells me it's 2.6. When I create the virtualenv with the abo...
My project uses buildout to do primarily two things: automatically fetch dependencies and create scripts; and setup cron jobs (on deployment machines) using the usercrontab buildout recipe.
But buildout is not yet available for Python 3.
So I would like to consider alternatives for buildout. I know that both virtualenv and pip work on ...
Hi,
I'm new to Python (from Java+Ant) and was wondering if someone could detail how to best use Fabric+Pip+Virtualenv to set up a Python web application package skeleton.
The end goal is to be able to do any of the following with a single command:
Set up a development environment on a fresh dev box (installing all deps)
Run all tests...
I'm using pip and virtualenv for my python application. I would like to upgrade to a new version of the application without touching the dependencies. When I use pip install -U, it tries to upgrade all the packages, and even uninstalls and re-installs the same version of a dependency package when there isn't a new version available. I al...
how do i call a python script from crontab that requires using activate (source env/bin/active)?
...
My current setup is Python 2.5/ Django 1.1.1 on Windows. I want to start using Django 1.2 on some projects, but can't use it for everything. Which is just the sort of thing I've got virtualenv for. However, I'm running into a problem I've never encountered and it's hard to Google for: installing Django 1.2 into a virtualenv has no effect...
I have created a virtualenv with the --no-site-packages option. I get an error trying to install PIL:
http://pastebin.com/SVqxs1sC
...
error: command '/usr/bin/gcc' failed with exit status 1
----------------------------------------
Command /home/dustin/.virtualenvs/django1.2/bin/python -c "import setuptools; __file__='/home/dustin/.vi...
Hello, I'm having problems with macOSX and virtualenv. It seems to ignore --no-site-package.
Using exactly the same commands with linux (archlinux) it works. It it macOSX 10.5 with python 2.5
curl -o virtualenv.py 'http://bitbucket.org/ianb/virtualenv/raw/tip/virtualenv.py
Create a new environment
python virtualenv.py --no-site-packa...
I installed psycopg2 in virtualenv using easy_install psycopg2. I did not see any errors and looks like installation went fine.. there is an egg file created in the site-packages dir for psycopg2..
but when I run import psycopg2 in the interpreter, I am getting following error.. any clue? How can I fix it.. any other way to install psyc...