-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cryptic error when a dependency's PKG_INFO/METADATA is missing #5082
Comments
@cytolentino Hi! Could you take a look at this issue? There should probably be a conditional somewhere, that prevents us from passing |
Hi @pradyunsg! I've just had a look at this and it seems like someone else has already fixed this (see here). That said, I've added in a regression test for this case to confirm that it's fixed over here: PR #6003 :) |
Marking this as a bug because pip shouldn't necessarily be crashing here (at least sometimes I don't think). |
I posted a fix for this (PR #6542). However, I only addressed the "enhancement" aspect (better error message) because in working on the patch I found that it should probably continue to error out (at least for now). If there are other |
Description:
Pip crashes with a cryptic error when it doesn't find a dependency's package metadata.
What I've run:
A certain dependency was installed using
conda
and was lacking aPKG-INFO
file in the egg-info. When installing the desired package, pip fails right after processing the dependency with this error traceback:On inspecting
pip/utils/packaging.py
:get_metadata
is returning None when it doesn't find anything, which causesfeed_parser
to crash.The text was updated successfully, but these errors were encountered: