Your message dated Thu, 12 Jan 2012 12:33:35 -0500
with message-id <[email protected]>
and subject line Re: [Python-modules-team] Bug#655584: python-virtualenv: 
Created virtualenvs don't search for packages in /usr/lib/pymodules
has caused the Debian Bug report #655584,
regarding python-virtualenv: Created virtualenvs don't search for packages in 
/usr/lib/pymodules
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
655584: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=655584
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: python-virtualenv
Version: 1.7-1
Severity: important

Dear Maintainer,

Consider the following situation:

$ which python                                                                  
                                                                                
            andreas@ding 9:47
/usr/bin/python
$ python                                                                        
                                                                                
            andreas@ding 9:47
Python 2.7.2+ (default, Nov 30 2011, 19:22:03) 
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
>>> 

$ virtualenv env                                                                
                                                                                
            andreas@ding 9:47
New python executable in env/bin/python
Installing 
distribute.............................................................................................................................................................................................done.
Installing pip...............done.
~/src source env/bin/activate                                                   
                                                                                
                andreas@ding 9:47
(env)~/src which python                                                         
                                                                                
                andreas@ding 9:47
/home/andreas/research/software/env/bin/python

$ python                                                                        
                                                                                
       andreas@ding 9:47
Python 2.7.2+ (default, Nov 30 2011, 19:22:03) 
[GCC 4.6.2] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import numpy
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy

I would have expected the created virtualenv to find numpy, but it
doesn't. I've traced this back to /usr/lib/pymodules not being part of
sys.path in the created virtualenv:

>>> import sys; print [x for x in sys.path if 'pymodules' in x]
[]

Thanks,
Andreas

-- System Information:
Debian Release: wheezy/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 
'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 3.1.0-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=de_DE.utf8, LC_CTYPE=de_DE.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages python-virtualenv depends on:
ii  python                2.7.2-9
ii  python-pkg-resources  0.6.24-1
ii  python-setuptools     0.6.24-1
ii  python2.6             2.6.7-4
ii  python2.7             2.7.2-8

Versions of packages python-virtualenv recommends:
ii  python-pip  1.0-1

python-virtualenv suggests no packages.

-- no debconf information



--- End Message ---
--- Begin Message ---
On Thu, 12 Jan 2012 18:19:53 +0200, Stefano Rivera <[email protected]> wrote:
> Hi Andreas (2012.01.12_16:53:20_+0200)
> > I would have expected the created virtualenv to find numpy, but it
> > doesn't. I've traced this back to /usr/lib/pymodules not being part of
> > sys.path in the created virtualenv
> 
> This is expected, virtualenv changed the default:
> | * Made --no-site-packages behavior the default behavior. The
> |   --no-site-packages flag is still permitted, but displays a warning
> |   when used. Thanks Chris McDonough.

Link to virtualenv discussion of this change:

http://groups.google.com/group/python-virtualenv/browse_thread/thread/57e11efac3743149

Thanks,
Andreas

Attachment: pgptqJMMVwGI8.pgp
Description: PGP signature


--- End Message ---
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

Reply via email to