[Python-modules-team] Bug#952011: bitstruct: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.8 3.7" --system=custom "--test-args={interpreter} setup.py test" returned exit code 13

Lucas Nussbaum lucas at debian.org
Sun Feb 23 06:55:56 GMT 2020


Source: bitstruct
Version: 3.7.0-2
Severity: serious
Justification: FTBFS on amd64
Tags: buster sid
Usertags: ftbfs-20200222 ftbfs-buster

Hi,

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

Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> dh_auto_test -- --system=custom --test-args="{interpreter} setup.py test"
> I: pybuild base:217: python3.8 setup.py test
> running test
> WARNING: Testing via this command is deprecated and will be removed in a future version. Users looking for a generic test entry point independent of test runner are encouraged to use tox.
> running egg_info
> writing bitstruct.egg-info/PKG-INFO
> writing dependency_links to bitstruct.egg-info/dependency_links.txt
> writing top-level names to bitstruct.egg-info/top_level.txt
> reading manifest file 'bitstruct.egg-info/SOURCES.txt'
> reading manifest template 'MANIFEST.in'
> writing manifest file 'bitstruct.egg-info/SOURCES.txt'
> running build_ext
> test_bad_float_size (tests.test_bitstruct.BitStructTest)
> Test of bad float size. ... ok
> test_bad_format (tests.test_bitstruct.BitStructTest)
> Test of bad format. ... ok
> test_byte_order (tests.test_bitstruct.BitStructTest)
> Test pack/unpack with byte order information in the format string. ... ok
> test_byte_order_format (tests.test_bitstruct.BitStructTest)
> Test of a format with only byte order informationx. ... ok
> test_byteswap (tests.test_bitstruct.BitStructTest)
> Byte swap. ... ok
> test_calcsize (tests.test_bitstruct.BitStructTest)
> Calculate size. ... ok
> test_compile (tests.test_bitstruct.BitStructTest) ... ok
> test_empty_format (tests.test_bitstruct.BitStructTest)
> Test of empty format type. ... ok
> test_endianness (tests.test_bitstruct.BitStructTest)
> Test pack/unpack with endianness information in the format string. ... ok
> test_pack (tests.test_bitstruct.BitStructTest)
> Pack values. ... FAIL
> test_pack_unpack (tests.test_bitstruct.BitStructTest)
> Pack and unpack values. ... ok
> test_performance_integers (tests.test_bitstruct.BitStructTest)
> Test pack/unpack performance with integers. ... ok
> test_performance_mixed_types (tests.test_bitstruct.BitStructTest)
> Test pack/unpack performance with mixed types. ... ok
> test_signed_integer (tests.test_bitstruct.BitStructTest)
> Pack and unpack signed integer values. ... ok
> test_unpack (tests.test_bitstruct.BitStructTest)
> Unpack values. ... ok
> test_unsigned_integer (tests.test_bitstruct.BitStructTest)
> Pack and unpack unsigned integer values. ... ok
> 
> ======================================================================
> FAIL: test_pack (tests.test_bitstruct.BitStructTest)
> Pack values.
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_bitstruct.py", line 94, in test_pack
>     pack('r5', 1.0)
> TypeError: cannot convert 'float' object to bytearray
> 
> During handling of the above exception, another exception occurred:
> 
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/tests/test_bitstruct.py", line 97, in test_pack
>     self.assertEqual(
> AssertionError: "cannot convert 'float' object to bytearray" != "'float' object is not iterable"
> - cannot convert 'float' object to bytearray
> + 'float' object is not iterable
> 
> 
> ----------------------------------------------------------------------
> Ran 16 tests in 3.015s
> 
> FAILED (failures=1)
> Test failed: <unittest.runner.TextTestResult run=16 errors=0 failures=1>
> 
> pack time: 0.4917159940014244 s (9.834319880028488e-06 s/pack)
> pack time compiled: 0.19851595500222174 s (3.970319100044435e-06 s/pack)
> unpack time: 0.4506532360028359 s (9.013064720056718e-06 s/unpack)
> unpack time compiled: 0.16778694900131086 s (3.3557389800262172e-06 s/unpack)
> 
> pack time: 0.5904734639989329 s (1.1809469279978658e-05 s/pack)
> pack time compiled: 0.2874713269993663 s (5.7494265399873255e-06 s/pack)
> unpack time: 0.5556427190022077 s (1.1112854380044155e-05 s/unpack)
> unpack time compiled: 0.2673477409989573 s (5.346954819979146e-06 s/unpack)
> error: Test failed: <unittest.runner.TextTestResult run=16 errors=0 failures=1>
> E: pybuild pybuild:341: test: plugin custom failed with: exit code=1: python3.8 setup.py test
> dh_auto_test: error: pybuild --test -i python{version} -p "3.8 3.7" --system=custom "--test-args={interpreter} setup.py test" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/02/22/bitstruct_3.7.0-2_unstable.log

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!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the Python-modules-team mailing list