🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.debian.bugs.dist
Article #2682

Bug#1152542: python3-ipalib: missing dependency on python3-packaging; ipa fails with ModuleNotFoundError

#2682
From: Christoffer Haglund
Date: Fri, 30 Oct 2026 11:20
87 lines
4833 bytes
Package: python3-ipalib
Version: 4.13.1-1
Severity: important
X-Debbugs-Cc: reported-debian-bugs@hglnd.se

Dear Maintainer,

After installing freeipa-client 4.13.1-1+b1 on unstable, the ipa command
fails immediately because the Python module "packaging" is not installed:

  $ ipa
  Traceback (most recent call last):
    File "/usr/bin/ipa", line 27, in <module>
      from ipaclient.__main__ import main
    File "/usr/lib/python3/dist-packages/ipaclient/__main__.py", line 7, in
<module>
      from ipalib import api, cli
    File "/usr/lib/python3/dist-packages/ipalib/__init__.py", line 884, in
<module>
      from ipapython.version import VERSION as __version__
    File "/usr/lib/python3/dist-packages/ipapython/version.py", line 20, in
<module>
      from packaging.version import parse as parse_version
  ModuleNotFoundError: No module named 'packaging'

/usr/lib/python3/dist-packages/ipapython/version.py is shipped by
python3-ipalib and imports packaging.version, but python3-ipalib does not
depend on python3-packaging. Neither does python3-ipaclient or
freeipa-client, and python3-packaging was not installed on this system.

Because ipalib is imported at startup, this makes the ipa command unusable
unless python3-packaging happens to be installed already.

Suggested fix: add python3-packaging to the Depends of python3-ipalib

Workaround: installing the missing package manually resolves the error

  # apt install python3-packaging


-- System Information:
Debian Release: forky/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 7.2.13+deb14-amd64 (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_OOT_MODULE, TAINT_UNSIGNED_MODULE
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages python3-ipalib depends on:
ii  freeipa-common          4.13.1-1
ii  gpg                     2.4.9-8
ii  gpg-agent               2.4.9-8
ii  keyutils                1.6.3-6+b2
ii  librpm-sequoia-dev      1.10.3-1
ii  python3                 3.14.8-1
ii  python3-cffi            2.1.1-2
ii  python3-cryptography    49.0.0-2
ii  python3-dbus            1.5.1-1
ii  python3-dnspython       2.8.0-7
ii  python3-gssapi          1.11.1-2
ii  python3-ifaddr          0.2.0-2
ii  python3-ldap            3.4.8-1+b1
ii  python3-libipa-hbac     2.13.1-3
ii  python3-lxml            6.1.3-1.1
ii  python3-netaddr         1.3.0-3
ii  python3-netifaces       0.11.0-2+b9
ii  python3-pyasn1          0.6.4-1
ii  python3-pyasn1-modules  0.4.1-2
ii  python3-qrcode          8.2-1
ii  python3-requests        2.34.2-1
ii  python3-setuptools      84.2.0-1
ii  python3-six             1.17.0-3
ii  python3-urllib3         2.8.0-2
ii  python3-usb             1.2.1-3
ii  python3-yubico          1.3.3-4
ii  systemd                 262.1-1

python3-ipalib recommends no packages.

python3-ipalib suggests no packages.

-- no debconf information
Technical Details
Message-ID: <NTSOl-8NK8-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!3.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod
From: Christoffer Haglund <reported-debian-bugs@hglnd.se>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1152542: python3-ipalib: missing dependency on python3-packaging; ipa fails with ModuleNotFoundError
Date: Fri, 30 Oct 2026 12:20:01 +0100
Message-ID: <NTSOl-8NK8-5@gated-at.bofh.it>
X-Original-To: Debian Bug Tracking System <submit@bugs.debian.org>
X-Mailbox-Line: From debian-bugs-dist-request@lists.debian.org  Fri Oct 30 11:15:08 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.65
Reply-To: Christoffer Haglund <reported-debian-bugs@hglnd.se>, 1152542@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: reported-debian-bugs@hglnd.se, pkg-freeipa-devel@alioth-lists.debian.net
X-Debian-Pr-Message: report 1152542
X-Debian-Pr-Package: python3-ipalib
X-Debian-Pr-Source: freeipa
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Mailer: reportbug 13.2.0+nmu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/1999704
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 87
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Fri, 30 Oct 2026 12:13:11 +0100
X-Original-Message-ID: <179335879106.29608.5067707171397226019.reportbug@inf-15>