Source: pilkit
Version: 2.0-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20230726 ftbfs-trixie

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> cp debian/reference.png tests/assets/reference.png
> dh_auto_build
> I: pybuild base:240: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> copying pilkit/utils.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> copying pilkit/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> copying pilkit/exceptions.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> copying pilkit/lib.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> copying pilkit/pkgmeta.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit
> creating 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/overlay.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/resize.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/utils.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/__init__.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/base.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> copying pilkit/processors/crop.py -> 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors
> running egg_info
> writing pilkit.egg-info/PKG-INFO
> writing dependency_links to pilkit.egg-info/dependency_links.txt
> writing top-level names to pilkit.egg-info/top_level.txt
> writing manifest file 'pilkit.egg-info/SOURCES.txt'
> reading manifest file 'pilkit.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> warning: no files found matching '*.jpg' under directory 'tests'
> adding license file 'LICENSE'
> adding license file 'AUTHORS'
> writing manifest file 'pilkit.egg-info/SOURCES.txt'
> make[1]: Leaving directory '/<<PKGBUILDDIR>>'
>    dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:240: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build; 
> python3.11 -m nose -v tests
> tests.test_processors.test_smartcrop ... ok
> tests.test_processors.test_resizetofill ... ERROR
> tests.test_processors.test_resizetofit ... ERROR
> Regression test for matthewwithanm/pilkit#1 ... ERROR
> tests.test_processors.test_resizetofit_mat ... ERROR
> Test that the ColorOverlay processor ... ok
> Test that the Resize processor antialiases. ... ERROR
> Test that the upscale argument works as expected. ... ERROR
> tests.test_processors.test_should_raise_exception_if_anchor_is_passed_and_crop_is_set_to_false
>  ... ok
> tests.test_processors.test_should_set_crop_to_true_if_anchor_is_passed_without_crop
>  ... ok
> tests.test_processors.test_should_raise_exception_when_crop_is_passed_without_height_and_width
>  ... ok
> tests.test_processors.test_make_gifs_opaque ... ok
> tests.test_processors.test_should_call_resizetofill_when_crop_and_ancho_is_passed
>  ... ok
> tests.test_processors.test_should_call_resizetofit_when_crop_is_not_passed 
> ... ok
> tests.test_processors.test_should_call_smartresize_when_crop_not_passed ... ok
> tests.test_processors.test_should_repass_upscale_option_false ... ok
> tests.test_processors.test_should_repass_upscale_option_true ... ok
> tests.test_utils.test_extension_to_format ... ok
> tests.test_utils.test_format_to_extension_no_init ... ok
> tests.test_utils.test_unknown_format ... ok
> tests.test_utils.test_unknown_extension ... ok
> Ensure default extensions are honored. ... ok
> tests.test_utils.test_filewrapper ... ok
> Test that ``save_image`` accepts filename strings (not just file objects). 
> ... ok
> Make sure formats are normalized by ``prepare_image()``. ... ok
> Make sure the ``quiet`` util doesn't error if devnull is unwriteable. ... ok
> 
> ======================================================================
> ERROR: tests.test_processors.test_resizetofill
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 17, in test_resizetofill
>     img = ResizeToFill(100, 100).process(create_image())
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 77, in process
>     upscale=self.upscale).process(img)
>                           ^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 50, in process
>     img = Resize(new_width, new_height, upscale=self.upscale).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> -------------------- >> begin captured logging << --------------------
> PIL.PngImagePlugin: DEBUG: STREAM b'IHDR' 16 13
> PIL.PngImagePlugin: DEBUG: STREAM b'IDAT' 41 32768
> PIL.PngImagePlugin: DEBUG: STREAM b'tEXt' 119360 46
> --------------------- >> end captured logging << ---------------------
> 
> ======================================================================
> ERROR: tests.test_processors.test_resizetofit
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 26, in test_resizetofit
>     img = ResizeToFit(100, 100).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 227, in process
>     img = Resize(new_dimensions[0], new_dimensions[1], 
> upscale=self.upscale).process(img)
>           
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> 
> ======================================================================
> ERROR: Regression test for matthewwithanm/pilkit#1
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 38, in test_resize_rounding
>     img = ResizeToFill(28, 28).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 77, in process
>     upscale=self.upscale).process(img)
>                           ^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 50, in process
>     img = Resize(new_width, new_height, upscale=self.upscale).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> 
> ======================================================================
> ERROR: tests.test_processors.test_resizetofit_mat
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 44, in test_resizetofit_mat
>     img = ResizeToFit(100, 100, mat_color=0x000000).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 227, in process
>     img = Resize(new_dimensions[0], new_dimensions[1], 
> upscale=self.upscale).process(img)
>           
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> 
> ======================================================================
> ERROR: Test that the Resize processor antialiases.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 80, in test_resize_antialiasing
>     img = Resize(100, 100).process(img)
>           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> 
> ======================================================================
> ERROR: Test that the upscale argument works as expected.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/usr/lib/python3/dist-packages/nose/case.py", line 197, in runTest
>     self.test(*self.arg)
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/tests/test_processors.py",
>  line 97, in test_upscale
>     img2 = P(500, 500, upscale=True).process(img)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File 
> "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build/pilkit/processors/resize.py",
>  line 24, in process
>     img = img.resize((self.width, self.height), Image.ANTIALIAS)
>                                                 ^^^^^^^^^^^^^^^
> AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
> 
> ----------------------------------------------------------------------
> Ran 26 tests in 0.058s
> 
> FAILED (errors=6)
> E: pybuild pybuild:388: test: plugin distutils failed with: exit code=1: cd 
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_pilkit/build; python3.11 -m nose -v 
> tests
> dh_auto_test: error: pybuild --test --test-nose -i python{version} -p 3.11 
> returned exit code 13


The full build log is available from:
http://qa-logs.debian.net/2023/07/26/pilkit_2.0-4_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20230726;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20230726&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

Reply via email to