Bug 2367737 - Incompatibility with Python 3.13
Summary: Incompatibility with Python 3.13
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: mailman3
Version: 42
Hardware: Unspecified
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Michel Lind
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-21 07:33 UTC by Sjoerd Mullender
Modified: 2026-03-22 01:09 UTC (History)
3 users (show)

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
Clone Of:
Environment:
Last Closed: 2026-03-13 16:18:47 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.