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
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
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
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
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.
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
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
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
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
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.
10 matches
Mail list logo