[Python-modules-team] Bug#921898: pilkit: FTBFS (AssertionError: '.apng' != '.png')

Santiago Vila sanvila at debian.org
Sat Feb 9 23:49:51 GMT 2019


Package: src:pilkit
Version: 2.0-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py config 
running config
I: pybuild base:217: python3.7 setup.py config 
running config
   debian/rules override_dh_auto_build
make[1]: Entering directory '/<<PKGBUILDDIR>>'
cp debian/reference.png tests/assets/reference.png
dh_auto_build
I: pybuild base:217: /usr/bin/python setup.py build 
running build

[... snipped ...]

tests.test_processors.test_smartcrop ... ok
tests.test_processors.test_resizetofill ... ok
tests.test_processors.test_resizetofit ... ok
Regression test for matthewwithanm/pilkit#1 ... ok
tests.test_processors.test_resizetofit_mat ... ok
Test that the ColorOverlay processor ... ok
Test that the Resize processor antialiases. ... ok
Test that the upscale argument works as expected. ... ok
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 ... FAIL
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

======================================================================
FAIL: tests.test_utils.test_format_to_extension_no_init
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/nose/case.py", line 197, in runTest
    self.test(*self.arg)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_pilkit/build/tests/test_utils.py", line 19, in test_format_to_extension_no_init
    eq_(format_to_extension('PNG'), '.png')
AssertionError: '.apng' != '.png'

----------------------------------------------------------------------
Ran 26 tests in 0.205s

FAILED (failures=1)
E: pybuild pybuild:338: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_pilkit/build; python2.7 -m nose -v tests
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:9: build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

(The above is just how the build ends and not necessarily the most relevant part)

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

https://tests.reproducible-builds.org/debian/rb-pkg/unstable/amd64/pilkit.html

where you can get a full build log if you need it.

If this is really a bug in one of the build-depends, please use reassign and affects,
so that this is still visible in the BTS web page for this package.

Thanks.



More information about the Python-modules-team mailing list