Package: src:pyzbar Version: 0.1.9-2 Severity: serious Tags: ftbfs
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules binary dh binary --with python3 --buildsystem=pybuild dh_update_autotools_config -O--buildsystem=pybuild dh_autoreconf -O--buildsystem=pybuild dh_auto_configure -O--buildsystem=pybuild I: pybuild base:311: python3.12 setup.py config /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running config dh_auto_build -O--buildsystem=pybuild I: pybuild base:311: /usr/bin/python3 setup.py build /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'test_suite' warnings.warn(msg) /usr/lib/python3/dist-packages/setuptools/_distutils/dist.py:268: UserWarning: Unknown distribution option: 'tests_require' warnings.warn(msg) running build running build_py creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/pyzbar.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/pyzbar_error.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/zbar_library.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/wrapper.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar copying pyzbar/locations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/scripts copying pyzbar/scripts/read_zbar.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/scripts copying pyzbar/scripts/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/scripts creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests copying pyzbar/tests/test_locations.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests copying pyzbar/tests/test_zbar_library.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests copying pyzbar/tests/test_pyzbar.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests copying pyzbar/tests/test_read_zbar.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests copying pyzbar/tests/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests running egg_info creating pyzbar.egg-info writing pyzbar.egg-info/PKG-INFO writing dependency_links to pyzbar.egg-info/dependency_links.txt writing entry points to pyzbar.egg-info/entry_points.txt writing requirements to pyzbar.egg-info/requires.txt writing top-level names to pyzbar.egg-info/top_level.txt writing manifest file 'pyzbar.egg-info/SOURCES.txt' reading manifest file 'pyzbar.egg-info/SOURCES.txt' adding license file 'LICENSE.txt' writing manifest file 'pyzbar.egg-info/SOURCES.txt' running build_scripts creating build creating build/scripts-3.12 copying and adjusting pyzbar/scripts/read_zbar.py -> build/scripts-3.12 changing mode of build/scripts-3.12/read_zbar.py from 644 to 755 dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build; python3.12 -m unittest discover -v test_bounding_box (pyzbar.tests.test_locations.TestLocations.test_bounding_box) ... ok test_convex_duplicates (pyzbar.tests.test_locations.TestLocations.test_convex_duplicates) ... ok test_convex_hull_empty (pyzbar.tests.test_locations.TestLocations.test_convex_hull_empty) ... ok test_convex_square (pyzbar.tests.test_locations.TestLocations.test_convex_square) ... ok test_other (pyzbar.tests.test_locations.TestLocations.test_other) ... ok setUpClass (pyzbar.tests.test_pyzbar.TestDecode) ... ERROR test_read_code128 (pyzbar.tests.test_read_zbar.TestReadZbar.test_read_code128) Read CODE 128 barcodes ... ERROR test_read_qrcode (pyzbar.tests.test_read_zbar.TestReadZbar.test_read_qrcode) Read QR code ... ERROR test_found_non_windows (pyzbar.tests.test_zbar_library.TestLoad.test_found_non_windows) zbar loaded ok on non-Windows platform ... ok test_found_second_attempt_windows (pyzbar.tests.test_zbar_library.TestLoad.test_found_second_attempt_windows) zbar found on the second attempt on Windows ... ok test_found_windows (pyzbar.tests.test_zbar_library.TestLoad.test_found_windows) zbar found on Windows ... ok test_not_found_non_windows (pyzbar.tests.test_zbar_library.TestLoad.test_not_found_non_windows) zbar not found on non-Windows platform ... ok test_not_found_windows (pyzbar.tests.test_zbar_library.TestLoad.test_not_found_windows) zbar not found on Windows ... ok test_32bit (pyzbar.tests.test_zbar_library.TestWindowsFnames.test_32bit) ... ok test_64bit (pyzbar.tests.test_zbar_library.TestWindowsFnames.test_64bit) ... ok ====================================================================== ERROR: setUpClass (pyzbar.tests.test_pyzbar.TestDecode) ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/test_pyzbar.py", line 100, in setUpClass cls.code128, cls.code128_null_character, cls.qrcode, cls.qrcode_rotated, cls.empty = ( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/test_pyzbar.py", line 101, in <genexpr> Image.open(str(TESTDATA.joinpath(fname))) File "/usr/lib/python3/dist-packages/PIL/Image.py", line 3431, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/code128.png' ====================================================================== ERROR: test_read_code128 (pyzbar.tests.test_read_zbar.TestReadZbar.test_read_code128) Read CODE 128 barcodes ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/test_read_zbar.py", line 41, in test_read_code128 main([str(Path(__file__).parent.joinpath('code128.png'))]) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/scripts/read_zbar.py", line 28, in main for barcode in decode(Image.open(image)): ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/PIL/Image.py", line 3431, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/code128.png' ====================================================================== ERROR: test_read_qrcode (pyzbar.tests.test_read_zbar.TestReadZbar.test_read_qrcode) Read QR code ---------------------------------------------------------------------- Traceback (most recent call last): File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/test_read_zbar.py", line 29, in test_read_qrcode main([str(Path(__file__).parent.joinpath('qrcode.png'))]) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/scripts/read_zbar.py", line 28, in main for barcode in decode(Image.open(image)): ^^^^^^^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/PIL/Image.py", line 3431, in open fp = builtins.open(filename, "rb") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ FileNotFoundError: [Errno 2] No such file or directory: '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build/pyzbar/tests/qrcode.png' ---------------------------------------------------------------------- Ran 14 tests in 0.068s FAILED (errors=3) E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_pyzbar/build; python3.12 -m unittest discover -v dh_auto_test: error: pybuild --test -i python{version} -p 3.12 returned exit code 13 make: *** [debian/rules:17: binary] Error 25 dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2 -------------------------------------------------------------------------------- The above is just how the build ends and not necessarily the most relevant part. If required, the full build log is available here: https://people.debian.org/~sanvila/build-logs/202408/ About the archive rebuild: The build was made on virtual machines of type m6a.large and r6a.large from AWS, using sbuild and a reduced chroot with only build-essential packages. If you could not reproduce the bug please contact me privately, as I am willing to provide ssh access to a virtual machine where the bug is fully reproducible. 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.