Re: Virtualenv loses context

2012-12-20 Thread Ian Kelly
On Thu, Dec 20, 2012 at 5:50 AM, wrote: > Brought my laptop out of hibernation to do some work this morning. I > attempted to run one of my ETLs and got the following error. I made no > changes since it was running yesterday. > > > > [swright@localhost app]$ python etl_botnet_meta.py --mode dev

Re: Virtualenv loses context

2012-12-20 Thread rhythmicdevil
Brought my laptop out of hibernation to do some work this morning. I attempted to run one of my ETLs and got the following error. I made no changes since it was running yesterday. [swright@localhost app]$ python etl_botnet_meta.py --mode dev -f Traceback (most recent call last): File "etl_bo

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
Thanks for the information Hans, I will double check that stuff. I am positive however that the environment was active. In addition that fact that I get different responses from python -m site from the botnet_etl virtual environment before I blew it away and after I rebuilt it really concerns me

Re: Virtualenv loses context

2012-12-19 Thread Hans Mulder
On 19/12/12 15:38:01, rhythmicde...@gmail.com wrote: > Just installed a brand new virtualenv along with two packages. Ran this and I > got nothing: > > (venvtest)[swright@localhost venvtest]$ python -m site > (venvtest)[swright@localhost venvtest]$ > > I expected to have at least one path in sys

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
So I reinstalled the virtualenv for my project from scratch. Application runs as expected. Here are the notes that I took while installing. Interestingly the command 'python -m site' produces no output now. Notice that before I reinstalled the virtualenv I got a bunch of paths from that command.

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
Just installed a brand new virtualenv along with two packages. Ran this and I got nothing: (venvtest)[swright@localhost venvtest]$ python -m site (venvtest)[swright@localhost venvtest]$ I expected to have at least one path in sys.path [swright@localhost workspace]$ virtualenv --no-site-pa

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
This may have something to do with it. I create the virtualenv in: /home/swright/workspace/botnet_etl/ After I install my app the directory structure looks like this: (botnet_etl)[swright@localhost botnet_etl]$ ll total 32 drwxrwxr-x 4 swright swright 4096 Dec 19 09:21 app drwxrwxr-x 3 swrig

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
I wrote this little test script to prove my virtualenv is reading from global site packages: Script Content from distutils.sysconfig import get_python_lib print (get_python_lib()) Script Output (botnet_etl)[swright@localhost app]$ python test.py /usr/lib/python2.6/site-packages (botnet_etl)[swr

Re: Virtualenv loses context

2012-12-19 Thread rhythmicdevil
This may have something to do with it. I create the virtualenv in: /home/swright/workspace/botnet_etl/ After I install my app the directory structure looks like this: (botnet_etl)[swright@localhost botnet_etl]$ ll total 32 drwxrwxr-x 4 swright swright 4096 Dec 19 09:21 app drwxrwxr-x 3 swright swr

Virtualenv loses context

2012-12-19 Thread rhythmicdevil
I am somewhat new to Python and virtualenv. I have setup a virtualenv with no site packages under the assumption that all 3rd party packages will be installed into the site-packages directory for the virtualenv. Another assumption I have about virtualenv is that it's completely self contained.