[Pkg-salt-team] Bug#1019240: salt-common: Errors on run of salt-call etc. due to contextvars entry in salt-(version).egg-info/requires.txt
Gert Michael Kulyk
gkulyk at yahoo.de
Tue Sep 6 06:57:06 BST 2022
Package: salt-common
Version: 3004.1+dfsg-2
Severity: normal
X-Debbugs-Cc: gkulyk at yahoo.de
Dear Maintainer,
on every run of e.g. salt-call, the following error message is thrown on
systems using python3.10 as default:
[ERROR ] Failed to import module pip, this is due most likely to a syntax
error:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/salt/loader/lazy.py", line 766, in
_load_module
mod = self.run(spec.loader.load_module)
File "/usr/lib/python3/dist-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/dist-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/dist-packages/salt/modules/pip.py", line 87, in
<module>
import pkg_resources # pylint: disable=3rd-party-module-not-gated
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3267,
in <module>
def _initialize_master_working_set():
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3241,
in _call_aside
f(*args, **kwargs)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 3279,
in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 573, in
_build_master
ws.require(__requires__)
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 891, in
require
needed = self.resolve(parse_requirements(requirements))
File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py", line 777, in
resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'contextvars' distribution was not
found and is required by salt
This error is due to /usr/lib/python3/dist/packages/salt/3004.1.egg-
info/requirements.txt still including a contextvars entry. Removing it will
prevent the error messages to be shown.
Kind Regards,
Gert Michael Kulyk
-- System Information:
Debian Release: bookworm/sid
APT prefers jammy-updates
APT policy: (500, 'jammy-updates'), (500, 'jammy-security'), (500, 'jammy'), (100, 'jammy-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.15.0-47-generic (SMP w/4 CPU threads)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages salt-common depends on:
ii iproute2 5.15.0-1ubuntu2
ii python3 3.10.4-0ubuntu2
ii python3-apt 2.3.0ubuntu2.1
ii python3-dateutil 2.8.1-6
ii python3-distro 1.7.0-1
ii python3-jinja2 3.0.3-1
ii python3-markupsafe 2.0.1-2build1
ii python3-msgpack 1.0.3-1build1
ii python3-pkg-resources 59.6.0-1.2
ii python3-psutil 5.9.0-1build1
ii python3-pycryptodome 3.11.0+dfsg1-3build1
ii python3-requests 2.25.1+dfsg-2
ii python3-yaml 5.4.1-1ubuntu1
ii python3-zmq 22.3.0-1build1
Versions of packages salt-common recommends:
ii lsb-release 11.1.0ubuntu4
ii python3-croniter 1.0.15-2ubuntu1
Versions of packages salt-common suggests:
pn python3-mako <none>
pn salt-doc <none>
-- no debconf information
More information about the pkg-salt-team
mailing list