-
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
meaning of "DEPRECATION: Loading egg at .. is deprecated"? #12297
Comments
It’s literally that, loading a file in the |
Is there any chance of converting an existing |
Just reinstalling should work. You might need to add the |
The thing is, these packages were rather difficult to get build, and IIRC at least one of them was not installable using pip by then. Does this simply mean they are not usable anymore unless upstream projects update to a PEP 517 compatible setup? |
It might be possible to convert the
If the project simply won't build under |
Thanks for the informative answer. However, I imagine already installed egg-based modules would still be importable in python, only pip would not be able to manage (e.g. uninstall) them anymore - is that correct? BTW, may I ask what is the matter with |
More or less, yes. But the consequences could be significant - pip won't recognise that the package is installed, so if you try to install something else that depends on it, pip could think it's not present and want to reinstall it. Essentially, "things might break" if you use pip in that environment, and we don't support it so we can't really tell you what to do if that happens.
Nothing, as such. It's not standardised data, it's setuptools-specific, so I have no idea whether it should be in a sdist or not. The significant aspect of Unlike (Just to be clear here, all of the |
Ah yes, the changelog actually tells that |
Hmm, this should be technically possible, especially for simple packages (either pure Python or straightforward extension modules without weird dylib loading). Setuptools has all the logic packaging an egg and egg-info so it should have enough information to convert between the two; pip can deal with that egg-info directly, and even converting (setuptools’s) egg-info to the standard dist-info format is quite straightforward. This may be too much to include in pip (we’ll need to pull in too much of setuptools), but it may be very worthwhile to propose this to setuptools. |
Can anyone TL;DR how to fix this deprecation warning? I have the same error as OP. |
@luckman212 please see #12330 |
Description
Why is
/usr/local/Cellar/gpgme/1.22.0/lib/python3.11/site-packages/gpg-1.22.0-py3.11-macosx-11-x86_64.egg
deprecated and is there anything I can do?Expected behavior
Give a reason for the deprecation?
pip version
23.2.1
Python version
3.11
OS
MacOS 11.7.10
How to Reproduce
Output
Most pip3 commands include the following warning.
/usr/local/bin/pip3 -> ../Cellar/python@3.11/3.11.5/bin/pip3
Code of Conduct
The text was updated successfully, but these errors were encountered: