#1149369 journal-brief: FTBFS against python 3.15rc2 (No module named 'sre_constants')

#1149369#5
Date:
2026-09-29 17:30:00 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that journal-brief fails to build from source:
https://debusine.debian.net/debian/r-python-python3.15/artifact/4856260/

 From the log, the error seems to be:

     File "/usr/lib/python3.15/unittest/loader.py", line 374, in
_get_module_from_name
       __import__(name)
       ~~~~~~~~~~^^^^^^
     File "/build/reproducible-path […]
build/tests/test_journal_brief.py", line 22, in <module>
       import journal_brief
     File "/build/reproducible-path […] build/journal_brief/__init__.py",
line 22, in <module>
       from journal_brief.config import Config
     File "/build/reproducible-path […] build/journal_brief/config.py",
line 25, in <module>
       import sre_constants
   ModuleNotFoundError: No module named 'sre_constants'

This module was removed in Python 3.15

Setting the severity to important for now. Once Python 3.15 is released
and later added to python3-defaults, this bug will become release
critical.