Skip to content
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

Remove support for installed .egg distributions when using the importlib.metadata backend #12330

Open
sbidoul opened this issue Oct 8, 2023 · 30 comments
Labels
type: deprecation Related to deprecation / removal.
Milestone

Comments

@sbidoul
Copy link
Member

sbidoul commented Oct 8, 2023

pip has dropped support for installing .egg distributions when it stopped invoking setup.py install.
At some point pip will abandon support for detecting and uninstalling legacy .egg distributions too.

If you reach this issue from the pip deprecation message, it is likely that your Python environment has distributions that have been installed with setup.py install, easy_install, or an older pip version.

The recommended action is to uninstall the distribution and reinstall it with a recent pip.

@sbidoul
Copy link
Member Author

sbidoul commented Nov 27, 2023

@hanivianka have you tried the recommended action mentioned in the top post of this page?

@tahayparker
Copy link

@sbidoul has pip 24.3 been released? im tired of seeing the bright message pop up on an otherwise dark screen

@sbidoul
Copy link
Member Author

sbidoul commented Dec 3, 2023

@tahayparker 24.3 is planned for October 2024.

It is important that affected users resolve the warning by applying the recommendation in the first post of this page.

@loong2004
Copy link

Hello sir, could you please do me a favor? the picture below is the content of my file
image
I ran "python setup.py install", but after that there is something wrong. You can see it below:
image
What should I do? I would appreciate it for your kindness. Thank you anyway.

@anthobio23
Copy link

anthobio23 commented Dec 18, 2023

The problem is based on PIP updating. update to 23.3.2, rebuild the build.

first, delete the build and the dist plus the .egg.info folder.
rm -rf build dist *.egg.info

build build:

python3 -m pip install --upgrade build
python3 -m build

then, the twine:

python3 -m pip install --upgrade twine
python3 -m twine upload dist/*

view document here: Packaging Python Projects

@PauloBoaventura
Copy link

any solution found? is it possible to use a previous version? so that it works... How can an update be inserted which compromises the development...

@pfmoore
Copy link
Member

pfmoore commented Sep 20, 2024

@PauloBoaventura From the original post:

The recommended action is to uninstall the distribution and reinstall it with a recent pip.

Technologicat added a commit to Technologicat/unpythonic that referenced this issue Sep 27, 2024
Technologicat added a commit to Technologicat/mcpyrate that referenced this issue Sep 27, 2024
sbidoul added a commit to sbidoul/pip that referenced this issue Oct 13, 2024
@sbidoul sbidoul modified the milestones: 24.3, 25.1 Oct 13, 2024
sbidoul added a commit that referenced this issue Oct 20, 2024
@sbidoul sbidoul changed the title Remove support for installed .egg distributions Remove support for installed .egg distributions when using the importlib.metadata backend Oct 21, 2024
@sbidoul sbidoul changed the title Remove support for installed .egg distributions when using the importlib.metadata backend Remove support for installed .egg distributions when using the importlib.metadata backend Oct 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: deprecation Related to deprecation / removal.
Projects
None yet
Development

No branches or pull requests