Bug 2367737

Summary: Incompatibility with Python 3.13
Product: [Fedora] Fedora Reporter: Sjoerd Mullender <sjoerd>
Component: mailman3Assignee: Michel Lind <michel>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 42CC: infra-sig, michel, ngompa13
Target Milestone: ---Keywords: Reopened
Target Release: ---   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: mailman3-3.3.10-3.fc45 mailman3-3.3.10-3.fc44 mailman3-3.3.10-3.fc43 mailman3-3.3.10-3.fc42 Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-03-13 16:18:47 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Sjoerd Mullender 2025-05-21 07:33:52 UTC
After the hurdle of a missing nntplib (bug #2318976) the next hurdle is another Python 3.13 incompatibility.  It requires this patch:

--- /usr/lib/python3.13/site-packages/mailman/utilities/i18n.py-        2025-01-17 01:00:00.000000000 +0100
+++ /usr/lib/python3.13/site-packages/mailman/utilities/i18n.py 2025-05-19 13:48:57.971229667 +0200
@@ -114,8 +114,7 @@
         languages.append(language)
     languages.reverse()
     # The non-language qualified $template_dir paths in search order.
-    templates_dir = str(resources.enter_context(
-        files('mailman').joinpath('templates')))
+    templates_dir = str(files('mailman').joinpath('templates'))
     paths = [templates_dir, os.path.join(config.TEMPLATE_DIR, 'site')]
     if mlist is not None:
         # Don't forget these are in REVERSE search order!

The incompatibility is that Python 3.13 dropped context support in pathlib.Path.

Reproducible: Always

Comment 1 Michel Lind 2025-11-12 13:19:22 UTC

*** This bug has been marked as a duplicate of bug 2318976 ***

Comment 2 Sjoerd Mullender 2025-11-12 16:12:26 UTC
This is *not* a duplicate of bug 2318976.  2318976 is about nntplib which does no longer exist in Python 3.13.  This bug is about something entirely different: Python 3.13 dropped context support in pathlib.Path.

Comment 3 Sjoerd Mullender 2025-11-26 09:07:14 UTC
Reopening this, since it is *not* a duplicate and the latest version of mailman3 (mailman3-3.3.10-1.fc42.noarch) suffers from this bug.
The patch still works.

Comment 4 Fedora Update System 2026-03-13 16:14:53 UTC
FEDORA-2026-0137431345 (mailman3-3.3.10-3.fc45) has been submitted as an update to Fedora 45.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-0137431345

Comment 5 Fedora Update System 2026-03-13 16:15:03 UTC
FEDORA-2026-ff5fb0d038 (mailman3-3.3.10-3.fc43) has been submitted as an update to Fedora 43.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-ff5fb0d038

Comment 6 Fedora Update System 2026-03-13 16:15:04 UTC
FEDORA-2026-00390d6270 (mailman3-3.3.10-3.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2026-00390d6270

Comment 7 Fedora Update System 2026-03-13 16:18:47 UTC
FEDORA-2026-0137431345 (mailman3-3.3.10-3.fc45) has been pushed to the Fedora 45 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 8 Fedora Update System 2026-03-14 02:10:40 UTC
FEDORA-2026-05ece630c4 has been pushed to the Fedora 44 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-05ece630c4`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-05ece630c4

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 9 Fedora Update System 2026-03-14 02:56:00 UTC
FEDORA-2026-ff5fb0d038 has been pushed to the Fedora 43 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-ff5fb0d038`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-ff5fb0d038

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 10 Fedora Update System 2026-03-14 03:13:38 UTC
FEDORA-2026-00390d6270 has been pushed to the Fedora 42 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2026-00390d6270`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2026-00390d6270

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 11 Fedora Update System 2026-03-22 00:17:03 UTC
FEDORA-2026-05ece630c4 (mailman3-3.3.10-3.fc44) has been pushed to the Fedora 44 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 12 Fedora Update System 2026-03-22 00:54:19 UTC
FEDORA-2026-ff5fb0d038 (mailman3-3.3.10-3.fc43) has been pushed to the Fedora 43 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 13 Fedora Update System 2026-03-22 01:09:14 UTC
FEDORA-2026-00390d6270 (mailman3-3.3.10-3.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.