[BUG] latest setuptools release (60.3.0) broke pip?
See original GitHub issuesetuptools version
60.3.0
Python version
Python 3.10 (but also reproduces with other versions)
OS
macOS (but also reproduces in GitHub Actions CI using ubuntu-latest)
Additional environment information
No response
Description
The new version of setuptools that was just released seems to have broken pip? After upgrading to latest setuptools, running pip commands is now failing with an AttributeError.
Expected behavior
Pip continues to work after installing the latest release of setuptools, rather than raising AttributeError.
How to Reproduce
Install the latest release of setuptools (60.3.0), and then run a pip command like pip list
.
Output
jab@tsmbp /tmp> python3 -m virtualenv /tmp/venv
created virtual environment CPython3.10.1.final.0-64 in 269ms
creator CPython3Posix(dest=/private/tmp/venv, clear=False, no_vcs_ignore=False, global=False)
seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=/Users/jab/Library/Application Support/virtualenv)
added seed packages: pip==21.3.1, setuptools==59.5.0, wheel==0.36.2
activators BashActivator,CShellActivator,FishActivator,NushellActivator,PowerShellActivator,PythonActivator
jab@tsmbp /tmp> . /tmp/venv/bin/activate.fish
(venv) jab@tsmbp /tmp> python -m pip list
Package Version
---------- -------
pip 21.3.1
setuptools 59.5.0
wheel 0.36.2
(venv) jab@tsmbp /tmp> python -m pip install -U setuptools
Requirement already satisfied: setuptools in ./venv/lib/python3.10/site-packages (59.5.0)
Collecting setuptools
Using cached setuptools-60.3.0-py3-none-any.whl (953 kB)
Installing collected packages: setuptools
Attempting uninstall: setuptools
Found existing installation: setuptools 59.5.0
Uninstalling setuptools-59.5.0:
Successfully uninstalled setuptools-59.5.0
Successfully installed setuptools-60.3.0
(venv) jab@tsmbp /tmp> python -m pip list
/private/tmp/venv/bin/python: Error while finding module specification for 'pip' (AttributeError: module '__main__' has no attribute '__file__')
Code of Conduct
- I agree to follow the PSF Code of Conduct
Issue Analytics
- State:
- Created 2 years ago
- Reactions:24
- Comments:26 (9 by maintainers)
Top Results From Across the Web
History - setuptools 65.6.3.post20221216 documentation
#2953: Fixed a bug that easy install incorrectly parsed Python 3.10 version string. #3006: Fixed startup performance issue of Python interpreter due to...
Read more >setuptools 9.0.1 - PyPI
Easily download, build, install, upgrade, and uninstall Python packages.
Read more >Google app engine deployment fails- Error while finding ...
The release 60.3.0 of setuptools has a bug causing the above AttributeError, see : https://github.com/pypa/setuptools/issues/3002.
Read more >Unable to install python3-pip on Debian 8
sudo apt-get install python-setuptools The following packages have unmet dependencies: python3-setuptools : Depends: python3-pkg-resources (= ...
Read more >Full Text Bug Listing - Red Hat Bugzilla
0 You are using pip version 9.0.3, however version 21.2.4 is available. You should consider upgrading via the 'pip install --upgrade pip' command....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Yanked 60.3.0.
Setuptools 60.3.1 is going out now.
I chose not to release it last night because I wanted to be alert and around when it’s released, just in case there are other high-impact issues associated.