Package: python-virtualenv Version: 15.0.3+ds-2 Severity: normal When attempting to create a new virtualenv, Pip crashes with an error:
=====
$ python2 -m pip --version
pip 8.1.2 from /usr/lib/python2.7/dist-packages (python 2.7)
$ python2 -m virtualenv --version
15.0.3
$ VENV="$(mktemp -d)"
$ python2 -m virtualenv "$VENV"
[…]
Installing collected packages: setuptools, pkg-resources, pip, wheel
Exception:
Traceback (most recent call last):
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/basecommand.py",
line 215, in main
status = self.run(options, args)
[…]
File "/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/wheel.py",
line 306, in clobber
', '.join(info_dir))
AssertionError: Multiple .dist-info directories:
/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info,
/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info
[…]
$ ls /tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info
ls: cannot access
'/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info':
No such file or directory
$ ls /tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info
ls: cannot access
'/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info':
No such file or directory
=====
As you can see, it complains about “multiple .dist-info directories”
that didn't exist before the command, and don't exist afterward.
(Full session output attached to this message.)
The behaviour is the same if I use ‘python3 -m virtualenv’.
-- System Information:
Debian Release: stretch/sid
APT prefers testing
APT policy: (500, 'testing')
Architecture: amd64 (x86_64)
Kernel: Linux 4.7.0-1-amd64 (SMP w/8 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
Init: systemd (via /run/systemd/system)
Versions of packages python-virtualenv depends on:
ii python 2.7.11-2
ii python-pip-whl 8.1.2-2
ii python-pkg-resources 28.0.0-1
Versions of packages python-virtualenv recommends:
ii virtualenv 15.0.3+ds-2
python-virtualenv suggests no packages.
-- no debconf information
--
\ “I doubt, therefore I might be.” —anonymous |
`\ |
_o__) |
Ben Finney <[email protected]>
Script started on Sat 08 Oct 2016 16:38:26 AEDT
$ python2 -m pip --version
pip 8.1.2 from /usr/lib/python2.7/dist-packages (python 2.7)
$ python2 -m virtualenv --version
15.0.3
$ VENV="$(mktemp -d)"
$ python2 -m virtualenv "$VENV"
Already using interpreter /usr/bin/python2
New python executable in /tmp/tmp.hMBSljwiON/bin/python2
Also creating executable in /tmp/tmp.hMBSljwiON/bin/python
Please make sure you remove any previous custom paths from your
/home/bignose/.pydistutils.cfg file.
Installing setuptools, pkg_resources, pip, wheel...
Complete output from command /tmp/tmp.hMBSljwiON/bin/python2 - setuptools
pkg_resources pip wheel:
Collecting setuptools
Using cached setuptools-28.3.0-py2.py3-none-any.whl
Collecting pkg_resources
Collecting pip
Collecting wheel
Using cached wheel-0.30.0a0-py2.py3-none-any.whl
Installing collected packages: setuptools, pkg-resources, pip, wheel
Exception:
Traceback (most recent call last):
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/basecommand.py",
line 215, in main
status = self.run(options, args)
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/commands/install.py",
line 335, in run
prefix=options.prefix_path,
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/req/req_set.py",
line 742, in install
**kwargs
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/req/req_install.py",
line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File
"/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/req/req_install.py",
line 1032, in move_wheel_files
isolated=self.isolated,
File "/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/wheel.py",
line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/usr/share/python-wheels/pip-8.1.2-py2.py3-none-any.whl/pip/wheel.py",
line 306, in clobber
', '.join(info_dir))
AssertionError: Multiple .dist-info directories:
/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info,
/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info
----------------------------------------
...Installing setuptools, pkg_resources, pip, wheel...done.
Traceback (most recent call last):
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 2374, in <module>
main()
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 722, in main
symlink=options.symlink)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 991, in
create_environment
download=download,
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 921, in
install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/usr/lib/python2.7/dist-packages/virtualenv.py", line 815, in
call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /tmp/tmp.hMBSljwiON/bin/python2 - setuptools pkg_resources pip
wheel failed with error code 2
$ ls /tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info
ls: cannot access
'/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-28.3.0.dist-info':
No such file or directory
$ ls /tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info
ls: cannot access
'/tmp/tmp.hMBSljwiON/lib/python2.7/site-packages/setuptools-25.1.6.dist-info':
No such file or directory
Script done on Sat 08 Oct 2016 16:39:49 AEDT
signature.asc
Description: PGP signature
_______________________________________________ Python-modules-team mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/python-modules-team

