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

pip Error while checking for conflicts #13127

Open
1 task done
moh-12345 opened this issue Dec 25, 2024 · 0 comments
Open
1 task done

pip Error while checking for conflicts #13127

moh-12345 opened this issue Dec 25, 2024 · 0 comments
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior

Comments

@moh-12345
Copy link

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

@moh-12345 moh-12345 added S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior labels Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: needs triage Issues/PRs that need to be triaged type: bug A confirmed bug or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant