Package: src:python-libusb1 Version: 2.0.1+ds-1 Severity: serious Tags: ftbfs
Dear maintainer: During a rebuild of all packages in unstable, your package failed to build: -------------------------------------------------------------------------------- [...] debian/rules build dh build --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) 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) running build running build_py copying libusb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 copying usb1/_version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 copying usb1/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 copying usb1/_libusb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 copying usb1/testUSB1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 copying usb1/libusb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1 creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller copying usb1/__pyinstaller/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller copying usb1/__pyinstaller/test_libusb1_packaging.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller copying usb1/__pyinstaller/hook-usb1.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller UPDATING /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/_version.py set /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/_version.py to '2.0.1' dh_auto_test -O--buildsystem=pybuild I: pybuild base:311: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build; python3.12 -m unittest discover -v usb1.__pyinstaller.test_libusb1_packaging (unittest.loader._FailedTest.usb1.__pyinstaller.test_libusb1_packaging) ... ERROR testDefaultEnumScope (usb1.testUSB1.USBTransferTests.testDefaultEnumScope) Enum instances must only affect the scope they are created in. ... ok testDescriptors (usb1.testUSB1.USBTransferTests.testDescriptors) ... skipped 'descriptor walk test did not complete' testDescriptorsWithExtra (usb1.testUSB1.USBTransferTests.testDescriptorsWithExtra) ... skipped 'descriptor walk test did not complete' testExplicitEnumScope (usb1.testUSB1.USBTransferTests.testExplicitEnumScope) Enum instances must only affect the scope they are created in. ... ok testGetVersion (usb1.testUSB1.USBTransferTests.testGetVersion) Just testing getVersion doesn't raise... ... ok testHasCapability (usb1.testUSB1.USBTransferTests.testHasCapability) Just testing hasCapability doesn't raise... ... ok testHasVersion (usb1.testUSB1.USBTransferTests.testHasVersion) ... ok testImplicitUSBContextOpening (usb1.testUSB1.USBTransferTests.testImplicitUSBContextOpening) Test pre-1.5 API backward compatibility. ... /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__init__.py:2093: DeprecationWarning: Use "with USBContext() as context:" for safer cleanup on interpreter shutdown. See also USBContext.open(). warnings.warn( ok testSetBulk (usb1.testUSB1.USBTransferTests.testSetBulk) Simplest test: feed some data, must not raise. ... ok testSetControl (usb1.testUSB1.USBTransferTests.testSetControl) Simplest test: feed some data, must not raise. ... ok testSetGetCallback (usb1.testUSB1.USBTransferTests.testSetGetCallback) ... ok testSetInterrupt (usb1.testUSB1.USBTransferTests.testSetInterrupt) Simplest test: feed some data, must not raise. ... ok testSetIsochronous (usb1.testUSB1.USBTransferTests.testSetIsochronous) Simplest test: feed some data, must not raise. ... ok ====================================================================== ERROR: usb1.__pyinstaller.test_libusb1_packaging (unittest.loader._FailedTest.usb1.__pyinstaller.test_libusb1_packaging) ---------------------------------------------------------------------- ImportError: Failed to import test module: usb1.__pyinstaller.test_libusb1_packaging Traceback (most recent call last): File "/usr/lib/python3.12/unittest/loader.py", line 396, in _find_test_path module = self._get_module_from_name(name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.12/unittest/loader.py", line 339, in _get_module_from_name __import__(name) File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/build/usb1/__pyinstaller/test_libusb1_packaging.py", line 14, in <module> from PyInstaller import __main__ as pyi_main ModuleNotFoundError: No module named 'PyInstaller' ---------------------------------------------------------------------- Ran 14 tests in 0.011s FAILED (errors=1, skipped=2) running done running done running done running done running done E: pybuild pybuild:389: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_usb1/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:7: build] Error 25 dpkg-buildpackage: error: debian/rules build 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.