Python PIP completely broken
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
Today all Photon OS 5 servers have their Python 3.11 PIP completely destroyed.
Every attempt to install any package with pip install ... (even reinstalling pip) crashes with this error:
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 363, in run
resolver = self.make_resolver(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 175, in make_resolver
import pip._internal.resolution.resolvelib.resolver
File "/usr/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 8, in <module>
from pip._vendor.resolvelib import BaseReporter, ResolutionImpossible
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/__init__.py", line 19, in <module>
from .resolvers import (
File "/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/resolvers/__init__.py", line 1, in <module>
from ..structs import RequirementInformation
ImportError: cannot import name 'RequirementInformation' from 'pip._vendor.resolvelib.structs' (/usr/lib/python3.11/site-packages/pip/_vendor/resolvelib/structs.py)
This is because a recent update is bugged and the pip version 24 package isn't compatible with itself anymore. Upgrading pip to version 25 fixes the bug. So a upgrade to the python3-pip package needs to be made in the tdnf repos, so every server gets the new and repaired version.
Reproduction steps
- run pip install ...
Expected behavior
pip working and not exploding
Additional context
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by examining the tdnf repository definitions and the python3-pip package metadata mentioned in the issue. Reproduce the failure with pip install ..., then update the package to pip 25 and verify that pip can install packages without the RequirementInformation import error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100