-
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
Diagnostic error when processing package already installed with invalid requirement #12953
base: main
Are you sure you want to change the base?
Diagnostic error when processing package already installed with invalid requirement #12953
Conversation
32aca48
to
968a190
Compare
I've improved the message to make it a little bit more accurate (not always about uninstallation) and more actionable (gives the location it is installed). Ready for review/merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
I like the revised wording of the error message (since the exception can occur even when not uninstalling).
Could you update the PR description (and also the example in #12950 (comment)) to use the new wording (that's broader than just uninstall)? |
Done |
Can this be merged? It would be great to get it into 24.3. |
One moment, I'm going to update this PR to also handle the exception in #12979, it's the same issue type (invalid installed package), but the exception is happening in a different location because it's slightly different (invalid version instead of invalid requirement). |
820b09f
to
22cc32d
Compare
Fixes #12950
Fixes #12979
Creates a new exception message which gives the user a much clearer output:
Looking for feedback as I've never created a pip exception before and not sure how this would be tested.