[Pkg-utopia-maintainers] Bug#1144533: dbus-python: Unimportable module when building in Python 3.15
Simon McVittie
smcv at debian.org
Sun Aug 16 15:14:27 BST 2026
Control: forwarded -1 https://gitlab.freedesktop.org/dbus/dbus-python/-/work_items/59
On Sun, 16 Aug 2026 at 15:25:57 +0200, Maximiliano Curia wrote:
>The problem seems to be caused by the fact that the Connection is a
>GenericAlloc that's missing the PyGC_Head header header, this is now detected in
>Python 3.15 (see: https://github.com/python/cpython/issues/134786).
>
>The weakref was introduced by ebecd174 but the previous mechanism still
>works, so I'm reverting ebecd174 and adding a regression test that
>should fail in python 3.12 to 3.14.
I'd prefer to address this upstream rather than as a Debian-specific
patch (see also: the forwarded report above).
Would this revert be considered (by Python upstream) to be a correct
solution, or a workaround, or what? Is there a porting guide available
that would clarify what the most appropriate change is?
ebecd174 was an attempt to follow what, at the time, I believed was
upstream best-practice. Perhaps I was wrong about that, or perhaps
best-practice has changed - but I'd prefer to know which is applicable.
Thanks,
smcv
More information about the Pkg-utopia-maintainers
mailing list