[Python-modules-team] Bug#732463: python-virtualenv: virtualenv --system-site-packages fails on easy_install /usr/share/python-virtualenv/pip-1.1.debian1.tar.gz
Olivier Berger
olivier.berger at telecom-sudparis.eu
Wed Dec 18 10:00:36 UTC 2013
Package: python-virtualenv
Version: 1.7.1.2-2
Severity: normal
I've tried installing a virtualenv with --system-site-packages on wheezy, and got :
$ virtualenv -v --system-site-packages env
Creating env/lib/python2.7
Symlinking Python bootstrap modules
Symlinking env/lib/python2.7/lib-dynload
Symlinking env/lib/python2.7/os.py
Ignoring built-in bootstrap module: posix
Symlinking env/lib/python2.7/posixpath.py
Cannot import bootstrap module: nt
Symlinking env/lib/python2.7/ntpath.py
Symlinking env/lib/python2.7/genericpath.py
Symlinking env/lib/python2.7/fnmatch.py
Symlinking env/lib/python2.7/locale.py
Symlinking env/lib/python2.7/encodings
Symlinking env/lib/python2.7/codecs.py
Symlinking env/lib/python2.7/stat.py
Symlinking env/lib/python2.7/UserDict.py
Symlinking env/lib/python2.7/copy_reg.py
Symlinking env/lib/python2.7/types.py
Symlinking env/lib/python2.7/re.py
Symlinking env/lib/python2.7/sre.py
Symlinking env/lib/python2.7/sre_parse.py
Symlinking env/lib/python2.7/sre_constants.py
Symlinking env/lib/python2.7/sre_compile.py
Ignoring built-in bootstrap module: zlib
Symlinking env/lib/python2.7/warnings.py
Symlinking env/lib/python2.7/linecache.py
Symlinking env/lib/python2.7/_abcoll.py
Symlinking env/lib/python2.7/abc.py
Symlinking env/lib/python2.7/_weakrefset.py
Creating env/lib/python2.7/site-packages
Writing env/lib/python2.7/site.py
Writing env/lib/python2.7/orig-prefix.txt
Creating env/bin
New python executable in env/bin/python
Changed mode of env/bin/python to 0755
Testing executable with env/bin/python -c "
import sys
prefix = sys.prefix
if sys.version_info[0] == 3:
prefix = prefix.encode('utf8')
if hasattr(sys.stdout, 'detach'):
sys.stdout = sys.stdout.detach()
elif hasattr(sys.stdout, 'buffer'):
sys.stdout = sys.stdout.buffer
sys.stdout.write(prefix)
"
Got sys.prefix result: u'/home/olivier/lambdageo/env'
Creating env/lib/python2.7/distutils
Writing env/lib/python2.7/distutils/__init__.py
Writing env/lib/python2.7/distutils/distutils.cfg
Using existing distribute egg: /usr/share/python-virtualenv/distribute-0.6.24.tar.gz
Installing distribute.................................done.
Installing existing pip-1.1.debian1.tar.gz distribution: /usr/share/python-virtualenv/pip-1.1.debian1.tar.gz
Installing pip...
Error [Errno 2] No such file or directory while executing command /home/olivier/lambdageo/env/bin/easy_install /usr/share/python-vi...p-1.1.debian1.tar.gz
...Installing pip...done.
Traceback (most recent call last):
File "/usr/bin/virtualenv", line 3, in <module>
virtualenv.main()
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 938, in main
never_download=options.never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 1054, in create_environment
install_pip(py_executable, search_dirs=search_dirs, never_download=never_download)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 643, in install_pip
filter_stdout=_filter_setup)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 976, in call_subprocess
cwd=cwd, env=env)
File "/usr/lib/python2.7/subprocess.py", line 709, in __init__
errread, errwrite)
File "/usr/lib/python2.7/subprocess.py", line 1306, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory
Apparently, there's no bin/easy_install in the venv :-/
Thanks in advance.
Best regards,
More information about the Python-modules-team
mailing list