[Python-modules-team] Bug#755106: virtualenv: Python virtualenv will not create virtualenv from locally compiled python

Jacek Bzdak jacekfoo at gmail.com
Thu Jul 17 19:51:20 UTC 2014


Package: virtualenv
Version: 1.11.6-2
Severity: important

Dear Maintainer,

Virtualenv does not work for manually compiled pythons.

To reproduce:

1. Download python source (may be latest version; tested for 2.7.8)
2. Compile, make and install locally
3. Try to create virtualenv


Error:
virtualenv /tmp/test  -p /tmp/python/bin/python

Running virtualenv with interpreter /tmp/python/bin/python
New python executable in /tmp/test/bin/python
Installing setuptools, pip...
  Complete output from command /tmp/test/bin/python -c "import sys, pip;
sys...d\"] + sys.argv[1:]))" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-
any.whl/pip/__init__.py", line 61, in <module>
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-
any.whl/pip/vcs/mercurial.py", line 9, in <module>
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-
any.whl/pip/download.py", line 22, in <module>
  File "/tmp/test/lib/python-wheels/requests-2.3.0-py2.py3-none-
any.whl/requests/__init__.py", line 58, in <module>
  File "/tmp/test/lib/python-wheels/requests-2.3.0-py2.py3-none-
any.whl/requests/utils.py", line 25, in <module>
  File "/tmp/test/lib/python-wheels/requests-2.3.0-py2.py3-none-
any.whl/requests/compat.py", line 92, in <module>
  File "/tmp/test/lib/python-wheels/urllib3-1.8.3-py2.py3-none-
any.whl/urllib3/__init__.py", line 16, in <module>
  File "/tmp/test/lib/python-wheels/urllib3-1.8.3-py2.py3-none-
any.whl/urllib3/connectionpool.py", line 33, in <module>
ImportError: cannot import name CertificateError
----------------------------------------
....Installing setuptools, pip...done.
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 2378, in <module>
    main()
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 830, in main
    symlink=options.symlink)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 1032, in
create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 975, in
install_wheel
    'PIP_NO_INDEX': '1'
  File "/usr/lib/python3/dist-packages/virtualenv.py", line 917, in
call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /tmp/test/bin/python -c "import sys, pip; sys...d\"] +
sys.argv[1:]))" setuptools pip failed with error code 1



Compilation output:

Actually not all python modules build succesfully, but all revelant to pip
(ssl) were compiled.

Python build finished, but the necessary bits to build these modules were not
found:
_bsddb             _curses            _curses_panel
bsddb185           dbm                dl
gdbm               imageop            sunaudiodev



-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

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

Versions of packages virtualenv depends on:
ii  python3             3.4.1-1
ii  python3-virtualenv  1.11.6-2

virtualenv recommends no packages.

virtualenv suggests no packages.

-- no debconf information



More information about the Python-modules-team mailing list