Control: reassign -1 python3-pip
Control: retitle -1 python3-pip: Virtualenv creation fails: “AssertionError: 
Multiple .dist-info directories”

On 23-Mar-2016, Ben Finney wrote:
> A simple ‘tox’ configuration following the documentation is failing
> with an error:
> 
>     AssertionError: Multiple .dist-info directories

The same error occurs without using ‘tox’ at all, by attempting to
create a virtualenv. The error is raised from ‘pip’:

=====
$ virtualenv -p python3.5 /tmp/py35
Running virtualenv with interpreter /usr/bin/python3.5
Using base prefix '/usr'
New python executable in /tmp/py35/bin/python3.5
Also creating executable in /tmp/py35/bin/python
Please make sure you remove any previous custom paths from your 
/home/bignose/.pydistutils.cfg file.
Installing setuptools, pip...
  Complete output from command /tmp/py35/bin/python3.5 -c "import sys, pip; 
sys...d\"] + sys.argv[1:]))" setuptools pip:
  DEPRECATION: --no-install, --no-download, --build, and --no-clean are 
deprecated.  See https://github.com/pypa/pip/issues/906.
Ignoring indexes: https://pypi.python.org/simple/
Downloading/unpacking setuptools
Downloading/unpacking pip
Installing collected packages: setuptools, pip
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 295, in run
    requirement_set.install(install_options, global_options, 
root=options.root_path)
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", 
line 1436, in install
    requirement.install(install_options, global_options, *args, **kwargs)
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", 
line 672, in install
    self.move_wheel_files(self.source_dir, root=root)
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/req.py", 
line 902, in move_wheel_files
    pycompile=self.pycompile,
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/wheel.py", 
line 214, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/usr/share/python-wheels/pip-1.5.6-py2.py3-none-any.whl/pip/wheel.py", 
line 192, in clobber
    assert not info_dir, 'Multiple .dist-info directories'
AssertionError: Multiple .dist-info directories

Storing debug log for failure in /home/bignose/.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/py35/bin/python3.5 -c "import sys, pip; sys...d\"] + 
sys.argv[1:]))" setuptools pip failed with error code 2
=====

-- 
 \     “I hope that after I die, people will say of me: ‘That guy sure |
  `\                            owed me a lot of money’.” —Jack Handey |
_o__)                                                                  |
Ben Finney <b...@benfinney.id.au>

Attachment: signature.asc
Description: PGP signature

Reply via email to