🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Bug#1155893: radicale: autopkgtest fails with ModuleNotFoundError: No module named 'pam' (new test in 3.9.2)

#6854
From: Sebastien Bacher
Date: Mon, 30 Nov 2026 11:00
85 lines
4514 bytes
This is a multi-part MIME message sent by reportbug.


--===============6004954314110926614==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Source: radicale
Version: 3.7.8+ds-3
Severity: important
Tags: patch
X-Debbugs-Cc: seb128@ubuntu.com
User: ubuntu-devel@lists.ubuntu.com
Usertags: origin-ubuntu tenacious ubuntu-patch

Hi,

Since the 3.9.2+ds-1 upload, radicale's autopkgtest ("pytest-3 radicale")
fails on every architecture (confirmed via both Ubuntu's proposed-migration
results and Debian's own package tracker) with:

  self = <radicale.auth.pam.Auth object at 0x71063b047380>
  configuration = <radicale.config.Configuration object at 0x71063b163770>

      def __init__(self, configuration) -> None:
          super().__init__(configuration)
          try:
  >           import pam
  E           ModuleNotFoundError: No module named 'pam'

  radicale/auth/pam.py:45: ModuleNotFoundError

The failing test is
tests/test_group.py::TestBaseGroupRequests::test_from_auth_pam_groups_are_empty_and_copied,
which is new upstream in 3.9.2 (it does not exist in the 3.9.0/3.9.1
sources). It is only guarded against running on Windows:

  @pytest.mark.skipif(sys.platform == "win32", reason="PAM authentication is unavailable on Windows")
  def test_from_auth_pam_groups_are_empty_and_copied(self) -> None:

but nothing guards against the python3-pam module simply not being
installed, which is the case in the normal build/autopkgtest
environment since debian/tests/control does not list python3-pam
as a test dependency.

Attached patch adds python3-pam to debian/tests/control's Depends so
the pam auth backend can actually be exercised, which fixes the
autopkgtest failure for me locally.

Thanks for maintaining radicale!


-- System Information:
Debian Release: forky/sid
  APT prefers resolute-updates
  APT policy: (500, 'resolute-updates'), (500, 'resolute-security'), (500, 'resolute'), (100, 'resolute-backports')
Architecture: amd64 (x86_64)

Kernel: Linux 7.0.0-44-generic (SMP w/16 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_WARN, TAINT_OOT_MODULE
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.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

--===============6004954314110926614==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="tests-control-add-python3-pam.patch"

--- a/debian/tests/control
+++ b/debian/tests/control
@@ -6,6 +6,7 @@
  mypy,
  python3-argon2,
  python3-bcrypt,
+ python3-pam,
  python3-pytest,
  python3-pytest-cov,
  python3-radicale,

--===============6004954314110926614==--
Technical Details
Message-ID: <O57gZ-f6nd-5@gated-at.bofh.it>
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lon.pugleaf.net!srl.newsdeef.eu!news.corradoroberto.it!news.servidellagleba.it!bofh.it!news.nic.it!robomod
From: Sebastien Bacher <seb128@ubuntu.com>
Newsgroups: linux.debian.bugs.dist
Subject: Bug#1155893: radicale: autopkgtest fails with ModuleNotFoundError: No module named 'pam' (new test in 3.9.2)
Date: Mon, 30 Nov 2026 12:00:01 +0100
Message-ID: <O57gZ-f6nd-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  Mon Nov 30 10:51:09 2026
Old-Return-Path: <debbugs@buxtehude.debian.org>
X-Spam-Flag: NO
X-Spam-Score: -1.651
Reply-To: Sebastien Bacher <seb128@ubuntu.com>, 1155893@bugs.debian.org
Resent-To: debian-bugs-dist@lists.debian.org
Resent-Cc: seb128@ubuntu.com, dr@jones.dk
X-Debian-Pr-Message: report 1155893
X-Debian-Pr-Package: src:radicale
X-Debian-Pr-Keywords: patch
X-Debian-Pr-Source: radicale
Content-Type: multipart/mixed; boundary="===============6004954314110926614=="
MIME-Version: 1.0
X-Mailer: reportbug 13.2.0+ubuntu1
X-Debian-Message: from BTS
X-Mailing-List: <debian-bugs-dist@lists.debian.org> archive/latest/2006052
List-ID: <debian-bugs-dist.lists.debian.org>
List-URL: <https://lists.debian.org/debian-bugs-dist/>
Approved: robomod@news.nic.it
Lines: 85
Organization: linux.* mail to news gateway
Sender: robomod@news.nic.it
X-Original-Date: Mon, 30 Nov 2026 11:47:06 +0100
X-Original-Message-ID: <179603562633.1862741.17736100991015574373.reportbug@seb128-ThinkPad-T16>