-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Closed
Labels
type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior
Milestone
Description
Description
With setup tools 36.0.1:
running:
python3 -m pip install -U pip
python3 -m pip install -U poetry==1.1.13
gets:
14:16:36 ERROR: Exception:
14:16:36 Traceback (most recent call last):
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/cli/base_command.py", line 167, in exc_logging_wrapper
14:16:36 status = run_func(*args)
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
14:16:36 return func(self, options, args)
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/commands/install.py", line 461, in run
14:16:36 installed = install_given_reqs(
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/req/__init__.py", line 73, in install_given_reqs
14:16:36 requirement.install(
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/req/req_install.py", line 752, in install
14:16:36 scheme = get_scheme(
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/locations/__init__.py", line 244, in get_scheme
14:16:36 from . import _distutils
14:16:36 File "/home/jenkins-slave/.jarvis/virtualenvs/executor-0/DataManagement/data-mesh/master_kernelbatchsvc-release-image/lib/python3.8/site-packages/pip/_internal/locations/_distutils.py", line 13, in <module>
14:16:36 __import__("_distutils_hack").remove_shim()
14:16:36 AttributeError: module '_distutils_hack' has no attribute 'remove_shim'
Expected behavior
Code handles both AttributeError and ImportError as it did before: #11298
pip version
22.2.1
Python version
3.8.12
OS
Linux
How to Reproduce
python3 -m pip install setuptools==36.0.1
python3 -m pip install -U pip
python3 -m pip install -U poetry==1.1.13
Output
No response
Code of Conduct
- I agree to follow the PSF Code of Conduct.
Metadata
Metadata
Assignees
Labels
type: bugA confirmed bug or unintended behaviorA confirmed bug or unintended behavior