-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
pip Error while checking for conflicts #13127
Comments
Could you try the command again with |
I suspect I may also have this corrupt package issue and would appreciate any advice. pip version25.0.1 Python versionPython 3.11.4 I am getting this error on my pip commands, including a simple
|
As the stack trace shows and @ichard26 aptly noticed offline, |
Description
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/kali/.local/lib/python3.12/site-packages (24.3.1)
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 584, in _determine_conflicts
return check_install_conflicts(to_install)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 117, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 59, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dependencies)
^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 168, in version
return parse_version(self._dist.version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 56, in parse
return Version(version)
^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 200, in init
match = self._regex.search(version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
Expected behavior
No response
pip version
24.3.1
Python version
Python 3.12.8
OS
kali linux VERSION="2024.4"
How to Reproduce
python3 -m pip install --upgrade pip --break-system-packages
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/kali/.local/lib/python3.12/site-packages (24.3.1)
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 584, in _determine_conflicts
return check_install_conflicts(to_install)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 117, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 59, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dependencies)
^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 168, in version
return parse_version(self._dist.version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 56, in parse
return Version(version)
^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 200, in init
match = self._regex.search(version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
Output
Defaulting to user installation because normal site-packages is not writeable
Requirement already satisfied: pip in /home/kali/.local/lib/python3.12/site-packages (24.3.1)
ERROR: Error while checking for conflicts. Please file an issue on pip's issue tracker: https://github.com/pypa/pip/issues/new
Traceback (most recent call last):
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 584, in _determine_conflicts
return check_install_conflicts(to_install)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 117, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/operations/check.py", line 59, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dependencies)
^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 168, in version
return parse_version(self._dist.version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 56, in parse
return Version(version)
^^^^^^^^^^^^^^^^
File "/home/kali/.local/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 200, in init
match = self._regex.search(version)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: expected string or bytes-like object, got 'NoneType'
Code of Conduct
The text was updated successfully, but these errors were encountered: