Package: python3-apt
Version: 2.3.0+nmu1
Severity: normal
X-Debbugs-Cc: richard...@gmail.com

It is not possible to "import apt" using python3.11 in testing

~$ python3.11
Python 3.11.0 (main, Oct 24 2022, 21:26:25) [GCC 12.2.0] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> import apt
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/lib/python3/dist-packages/apt/__init__.py", line 23, in <module>
    import apt_pkg
ModuleNotFoundError: No module named 'apt_pkg'


-- System Information:
Debian Release: bookworm/sid
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'testing')
Architecture: amd64 (x86_64)

Kernel: Linux 6.0.0-2-amd64 (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-apt depends on:
ii  distro-info-data   0.56
ii  libapt-pkg6.0      2.5.3+b1
ii  libc6              2.35-4
ii  libgcc-s1          12.2.0-5
ii  libstdc++6         12.2.0-5
ii  python-apt-common  2.3.0+nmu1
ii  python3            3.10.6-1

Versions of packages python3-apt recommends:
ii  iso-codes    4.11.0-1
ii  lsb-release  12.0-1

Versions of packages python3-apt suggests:
ii  apt             2.5.3+b1
pn  python-apt-doc  <none>

-- no debconf information

Reply via email to