[Python-modules-team] Bug#754248: python-virtualenv: Error when attempting to create a python2.6 virtualenv
Renat Sabitov
r.sabitov at gmail.com
Wed Aug 6 12:27:47 UTC 2014
Dear Maintainer,
I tried to replace {} with % operator and now I'm having following errors:
New python executable in py26/bin/python2.6
Also creating executable in py26/bin/python
Installing setuptools, pip...
Complete output from command /home/rsabitov/work/...x/py26/bin/python2.6
-c "import sys, pip; sys...d\"] + sys.argv[1:]))" s
etuptools 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
"/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/
__init__.py", line 58, in <module>
File
"/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/
utils.py", line 25, in <module>
File
"/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/requests-2.3.0-py2.py3-none-any.whl/requests/
compat.py", line 92, in <module>
File
"/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/urllib3-1.8.3-py2.py3-none-any.whl/urllib3/__
init__.py", line 16, in <module>
File
"/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/lib/python-wheels/urllib3-1.8.3-py2.py3-none-any.whl/urllib3/co
nnectionpool.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 /home/rsabitov/work/...x/py26/bin/python2.6 -c "import
sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error
code 1
Running virtualenv with interpreter /usr/bin/python2.6
ERROR: InvocationError: /usr/bin/python3 -mvirtualenv --setuptools --python
/usr/bin/python2.6 py26 (see
/home/rsabitov/work/phoenix/ums/tests/system/.tox/py26/log/py26-0.log)
The problem is that virtualenv install wheels from python3 and among them a
recent version of urllib3. It in turn requires
a recent ssl package with CertificateError. python2.6-minimal package has
an old version without required class.
-- System Information:
Debian Release: jessie/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 3.14-1-amd64 (SMP w/2 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) (ignored:
LC_ALL set to en_AU.UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages python3-virtualenv depends on:
ii python-pip-whl 1.5.6-2
ii python-setuptools-whl 5.4.1-1
ii python3 3.4.1-1
ii python3-pkg-resources 5.4.1-1
pn python3:any <none>
python3-virtualenv recommends no packages.
python3-virtualenv suggests no packages.
-- no debconf information
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/python-modules-team/attachments/20140806/eca880fd/attachment.html>
More information about the Python-modules-team
mailing list