-
Notifications
You must be signed in to change notification settings - Fork 3.1k
FileNotFoundError: [Errno 2] No such file or directory: '/home/user/anaconda3/lib/python3.6/site-packages/psutil-5.4.8.dist-info/METADATA' #6251
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
/cc @zooba |
@jwfu Before you moved the inner (nested) |
@cjerdonek The dir was empty. |
@jwfu I was asking what the contents of the parent folder ( |
@cjerdonek Sorry, concretely:
|
Yeah, this is part of the bug I fixed. |
@zooba So are you saying this is happening only because the directory structure was left over from before? Is there anything further that pip can or should be doing here to improve things more, or can this be closed? |
pip could also handle more errors from pkg_resources when trying to find distributions (or encourage pkg_resources to convert I started adding the extra handling to one of my PRs and was told to take it out, but haven't gone back to it. Personally I see this as a boundary, which means handling all errors and continuing safely is okay (as an exception doesn't indicate corrupt state in pip itself - just like OSError is generally safely continuable but an internal TypeError is not). However, I know not everyone has that POV :) |
Okay, thanks. I did file pypa/setuptools#1664. It was just to include more information in the error though, rather than asking for a specific type that pip can handle.
If it was me that asked you to take it out (if I remember what you're referring to) :) , it was more to limit the scope of the PR to one thing. Re: the other point, generally speaking, my own view is for pip not to try to be too "smart" by trying to fix errors. (pip already struggles simply to do what it needs to do correctly.) However, I am really in favor of providing more useful info so that exceptions can become a lot easier to diagnose, which will make it easier for people to fix issues on their own, file bug reports to pip, or file bug reports to the proper upstream. |
@cjerdonek I updated your comment to refer to the correct repository. :) |
@cjerdonek Could you give this an appropriate "type" label? |
@pradyunsg I'm marking this "needs triage" for now. I think there's something we can be doing to make a better user experience in the case of a bad |
I solved the problem in this way.
|
@yuvirl the |
I solved my problem in this way: Now pip works fine but I had to reinstall all my packages. |
conda install rsa |
We haven't received new reports around this in a while; as far as I can see so I'll close this out on the basis that the source of this issue has been fixed. My best guess right now is that this was weird interaction between Conda <-> pip; from Conda's end and it's been resolved now. |
Uh oh!
There was an error while loading. Please reload this page.
Environment
Description
When running Jupyter Notebook, following error prevented kernel starting:
Based on this, I tried to
pip install -U jupyter_console
. This failed, givingUpon further investigation, the reason for this is that there was as subfolder created with another
psutil-5.4.8.dist-info
created. Thus, by moving the files out of this nested subfolder, everything worked again.KO:
/home/user/anaconda3/lib/python3.6/site-packages/psutil-5.4.8.dist-info/psutil-5.4.8.dist-info/METADATA
OK:
/home/user/anaconda3/lib/python3.6/site-packages/psutil-5.4.8.dist-info/METADATA
I wasn't manually doing anything in these package folders; any idea what automatic process (suspect
pip
-related) could have caused this?Expected behavior
Directory structure should be
/home/user/anaconda3/lib/python3.6/site-packages/psutil-5.4.8.dist-info/METADATA
How to Reproduce
pip install -U jupyter_console
Output
The text was updated successfully, but these errors were encountered: