Hi Maximiliano,

The traceback from the log shows there was a test failure because PIL couldn't be imported. I just ran a fresh sbuild in unstable which picked up the new dh-python with no issue, so I think error is part of the Python 3.15 transition.

Should this be reassigned to src:pillow?

======================================================================
ERROR: tests.test_thumbnailer (unittest.loader._FailedTest.tests.test_thumbnailer)
----------------------------------------------------------------------
ImportError: Failed to import test module: tests.test_thumbnailer
Traceback (most recent call last):
File "/usr/lib/python3.15/unittest/loader.py", line 433, in _find_test_path
    module = self._get_module_from_name(name)
File "/usr/lib/python3.15/unittest/loader.py", line 374, in _get_module_from_name
    __import__(name)
    ~~~~~~~~~~^^^^^^
File "/build/reproducible-path/icoextract-0.3.0/.pybuild/cpython3_3.15_icoextract/build/tests/test_thumbnailer.py", line 8, in <module>
    from PIL import Image, ImageChops
  File "/usr/lib/python3/dist-packages/PIL/Image.py", line 94, in <module>
    from . import _imaging as core
ImportError: cannot import name '_imaging' from 'PIL' (/usr/lib/python3/dist-packages/PIL/__init__.py)

Best,
James

On 2026-10-20 12:10, Maximiliano Curia wrote:
Package: src:icoextract
Version: 0.3.0-2
User: [email protected]
Usertags: python3.15
Tags: ftbfs, forky, sid
Severity: serious

Hi!

While preparing the Python 3.15 migration we realized that some Python
packages were shipping broken metadata directories, which leads to
errors when trying to import these directories with code running on
Python 3.15.

To avoid shipping any additional broken directories, dh-python
7.20261019 now throws an error at build-time.

Unfortunately, icoextract is one of the affected packages and fails to
build with the latest dh-python [1].

Most of these errors can be fixed by being more strict with the files
considered for installation. I'll try to submit a patch for this ASAP.

Happy hacking,

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

Reply via email to