** Changed in: python-apt (Ubuntu) Status: New => Opinion -- You received this bug notification because you are a member of Ubuntu Touch seeded packages, which is subscribed to python-apt in Ubuntu. https://bugs.launchpad.net/bugs/2080426
Title: module not available for python versions in universe Status in python-apt package in Ubuntu: Opinion Bug description: Some Ubuntu releases may provide more than one version of Python; e.g., Jammy has python3.10 in _main_ and python3.11 in _universe_. However, the modules are only shipped for the python version in _main_, and can't be imported by python version(s) in _universe_. It's understandable that not all python versions are considered "supported" by `py3versions`, particularly if not in _main_, but... It turns out Ubuntu Pro provides support for packages in _universe_, and there are reports of this import error/failure from customers with some frequency. Could the build/delivery of the python-apt modules be considered for all python versions available in a series, independently of the component (main/universe)? Thanks! Details: --- $ lsb_release -cs jammy $ apt-cache search --names-only '^python3\.[0-9]+$' python3.10 - Interactive high-level object-oriented language (version 3.10) python3.11 - Interactive high-level object-oriented language (version 3.11) $ apt show python3.10 python3.11 2>/dev/null | grep -e Package: -e Section: Package: python3.10 Section: python Package: python3.11 Section: universe/python $ sudo apt install --yes python3-apt python3.11 python3.10 $ py3versions --help | grep supported Usage: [-v] [-h] [-d|--default] [-s|--supported] [-i|--installed] -s, --supported print the supported python3 versions -i, --installed print the installed supported python3 versions $ py3versions --supported python3.10 $ py3versions --installed # ... AND supported python3.10 $ dpkg -L python3-apt | grep -F 'apt_pkg.' # ... ONLY 3.10, NOT 3.11 /usr/lib/python3/dist-packages/apt_pkg.cpython-310-x86_64-linux-gnu.so $ python3.10 -c 'import apt_pkg'; echo $? 0 $ python3.11 -c 'import apt_pkg'; echo $? Traceback (most recent call last): File "<string>", line 1, in <module> ModuleNotFoundError: No module named 'apt_pkg' 1 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/python-apt/+bug/2080426/+subscriptions -- Mailing list: https://launchpad.net/~touch-packages Post to : touch-packages@lists.launchpad.net Unsubscribe : https://launchpad.net/~touch-packages More help : https://help.launchpad.net/ListHelp