Hi Sudhakar,
I installed the packages here:
$ dpkg -l | grep -i python3-apt
ii python3-apt 2.0.1ubuntu0.20.04.2esm2 amd64
Python 3 interface to libapt-pkg
$ pip list | grep apt
python-apt 2.0.1+ubuntu0.20.4.2esm2
$ pip list --format json | jq '.[] | select(.name == "python-apt")'
{
"name": "python-apt",
"version": "2.0.1+ubuntu0.20.4.2esm2"
}
And now the version reported in pip is PEP440 compliant and I don't see the
errors anymore.
$ python3
Python 3.8.10 (default, Mar 18 2025, 20:04:55)
[GCC 9.4.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> from packaging.version import parse, Version
>>> Version("2.0.1+ubuntu0.20.4.2esm2").micro
1
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2137070
Title:
python3-apt 2.0.1ubuntu0.20.04.1+esm1 version does not comply with PEP
440
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-pro/+bug/2137070/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs