[pkg-gnupg-maint] Bug#1004742: python3-gpg: invalid version number warning from pkg_resources

Julian Gilbey jdg at debian.org
Tue Feb 1 14:22:30 GMT 2022


Package: python3-gpg
Version: 1.16.0-1.2
Severity: normal

I get the following warning issued by a package trying to import gpg
via pkg_resources:

/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(

See the VERSION_PATTERN regex in
/usr/lib/python3/dist-packages/pkg_resources/_vendor/packaging/version.py
for the definition of valid version numbers accepted by pkg_resources.
In particular, changing "-unknown" to "+unknown" in the Python version
number is sufficient to fix this issue.

Best wishes,

   Julian



More information about the pkg-gnupg-maint mailing list