#1146870 sphinx-toolbox: FTBFS against python 3.15rc2

#1146870#5
Date:
2026-09-06 15:21:04 UTC
From:
To:
Hi!

While rebuilding the python related packages against the Python 3.15rc2
version we found that sphinx-toolbox fails to build from source [1].

It fails with the following error: ModuleNotFoundError: No module named
'sre_parse'. Did you mean: 'argparse'?

This is because sre_parse was deprecated in python 3.11, and removed in
python 3.15.

I've added a patch that uses re._parser and re._constants instead. And
applied the fix in the sandbox [2], to be able to build the packages
that depend on sphinx-toolbox, please consider applying the patch to
support the upcoming 3.15 version.

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

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4545233/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

#1146870#10
Date:
2026-10-05 11:04:49 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
sphinx-toolbox, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 1146870@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Alexandre Detiste <tchet@debian.org> (supplier of updated sphinx-toolbox package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@ftp-master.debian.org)
Format: 1.8
Date: Mon, 05 Oct 2026 12:39:25 +0200
Source: sphinx-toolbox
Architecture: source
Version: 4.3.1-1
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Alexandre Detiste <tchet@debian.org>
Closes: 1146870
Changes:
 sphinx-toolbox (4.3.1-1) unstable; urgency=medium
 .
   * Team upload.
   * Add debian/salsa-ci.yml
   * d/watch: use dedicated GitHub template
   * New upstream version 4.3.1
   * update d/py3dist-overrides: sphinx_jinja2_compat is not needed anymore
   * Move python3-whey to Build-Depends
     to make it obvious that it is the build engine
 .
   [ Maximiliano Curia ]
   * Add a patch to support Python 3.15 (Closes: #1146870)
Checksums-Sha1:
 63104b7d8a46691579e1e53c0f35ec9817232d22 3111 sphinx-toolbox_4.3.1-1.dsc
 73a34d1d1dcfe0b9e946c228f3bff4c534791f00 443213 sphinx-toolbox_4.3.1.orig.tar.gz
 844eb1e01c8530a6140d1bb950ebb7b653f7077f 8404 sphinx-toolbox_4.3.1-1.debian.tar.xz
 25a0a4074b6d2bc757d2d28ba903ef6385ea3783 6861 sphinx-toolbox_4.3.1-1_source.buildinfo
Checksums-Sha256:
 991706cc2a53cdc1591abdc9aa8be2206ad3b7b6825e457b6cb085574e9d75af 3111 sphinx-toolbox_4.3.1-1.dsc
 e397fbcf96d991737b3d0efe28f6b4e7c10493187eaa1499cde03081c1d465fe 443213 sphinx-toolbox_4.3.1.orig.tar.gz
 3f7e4359866a225ba9e7f70fa1ffd10dba2d0e02250dd02c9c672b3af77ea75c 8404 sphinx-toolbox_4.3.1-1.debian.tar.xz
 c481d7ae53d6f45b8cf09640aea9f9e6609d6ffd308fa572b12939a559bd878c 6861 sphinx-toolbox_4.3.1-1_source.buildinfo
Files:
 5458c3a684ddd278298b50cd6ab2cb1b 3111 python optional sphinx-toolbox_4.3.1-1.dsc
 3cce8b595bc318534622fdeb3e6dab8a 443213 python optional sphinx-toolbox_4.3.1.orig.tar.gz
 5318e842a5bdcf1a836f86f4474c5ab7 8404 python optional sphinx-toolbox_4.3.1-1.debian.tar.xz
 20c41cea10a8a520e3826dc60adba723 6861 python optional sphinx-toolbox_4.3.1-1_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQJFBAEBCgAvFiEEj23hBDd/OxHnQXSHMfMURUShdBoFAmrDgRURHHRjaGV0QGRl
Ymlhbi5vcmcACgkQMfMURUShdBqsKA/+PSYPICndwla4GWAc+b26LynI7+kPdSPF
tTH2rFGV7S/N7+mtgxzAxZEKIYGUL9kfdYWWVZBGEtqXVuMlSLuYymdB0bIXNjTB
MdrVKhPJ1iEfd8silRzbdmabKS5N6CP2/IebehC32TzozYlH3cWNVtiw6E7BzoCU
0H/Pfty8FwkhkLgqJJ1595N7jRHXiEQyJen5hjSY/KLovw19FFmL65YMwROJbos7
sHId4Lyx5Ahii7sqqGxW962BLwVy6nnNL2wtQRsWgFAe3xngwdxeZvd8Rnu4nSki
L0/lxUJj5Bn5qppp9XRR7y2h8EwoxZhduxZkUxWdgM7O3bk+W9zEOS0X6aPAwFZi
IFI33KmJfxmteyor3hZw+PyUyBDESQI44ocpnuQQHP0r/JLuJlSGbNAqTuF1gPCO
93hNT2vvsrPGld4V+hbczmNex/6FqdPyoK7v8MjS0ZiE70y83V/mnayZcp4RXkDi
Ohr5Q+eFtI7czsiDqraiM5Zyd0hu6G8xReHR/ai9Q7rMKhiWfqg9X9mfTUoD253w
tLYwRwmpOEVMqSUhOf88WrQcifjMqRhHgQX47MKz3hiE0YUILe6tNA5mUCE3E1uj
S3Hi04ExX1oTusefuka5uZAcX9Gm7UQRSNT131Ywq+4UHWkGha0FbnRhdKisQ23v
p2Xj8j6suMk=
=slJG
-----END PGP SIGNATURE-----