#1146863 python-traits: FTBFS against python 3.15rc2

Package:
src:python-traits
Source:
src:python-traits
Submitter:
Maximiliano Curia
Date:
2026-09-06 12:53:03 UTC
Severity:
normal
Tags:
#1146863#5
Date:
2026-09-06 12:51:34 UTC
From:
To:
Hi!

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

The error is: ModuleNotFoundError: No module named 'sre_parse'. Did you
mean: 'argparse'?

To solve this issue, upstream has regenerated the
traits/observation/_generated_parser.py file in the
bef78574e5c1c212b10d03d581deb6aad2e7dc32 commit [2]

This was part of the 7.0.0 release, upstream is now at 7.1.0.

I applied the upstream fix in the sandbox [3] to be able to build the
packages that depend on python-traits, please consider applying the
patch to support the upcoming 3.15 version.

Happy hacking,

[1]: https://debusine.debian.net/debian/r-python-python3.15/artifact/4286154/
[2]: https://github.com/enthought/traits/commit/bef78574e5c1c212b10d03d581deb6aad2e7dc32
[3]: https://debusine.debian.net/debian/r-python-python3.15/