[Pkg-salt-team] Bug#1011258: take 2 of: pkg_resources.DistributionNotFound: The 'contextvars' distribution was not found and is required by salt
David Mandelberg
david at mandelberg.org
Thu May 19 01:28:20 BST 2022
Package: salt-common
Version: 3004.1+dfsg-2
I'm seeing https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=999590 again.
$ salt-call --versions-report
Salt Version:
Salt: 3004.1
Dependency Versions:
cffi: Not Installed
cherrypy: Not Installed
dateutil: 2.8.1
docker-py: Not Installed
gitdb: Not Installed
gitpython: Not Installed
Jinja2: 3.0.3
libgit2: 1.3.0
M2Crypto: Not Installed
Mako: 1.1.3
msgpack: 1.0.3
msgpack-pure: Not Installed
mysql-python: Not Installed
pycparser: Not Installed
pycrypto: Not Installed
pycryptodome: 3.11.0
pygit2: 1.8.0
Python: 3.10.4 (main, Mar 24 2022, 13:07:27) [GCC 11.2.0]
python-gnupg: Not Installed
PyYAML: 5.4.1
PyZMQ: 22.3.0
smmap: Not Installed
timelib: Not Installed
Tornado: 4.5.3
ZMQ: 4.3.4
System Versions:
dist: debian testing bookworm
locale: utf-8
machine: x86_64
release: 5.17.0-1-amd64
system: Linux
version: Debian GNU/Linux testing bookworm
$ sudo salt-call state.apply
[WARNING ] /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116:
PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and
will not be supported in a future release
warnings.warn(
[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
[WARNING ] /usr/lib/python3/dist-packages/pkg_resources/__init__.py:116:
PkgResourcesDeprecationWarning: 1.16.0-unknown is an invalid version and
will not be supported in a future release
warnings.warn(
[ERROR ] Failed to import states pip_state, 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/states/pip_state.py", line
32, in <module>
import pkg_resources
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
local:
Summary for local
-------------
Succeeded: 73
Failed: 0
-------------
Total states run: 73
Total run time: 1.502 s
More information about the pkg-salt-team
mailing list