[Python-modules-team] Bug#655584: python-virtualenv: Created virtualenvs don't search for packages in /usr/lib/pymodules
Andreas Kloeckner
inform at tiker.net
Thu Jan 12 14:53:20 UTC 2012
Package: python-virtualenv
Version: 1.7-1
Severity: important
Dear Maintainer,
Consider the following situation:
$ which python andreas at ding 9:47
/usr/bin/python
$ python andreas at 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 at ding 9:47
New python executable in env/bin/python
Installing distribute.............................................................................................................................................................................................done.
Installing pip...............done.
~/src source env/bin/activate andreas at ding 9:47
(env)~/src which python andreas at ding 9:47
/home/andreas/research/software/env/bin/python
$ python andreas at 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
More information about the Python-modules-team
mailing list