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

upgrading pgadmin4 in pipx is broken in fedora 40 workstation #7845

Closed
vatlnetwork opened this issue Aug 23, 2024 · 2 comments
Closed

upgrading pgadmin4 in pipx is broken in fedora 40 workstation #7845

vatlnetwork opened this issue Aug 23, 2024 · 2 comments
Labels

Comments

@vatlnetwork
Copy link

Please note that security bugs or issues should be reported to [email protected].

Describe the bug

This morning I spun up my pgadmin4 environment and logged in and I got a message saying there was a later version of pgadmin4 out. Usually I run pipx upgrade pgadmin4 when I see this message, but this morning it failed and also removed my installation of pgadmin4 and running pipx install pgadmin4 also fails.

To Reproduce

Steps to reproduce the behavior:

  1. Attempt to install pgadmin4 via pipx on Fedora 40

Expected behavior

The program installs / upgrades successfully

Error message

ERROR: Exception:
Traceback (most recent call last):
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 105, in _run_wrapper
status = _inner_run()
^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/cli/base_command.py", line 96, in _inner_run
return self.run(options, args)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/cli/req_command.py", line 67, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/commands/install.py", line 379, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 95, in resolve
result = self._result = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 546, in resolve
state = resolution.resolve(requirements, max_rounds=max_rounds)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 397, in resolve
self._add_to_criteria(self.state.criteria, r, parent=None)
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/resolvelib/resolvers.py", line 173, in _add_to_criteria
if not criterion.candidates:
^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/resolvelib/structs.py", line 156, in bool
return bool(self._sequence)
^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 174, in bool
return any(self)
^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 162, in
return (c for c in iterator if id(c) not in self._incompatible_ids)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/found_candidates.py", line 116, in _iter_built_with_inserted
candidate = func()
^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 186, in _make_candidate_from_link
base: Optional[BaseCandidate] = self._make_base_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 232, in _make_base_candidate_from_link
self._link_candidate_cache[link] = LinkCandidate(
^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 303, in init
super().init(
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 158, in init
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 247, in _prepare
self._check_metadata_consistency(dist)
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 229, in _check_metadata_consistency
list(dist.iter_dependencies(list(dist.iter_provided_extras())))
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 220, in iter_dependencies
elif any(req.marker.evaluate(context) for context in contexts):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_internal/metadata/importlib/_dists.py", line 220, in
elif any(req.marker.evaluate(context) for context in contexts):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py", line 325, in evaluate
return _evaluate_markers(self._markers, current_environment)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py", line 211, in _evaluate_markers
groups[-1].append(_evaluate_markers(marker, environment))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py", line 225, in _evaluate_markers
groups[-1].append(_eval_op(lhs_value, op, rhs_value))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/markers.py", line 183, in _eval_op
return spec.contains(lhs, prereleases=True)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py", line 552, in contains
normalized_item = _coerce_version(item)
^^^^^^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/specifiers.py", line 28, in _coerce_version
version = Version(version)
^^^^^^^^^^^^^^^^
File "/home/johng/.local/share/pipx/shared/lib/python3.12/site-packages/pip/_vendor/packaging/version.py", line 202, in init
raise InvalidVersion(f"Invalid version: '{version}'")
pip._vendor.packaging.version.InvalidVersion: Invalid version: '6.10.5-200.fc40.x86_64'
'/home/johng/.local/share/pipx/venvs/pgadmin4/bin/python -m pip --no-input install --upgrade pgadmin4 -q' failed

Screenshots

If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Fedora Workstation (Gnome Desktop)
  • Version: 40
  • Mode: Desktop
  • Browser (if running in server mode): Firefox
  • Package type: Python

Additional context

Add any other context about the problem here.

@vatlnetwork vatlnetwork changed the title upgrading pgadmin4 in pipx is broken upgrading pgadmin4 in pipx is broken in fedora 40 workstation Aug 23, 2024
@slewsys
Copy link

slewsys commented Aug 24, 2024

This error appears to be specific to pip v24.1+. Try, e.g.:

pip install -U "pip==24.0"
pip install -U pgadmin4

@RohitBhati8269
Copy link
Contributor

Duplicate :- #7836

@RohitBhati8269 RohitBhati8269 closed this as not planned Won't fix, can't repro, duplicate, stale Aug 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants