Project

General

Profile

Actions

Bug #6365

closed

SLES 11 SP1 requires an older version of Python virtualenv

Added by Matthieu CERDA about 9 years ago. Updated about 9 years ago.

Status:
Released
Priority:
1
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
Name check:
Fix check:
Regression:

Description

If you use a not adequate version (too recent), you get:

Overwriting blah/lib64/python2.6/site.py with new content
New python executable in blah/bin/python
Installing setuptools, pip...
  Complete output from command /root/blah/bin/python -c "import sys, pip; pip...ll\"] + sys.argv[1:])" setuptools pip:
  Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/__init__.py", line 11, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/vcs/subversion.py", line 4, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/index.py", line 18, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/_vendor/html5lib/__init__.py", line 16, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/_vendor/html5lib/html5parser.py", line 7, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/_vendor/html5lib/tokenizer.py", line 21, in <module>
  File "/root/virtualenv-1.11/virtualenv_support/pip-1.5-py2.py3-none-any.whl/pip/_vendor/html5lib/trie/py.py", line 12, in __init__
TypeError: All keys must be strings
----------------------------------------
...Installing setuptools, pip...done.
Traceback (most recent call last):
  File "virtualenv-1.11/virtualenv.py", line 2334, in <module>
    main()
  File "virtualenv-1.11/virtualenv.py", line 820, in main
    symlink=options.symlink)
  File "virtualenv-1.11/virtualenv.py", line 988, in create_environment
    install_wheel(to_install, py_executable, search_dirs)
  File "virtualenv-1.11/virtualenv.py", line 956, in install_wheel
    'PIP_NO_INDEX': '1'
  File "virtualenv-1.11/virtualenv.py", line 898, in call_subprocess
    % (cmd_desc, proc.returncode))
OSError: Command /root/blah/bin/python -c "import sys, pip; pip...ll\"] + sys.argv[1:])" setuptools pip failed with error code 1

The last version compatible with SLES and operationnal is 1.10.1.

We should add an exception to ncf-api-virtualenv to use this version on SLES builds.

Actions

Also available in: Atom PDF