[Pkg-salt-team] Bug#999590: pkg_resources.DistributionNotFound: The 'contextvars' distribution was not found and is required by salt
Benjamin Drung
benjamin.drung at ionos.com
Tue Nov 16 13:08:37 GMT 2021
Am Montag, dem 15.11.2021 um 13:25 -0500 schrieb David Mandelberg:
> Op 15-11-2021 om 10:41 schreef Benjamin Drung:> I cannot reproduce this
> issue on unstable, since Python 3.9 provides
> > the contextvars module. What setup do you have and what Python
> > version?
>
> I'm on Debian testing, also with Python 3.9 (see version report below).
> If I understand the issue correctly, it doesn't matter that contextvars
> is available in the standard library, what's happening is that
> pkg_resources (not the import statement) can't find contextvars. E.g.,
> https://github.com/openbsd/ports/commit/77ea7ea5dec0623f9a1ad27334f9beb541c90478
>
> and
> https://github.com/void-linux/void-packages/pull/33331/commits/41f280427ced6bc986ca861852d9d6435f05cb1c
>
> seem to just remove the requirement for the contextvars package, rather
> than adding a dependency on it.
>
> Would you mind running this command? I wonder if you installed
> contextvars from pip or something a while ago?
>
> $ python3 -c 'import pkg_resources;
> print(pkg_resources.require("contextvars"))'
> Traceback (most recent call last):
> File "<string>", line 1, in <module>
> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py",
> line
> 886, in require
> needed = self.resolve(parse_requirements(requirements))
> File "/usr/lib/python3/dist-packages/pkg_resources/__init__.py",
> line
> 772, in resolve
> raise DistributionNotFound(req, requirers)
> pkg_resources.DistributionNotFound: The 'contextvars' distribution was
> not found and is required by the application
I can reproduce the failure of this command above (on testing and
unstable), but the salt-call still works on my machine. Anyway, since
this a bug, I reported it upstream [1] and will fix it with an upload.
[1] https://github.com/saltstack/salt/pull/61240
--
Benjamin Drung
Senior DevOps Engineer and Debian & Ubuntu Developer
Compute Platform Operations Cloud
IONOS SE | Revaler Str. 30 | 10245 Berlin | Deutschland
E-Mail: benjamin.drung at ionos.com | Web: www.ionos.de
Hauptsitz Montabaur, Amtsgericht Montabaur, HRB 24498
Vorstand: Hüseyin Dogan, Dr. Martin Endreß, Claudia Frese, Henning
Kettler, Arthur Mai, Britta Schmidt, Achim Weiß
Aufsichtsratsvorsitzender: Markus Kadelke
Member of United Internet
More information about the pkg-salt-team
mailing list