-
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
Impossible to unistall invalid package (with wrong entry point name) #8461
Comments
pip can catch the exception, but then it will be unable to remove any entry points from that point on. I think this should be reported and fixed in pypa/setuptools instead. |
@uranusjr but if the name is invalid, what should setuptools be doing instead of raising an error ? |
Maybe ignore the section? That would be the approach that makes sense for pip, but setuptools devs may have other considerations. |
Also, how did the invalid section end up in there in the first place? Did pip install it? We should fix that if that’s the case. |
Yes, the corrupted package was installed by
It install the package correctly (import seems to work), but the install crashed with a very similar error when installing the entry points. |
Is it not possible to just delete the To solve the issue, I just manually edited |
Entry points are also used to generate |
But if |
It sounds like Poetry was used to install the entry points, so I'd file an issue with that project that it's allowing installation of entry points in violation of the declared syntax. |
In the associated Setuptools ticket, I've also advised that |
That's a broader task that's a WIP right now (#7413) |
Environment
Description
I was experimenting with entry_points and released a test pip package with an invalid "entry-point" name:
epot-test
:The
pip install
failed but pip is now in a bad state. Now it is impossible for me to uninstall the corrupted package.Expected behavior
I would expect to be able to uninstall invalid packages.
How to Reproduce
Output
The text was updated successfully, but these errors were encountered: