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
_______________________________________________
Python-modules-team mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team