Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
https://wiki.archlinux.org/title/Bug_reporting_guidelines
Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.
REPEAT: Do NOT report bugs for outdated packages!
FS#73095 - [salt] `pyzmq` requirements are still erroneous (particularly `pyzmq<=20.0.0`)
Attached to Project:
Community Packages
Opened by Imran Iqbal (myii) - Monday, 20 December 2021, 13:32 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 31 March 2022, 08:44 GMT
Opened by Imran Iqbal (myii) - Monday, 20 December 2021, 13:32 GMT
Last edited by Morten Linderud (Foxboron) - Thursday, 31 March 2022, 08:44 GMT
|
DetailsDescription:
After a fresh installation of `salt` (3004-4), the `pyzmq` requirements aren't correct: ``` # cat /usr/lib/python3.10/site-packages/salt-3004-py3.10.egg-info/requires.txt Jinja2 msgpack>=0.5,!=0.5.5 PyYAML MarkupSafe requests>=1.0.0 distro>=1.0.1 psutil>=5.0.0 pyzmq<=20.0.0 pyzmq>=17.0.0 pycryptodomex>=3.9.8 ``` Looking at the source (for either `3004` or `master`): * https://github.com/saltstack/salt/blob/v3004/requirements/zeromq.txt * https://github.com/saltstack/salt/blob/master/requirements/zeromq.txt It can be determined that for Python >= 3.9, there should be a single line: ``` pyzmq>19.0.2 ``` The `pyzmq<=20.0.0` is particularly problematic, since it results in a traceback when running `pip.list`: ``` # salt-call --local pip.list [ERROR ] Failed to import module pip, this is due most likely to a syntax error: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 568, in _build_master ws.require(__requires__) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 886, in require needed = self.resolve(parse_requirements(requirements)) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (pyzmq 22.2.1 (/usr/lib/python3.10/site-packages), Requirement.parse('pyzmq<=20.0.0'), {'salt'}) During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/usr/lib/python3.10/site-packages/salt/loader/lazy.py", line 766, in _load_module mod = self.run(spec.loader.load_module) File "/usr/lib/python3.10/site-packages/salt/loader/lazy.py", line 1201, in run return self._last_context.run(self._run_as, _func_or_method, *args, **kwargs) File "/usr/lib/python3.10/site-packages/salt/loader/lazy.py", line 1216, in _run_as return _func_or_method(*args, **kwargs) File "<frozen importlib._bootstrap_external>", line 548, in _check_name_wrapper File "<frozen importlib._bootstrap_external>", line 1063, in load_module File "<frozen importlib._bootstrap_external>", line 888, in load_module File "<frozen importlib._bootstrap>", line 290, in _load_module_shim File "<frozen importlib._bootstrap>", line 719, in _load File "<frozen importlib._bootstrap>", line 688, in _load_unlocked File "<frozen importlib._bootstrap_external>", line 883, in exec_module File "<frozen importlib._bootstrap>", line 241, in _call_with_frames_removed File "/usr/lib/python3.10/site-packages/salt/modules/pip.py", line 87, in <module> import pkg_resources # pylint: disable=3rd-party-module-not-gated File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3243, in <module> def _initialize_master_working_set(): File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside f(*args, **kwargs) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set working_set = WorkingSet._build_master() File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 570, in _build_master return cls._build_from_requirements(__requires__) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 583, in _build_from_requirements dists = ws.resolve(reqs, Environment()) File "/usr/lib/python3.10/site-packages/pkg_resources/__init__.py", line 777, in resolve raise VersionConflict(dist, req).with_context(dependent_req) pkg_resources.ContextualVersionConflict: (pyzmq 22.2.1 (/usr/lib/python3.10/site-packages), Requirement.parse('pyzmq<=20.0.0'), {'salt'}) 'pip' __virtual__ returned False: (pyzmq 22.2.1 (/usr/lib/python3.10/site-packages), Requirement.parse('pyzmq<=20.0.0'), {'salt'}) ``` Fixing the requirements manually resolves the issue. --- Additional info: * `salt 3004-4` --- Steps to reproduce: * Run the `archlinux/archlinux:latest` Docker container. * Install `salt`. * Run `salt-call --local pip.list`. |
This task depends upon
Closed by Morten Linderud (Foxboron)
Thursday, 31 March 2022, 08:44 GMT
Reason for closing: Fixed
Additional comments about closing: 3004.1-2
Thursday, 31 March 2022, 08:44 GMT
Reason for closing: Fixed
Additional comments about closing: 3004.1-2