-
Notifications
You must be signed in to change notification settings - Fork 3.1k
AssertionError: Multiple .dist-info directories #1964
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
can you check for a global build dir? |
I had this issue, too. I looked for global build dirs and deleted them. I also had to delete an existing build directory under ~/.pip/build After that the error disappeared. |
Another possible directory pattern is like |
I was able to solve the problem by using sudo. Here is what helped me but for installing django==1.6.5. http://stackoverflow.com/questions/20905350/latest-pip-fails-with-requires-setuptools-0-8-for-dist-info |
This continues as a problem. As requested in the original report, please improve the error message to provide enough information (i.e. which are the “multiple” directories?) to allow the person seeing the message to address the problem. |
Can someone who is encountering the issue check if the following provides suitable information? Change the assert line noted in the exception traceback to say: assert not info_dir, 'Multiple .dist-info directories: ' + destsubdir + ', ' + ', '.join(info_dir) If you can confirm that the additional information is useful in fixing the issue, I'll make a PR adding that. (I've never seen the issue myself, so I can't reproduce it, or confirm whether the information the above change would provide is sufficient to help resolve the problem). |
I found the information helpful on my mac, where the problem build directory is in a tempdir with a long hash for a name. Difficult to find otherwise. |
I hope the error message will get better! I was absolutely clueless on where should I look for. It took me a while to clean all the mess and find what to delete. |
The change should be in the next release of pip (whenever that gets released). |
This continues to occur.
As you can see, in Pip version 8.1.2, it complains about “multiple .dist-info directories” that didn't exist before the command, and don't exist afterward. Full session output for the above demonstration. |
This continues, with pip 9.0.1. |
On Wed, 2017-01-18 16:08 -0800, matsaman ***@***.***> wrote:
This continues, with pip 9.0.1.
At this stage I think the PyPA developers are having trouble coming up
with test cases to reproduce this. Can you give some detail on what to
do, in a fresh environment, to create this behaviour?
…--
\
`\
_o__) Ben Finney <[email protected]>
|
Some macOS-related nonsense would not surprise me at all, but that is occasionally the environment one is stuck with. |
No such luck—just tested on GNU/Linux & got the same problem. |
Interestingly, pointing pip install to the 0.12.0 tarball at https://pypi.python.org/pypi/django-bitly works without issue. That is: this fails...
...but this does not fail...
|
Well, if you open the |
The error is very confusing and doesn't include any hint on which is the real problem, which are the "multiple" ones, these are not listed even in the pip.log
http://pastebin.com/fqz89aUM
The text was updated successfully, but these errors were encountered: