#1147229 python-term-image: FTBFS against python 3.15rc2

#1147229#5
Date:
2026-09-09 20:23:05 UTC
From:
To:
Hi!

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

The error is caused by the fact that the code inherits from classmethod
and adds a parameter to the `__init__` method of the child class. But in
Python 3.15 classmethod now has an explicit `__new__` method that forces
the number of parameters, so in order to add a parameter to `__init__`,
there needs to be a `__new__` that discards it before calling the parent
class.

I've applied this fix in the sandbox [2] to verify that it builds
successfully, please consider applying the patch to support the upcoming
3.15 version. This patch should also be forwarded upstream, although it
seems it's not really active anymore.

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/4456293/
[2]: https://debusine.debian.net/debian/r-python-python3.15/

#1147229#12
Date:
2026-10-29 17:34:08 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
python-term-image, 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 1147229@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Pieter Lenaerts <plenae@disroot.org> (supplier of updated python-term-image 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: Thu, 29 Oct 2026 17:14:59 +0000
Source: python-term-image
Built-For-Profiles: noudeb
Architecture: source
Version: 0.7.2-3
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+python@tracker.debian.org>
Changed-By: Pieter Lenaerts <plenae@disroot.org>
Closes: 1147229 1149757
Changes:
 python-term-image (0.7.2-3) unstable; urgency=medium
 .
   * Team Upload
   * Touch patches with gbp pq, add py315 patch (Closes: 1147229)
   * Add patch for urwid 2.4.0 (Closes: 1149757)
   * d/control: bump debhelper-compat to 14 and drop obsolete substvars
   * d/control: bump stds version, cleanup redundant fields,
     add doc to docs pkg desc, set section to doc for docs
   * Update watch file to v5
   * Add d/u/metadata
   * Add doc-base registration
   * Add lintian overrides - Ang is a surname, not a spelling error
Checksums-Sha1:
 045b5b9baa6c25e3198522c5c97af1b502802022 2341 python-term-image_0.7.2-3.dsc
 7f0b9f133a100cb1a62b918bf99b44fd93a84c49 5796 python-term-image_0.7.2-3.debian.tar.xz
 0cbc75c9a6688e8677dfa44d52ed38e5881845f4 11184 python-term-image_0.7.2-3_source.buildinfo
Checksums-Sha256:
 058dbd1fe8753398c96e74e2fa4066c1b3279c740e82d3ea7de92cd47caa4fe4 2341 python-term-image_0.7.2-3.dsc
 d64174cdce91e1b137f0ac5e0bc8de6c3914315efc9f5d9351a5c9d50aac75a6 5796 python-term-image_0.7.2-3.debian.tar.xz
 ec6e92149142988dc28f4495ac6f8109dd9c317858a413add634aaab7220fa1e 11184 python-term-image_0.7.2-3_source.buildinfo
Files:
 2289bbde0b4c1f8add1d5bafadc6f27a 2341 python - python-term-image_0.7.2-3.dsc
 0240b12b9dd6896532fc42f80aa92319 5796 python - python-term-image_0.7.2-3.debian.tar.xz
 9e83895978ba214fc87ca90c1b331ce1 11184 python - python-term-image_0.7.2-3_source.buildinfo
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEd8lhnEnWos3N8v+qQoMEoXSNzHoFAmrjfzIACgkQQoMEoXSN
zHoJQxAAiLUR+ZLC5blx68TlYS9pmwTg7LaA+2A8nh0u1wBbuatHRCReY1nN8Tdq
Wk54sy5PYsZ1F2evM1wJIWVl1j+TK2N/l5QC9s/IjhXD/kmjSZJdzMpkiMYjnT/s
b8yLNkMIIT8ToMYM76OnWzMbbr2QN8zdj86nDszheioZDmgPk2xLcU2lBxI+Woyf
/fXK/EY7ecxk/pL7YMlzD42CuPMn1KpVEgjansrdr2wTZ8KSFQ60psha7dVJW2b/
WmR4sl2l4JdmUYcGM7wAw/QusmLQX7mHAVAqoBPi3gFXmABUIPXcDknSFGwnF9SJ
ROiqES1AWuJnaIr10wEx4ZbfGvTDOQmHcCu9SBd/o9Dok9sAkuV9gd2Fdz7bXdCO
CDX4QJxOPuxAVvXVucsIfwvA4XABoAH67Z3Zzw9SCEibO7zEyT6VZH72j1QMREdc
9Vke4yvA9kQDCQG2YKOKmv6tUFS9cqp/FcVhIbqqFrPTtymv5sBlfj2d8XbAwGvL
HiBN6w3er3WiHBh3FOdya4kmTptEgN1592GwwCFDAe44KHNl3AVvQElnOGHLUq8S
8cRcZY5OoefeMc0gg0S1ZwDYCnByGqZs3WhZ5eMz4XyOVLL4WJioc4xA2SwKNxMP
ZUQHizx3JxQCdgFa/X2+C3zRFaT+uJT8gzE9LX4eIw7g7vRxSFA=
=VfDL
-----END PGP SIGNATURE-----