Warnings for skipped <pkg>.dist-info
are unclear when METADATA
file is missing
#12446
Open
1 task done
Labels
C: error messages
Improving error messages
good first issue
A good item for first time contributors to work on
type: enhancement
Improvements to functionality
Description
When you uninstall a package with extra files (as described in #12445) you can end up in a bad state where
pip
warns due to the existence of an invaliddist-info
directory e.g.However, this warning is shown in cases where there is no METADATA file at all and it's not clear how to resolve this as a user.
Expected behavior
Instead of suggesting that the metadata has an invalid 'name', the warning should suggest that the dist-info is invalid
Perhaps there's even a better user experience to be had here? Curious to hear others' thoughts.
pip version
23.3.2
Python version
3.11.4
OS
macOS
How to Reproduce
Here, we construct a bad dist-info entry manually though a user can get in this state accidentally without editing
site-packages
.Output
Code of Conduct
The text was updated successfully, but these errors were encountered: