Package: python-distlib Version: 0.2.0-1 Severity: normal Hi.
After upgrading python-distlib to 0.2.0-1 (from 0.1.9-1), I am now unable to create virtual environments with virtualenv. More generally, these failures with virtualenv are breaking tests with tox (which uses virtualenvs as one of its steps). One example: ,----[ virtualenv --verbose foo ] | Running virtualenv with interpreter /usr/bin/python2 | Creating foo/lib/python2.7 | Symlinking Python bootstrap modules | Symlinking foo/lib/python2.7/lib-dynload | Symlinking foo/lib/python2.7/os.py | Ignoring built-in bootstrap module: posix | Symlinking foo/lib/python2.7/posixpath.py | Cannot import bootstrap module: nt | Symlinking foo/lib/python2.7/ntpath.py | Symlinking foo/lib/python2.7/genericpath.py | Symlinking foo/lib/python2.7/fnmatch.py | Symlinking foo/lib/python2.7/locale.py | Symlinking foo/lib/python2.7/encodings | Symlinking foo/lib/python2.7/codecs.py | Symlinking foo/lib/python2.7/stat.py | Symlinking foo/lib/python2.7/UserDict.py | Symlinking foo/lib/python2.7/copy_reg.py | Symlinking foo/lib/python2.7/types.py | Symlinking foo/lib/python2.7/re.py | Symlinking foo/lib/python2.7/sre.py | Symlinking foo/lib/python2.7/sre_parse.py | Symlinking foo/lib/python2.7/sre_constants.py | Symlinking foo/lib/python2.7/sre_compile.py | Ignoring built-in bootstrap module: zlib | Symlinking foo/lib/python2.7/warnings.py | Symlinking foo/lib/python2.7/linecache.py | Symlinking foo/lib/python2.7/_abcoll.py | Symlinking foo/lib/python2.7/abc.py | Symlinking foo/lib/python2.7/_weakrefset.py | Creating foo/lib/python2.7/site-packages | Writing foo/lib/python2.7/site.py | Writing foo/lib/python2.7/orig-prefix.txt | Writing foo/lib/python2.7/no-global-site-packages.txt | Creating parent directories for foo/include | Symlinking foo/include/python2.7 | Creating foo/bin | New python executable in foo/bin/python2 | Changed mode of foo/bin/python2 to 0755 | Also creating executable in foo/bin/python | Changed mode of foo/bin/python to 0755 | Testing executable with foo/bin/python2 -c "import sys;out=sys.stdout;getattr(out, "buffer", out).write(sys.prefix.encode("utf-8"))" | Got sys.prefix result: u'/tmp/foo' | Symlinking foo/local/lib | Symlinking foo/local/bin | Symlinking foo/local/include | Creating foo/lib/python2.7/distutils | Writing foo/lib/python2.7/distutils/__init__.py | Writing foo/lib/python2.7/distutils/distutils.cfg | Installing setuptools, pip... | Ignoring indexes: https://pypi.python.org/simple/ | Downloading/unpacking setuptools | Cleaning up... | Exception: | Traceback (most recent call last): | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/basecommand.py", line 122, in main | status = self.run(options, args) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/commands/install.py", line 290, in run | requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", line 1178, in prepare_files | url = finder.find_requirement(req_to_install, upgrade=self.upgrade) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/index.py", line 292, in find_requirement | elif is_prerelease(version) and not (self.allow_all_prereleases or req.prereleases): | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/util.py", line 739, in is_prerelease | return any([any([y in set(["a", "b", "c", "rc", "dev"]) for y in x]) for x in parsed]) | TypeError: 'int' object is not iterable | | Storing debug log for failure in /home/rbrito/.pip/pip.log | Complete output from command /tmp/foo/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip: | Ignoring indexes: https://pypi.python.org/simple/ | Downloading/unpacking setuptools | Cleaning up... | Exception: | Traceback (most recent call last): | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/basecommand.py", line 122, in main | status = self.run(options, args) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/commands/install.py", line 290, in run | requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", line 1178, in prepare_files | url = finder.find_requirement(req_to_install, upgrade=self.upgrade) | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/index.py", line 292, in find_requirement | elif is_prerelease(version) and not (self.allow_all_prereleases or req.prereleases): | File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/util.py", line 739, in is_prerelease | return any([any([y in set(["a", "b", "c", "rc", "dev"]) for y in x]) for x in parsed]) | TypeError: 'int' object is not iterable | | Storing debug log for failure in /home/rbrito/.pip/pip.log | ---------------------------------------- | ...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/foo/bin/python2 -c "import sys, pip; sys...d\"] + sys.argv[1:]))" setuptools pip failed with error code 2 `---- Downgrading python-distlib and python-distlib-whl back to 0.1.9-1 fixes the problems that I see. Given that unrelated packages are broken, I think that this bug should have an RC severity. OTOH, I am not really sure which package is the *real* culprit here (if distlib or if the other packages), which is why I am not setting the severity to be higher than normal. Feel free to reassign this bug to other packages and/or set its severity as appropriate. Also, if more information is needed, please let me know, but the bug should be easily reproducible, I think. Thanks, Rogério Brito. -- System Information: Debian Release: stretch/sid APT prefers unstable APT policy: (500, 'unstable'), (500, 'testing'), (250, 'experimental') Architecture: amd64 (x86_64) Foreign Architectures: i386 Kernel: Linux 4.0.0-1-amd64 (SMP w/4 CPU cores) Locale: LANG=en_US.utf-8, LC_CTYPE=pt_BR.utf-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Init: systemd (via /run/systemd/system) Versions of packages python-distlib depends on: pn python:any <none> python-distlib recommends no packages. python-distlib suggests no packages. -- no debconf information -- Rogério Brito : rbrito@{ime.usp.br,gmail.com} : GPG key 4096R/BCFCAAAA http://cynic.cc/blog/ : github.com/rbrito : profiles.google.com/rbrito DebianQA: http://qa.debian.org/developer.php?login=rbrito%40ime.usp.br -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org