[Debian-med-packaging] Bug#852502: openslide-python: FTBFS (failing tests)

Santiago Vila sanvila at debian.org
Tue Jan 24 22:53:05 UTC 2017


Package: src:openslide-python
Version: 1.1.1-1
Severity: serious

Dear maintainer:

I tried to build this package in stretch with "dpkg-buildpackage -A"
but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_testdir -i -O--buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:184: python2.7 setup.py config 
running config
I: pybuild base:184: python3.5 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:184: /usr/bin/python setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/pythonX.Y_2.7/build/openslide

[... snipped ...]

test_read_bad_associated_image (tests.test_openslide.TestUnreadableSlide) ... JPEGLib: Bogus marker length.
ok
test_read_bad_region (tests.test_openslide.TestUnreadableSlide) ... ok

======================================================================
ERROR: test_read_region_size_dimension_zero (tests.test_imageslide.TestImage)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/test_imageslide.py", line 108, in test_read_region_size_dimension_zero
    self.assertEqual(self.osr.read_region((0, 0), 0, (400, 0)).size,
  File "/<<PKGBUILDDIR>>/openslide/__init__.py", line 363, in read_region
    tile = Image.new("RGBA", size, (0,) * 4)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2021, in new
    _check_size(size)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2001, in _check_size
    raise ValueError("Width and Height must be > 0")
ValueError: Width and Height must be > 0

======================================================================
ERROR: test_read_region_size_dimension_zero (tests.test_openslide.TestSlide)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/tests/test_openslide.py", line 114, in test_read_region_size_dimension_zero
    self.assertEqual(self.osr.read_region((0, 0), 1, (400, 0)).size,
  File "/<<PKGBUILDDIR>>/openslide/__init__.py", line 223, in read_region
    level, size[0], size[1])
  File "/<<PKGBUILDDIR>>/openslide/lowlevel.py", line 257, in read_region
    return PIL.Image.new('RGBA', (w, h))
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2021, in new
    _check_size(size)
  File "/usr/lib/python2.7/dist-packages/PIL/Image.py", line 2001, in _check_size
    raise ValueError("Width and Height must be > 0")
ValueError: Width and Height must be > 0

----------------------------------------------------------------------
Ran 46 tests in 0.087s

FAILED (errors=2, skipped=1)
Test failed: <unittest.runner.TextTestResult run=46 errors=2 failures=0>
error: Test failed: <unittest.runner.TextTestResult run=46 errors=2 failures=0>
E: pybuild pybuild:276: test: plugin distutils failed with: exit code=1: python2.7 setup.py test 
dh_auto_test: pybuild --test -i python{version} -p 2.7 returned exit code 13
debian/rules:8: recipe for target 'build-indep' failed
make: *** [build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep gave error exit status 2
--------------------------------------------------------------------------------

It also fails here:

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

so it should be easy to reproduce.

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 page for this package.

Thanks.



More information about the Debian-med-packaging mailing list