Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
Message from discussion Clean env
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Doug Hellmann  
View profile  
 More options Aug 4 2010, 5:05 pm
From: Doug Hellmann <doug.hellm...@gmail.com>
Date: Wed, 4 Aug 2010 17:05:09 -0400
Local: Wed, Aug 4 2010 5:05 pm
Subject: Re: Clean env

On Aug 4, 2010, at 9:40 AM, markh wrote:

> I am having a few problems creating a clean env, ie one with out all
> the site-package bagage.
> I'm not sure if the answer lies with my python installation, or with
> my virtualenv(wrapper) installation

> On running
> .............
>> mkvirtualenv env3 --no-site-packages
>> workon env3
> (env3)> python -V
> Python 2.4.3
> (env3)> python
>>>> import sys
>>>> for x in sys.path:print x
> /usr/lib/python2.4/site-packages/pip-0.8-py2.4.egg
> ..........
> I get all the /usr/lib/python2.4/site-packages

Try reversing the order of env3 and --no-site-packages on the command line.  mkvirtualenv expects the environment name to be the last argument.

> Also running
> .........
> env3)>lssitepackages
>  File "<string>", line 1
>    import sys; print ".".join(str(p) for p in sys.version_info[:2])
>                                        ^
> SyntaxError: invalid syntax

This is a separate problem.  I don't remember when generator expressions went into the language.  Apparently not in 2.4.  I'll have to look at the tests and see if there's one for lssitepackages.

> ls: /home/batch/Envs/env3/lib/python/site-packages: No such file or
> directory
> ...........
> However there is a dir
> /home/batch/Envs/env3/lib/python2.4/site-packages/

> ( could it be that my python exe is in /usr/bin/python2.4, this is as
> I run multiple version of python )

lssitepackages isn't able to get the Python version number because of the syntax error, so it is building an invalid path.

Would you open a ticket so I don't don't forget to work on this? (http://bitbucket.org/dhellmann/virtualenvwrapper/issues?status=new&st...)

Thanks,
Doug


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.