[Python-modules-team] Bug#973199: python-libnacl: FTBFS: dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

Lucas Nussbaum lucas at debian.org
Tue Oct 27 17:20:40 GMT 2020


Source: python-libnacl
Version: 1.7.1-1
Severity: serious
Justification: FTBFS on amd64
Tags: bullseye sid ftbfs
Usertags: ftbfs-20201027 ftbfs-bullseye

Hi,

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

Relevant part (hopefully):
> dpkg-buildpackage
> -----------------
> 
> Command: dpkg-buildpackage -us -uc -sa -rfakeroot
> dpkg-buildpackage: info: source package python-libnacl
> dpkg-buildpackage: info: source version 1.7.1-1
> dpkg-buildpackage: info: source distribution unstable
> dpkg-buildpackage: info: source changed by Colin Watson <cjwatson at debian.org>
>  dpkg-source --before-build .
> dpkg-buildpackage: info: host architecture amd64
>  debian/rules clean
> dh clean --with python3 --buildsystem=pybuild
> dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
>    dh_auto_clean -O--buildsystem=pybuild
> dh_auto_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: python3.9 setup.py clean 
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.9' does not exist -- can't clean it
> I: pybuild base:217: python3.8 setup.py clean 
> running clean
> removing '/<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build' (and everything under it)
> 'build/bdist.linux-x86_64' does not exist -- can't clean it
> 'build/scripts-3.8' does not exist -- can't clean it
>    dh_clean -O--buildsystem=pybuild
> dh_clean: warning: Compatibility levels before 10 are deprecated (level 9 in use)
>  dpkg-source -b .
> dpkg-source: info: using source format '3.0 (quilt)'
> dpkg-source: info: building python-libnacl using existing ./python-libnacl_1.7.1.orig.tar.gz
> dpkg-source: info: building python-libnacl in python-libnacl_1.7.1-1.debian.tar.xz
> dpkg-source: info: building python-libnacl in python-libnacl_1.7.1-1.dsc
>  debian/rules binary
> dh binary --with python3 --buildsystem=pybuild
> dh: warning: Compatibility levels before 10 are deprecated (level 9 in use)
>    dh_update_autotools_config -O--buildsystem=pybuild
>    dh_auto_configure -O--buildsystem=pybuild
> dh_auto_configure: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: python3.9 setup.py config 
> running config
> I: pybuild base:217: python3.8 setup.py config 
> running config
>    dh_auto_build -O--buildsystem=pybuild
> dh_auto_build: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: /usr/bin/python3.9 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/blake.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/secret.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/aead.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/sealed.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/public.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/sign.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/encode.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/secret_easy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> copying libnacl/dual.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl
> I: pybuild base:217: /usr/bin/python3 setup.py build 
> running build
> running build_py
> creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/blake.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/secret.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/aead.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/sealed.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/public.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/sign.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/encode.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/version.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/base.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/secret_easy.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/utils.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
> copying libnacl/dual.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.8_libnacl/build/libnacl
>    dh_auto_test -O--buildsystem=pybuild
> dh_auto_test: warning: Compatibility levels before 10 are deprecated (level 9 in use)
> I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build; python3.9 -m nose -v tests
> test_gcm_aead (unit.test_aead.TestAEAD) ... ok
> test_ietf_aead (unit.test_aead.TestAEAD) ... ok
> test_auth_rejects_wrong_lengths (unit.test_auth_verify.TestAuthVerify) ... ok
> test_auth_verify (unit.test_auth_verify.TestAuthVerify) ... ok
> test_auth_verify_rejects_wrong_key_lengths (unit.test_auth_verify.TestAuthVerify) ... ok
> test_onetimeauth_rejects_wrong_lengths (unit.test_auth_verify.TestAuthVerify) ... ok
> test_onetimeauth_verify (unit.test_auth_verify.TestAuthVerify) ... ok
> test_onetimeauth_verify_rejects_wrong_key_lengths (unit.test_auth_verify.TestAuthVerify) ... ok
> test_key_blake (unit.test_blake.TestBlake) ... ok
> test_keyless_blake (unit.test_blake.TestBlake) ... ok
> test_publickey (unit.test_dual.TestDual) ... ok
> test_secretkey (unit.test_dual.TestDual) ... ok
> test_sign (unit.test_dual.TestDual) ... ok
> test_publickey (unit.test_public.TestPublic) ... ok
> test_secretkey (unit.test_public.TestPublic) ... ok
> test_secret_box (unit.test_raw_auth_sym.TestSecretBox) ... ok
> test_secret_box_easy (unit.test_raw_auth_sym_easy.TestSecretBox) ... ok
> test_key_generichash (unit.test_raw_generichash.TestGenericHash) ... ok
> test_keyless_generichash (unit.test_raw_generichash.TestGenericHash) ... ok
> test_hash (unit.test_raw_hash.TestHash) ... ok
> test_box (unit.test_raw_public.TestPublic) ... ok
> test_box_seal (unit.test_raw_public.TestPublic) ... ok
> test_boxnm (unit.test_raw_public.TestPublic) ... ok
> test_gen (unit.test_raw_public.TestPublic) ... ok
> test_scalarmult_rejects_wrong_length (unit.test_raw_public.TestPublic) ... ok
> test_crypto_kdf_derive_from_key (unit.test_raw_random.TestRandomBytes) ... ok
> test_crypto_kdf_keygen (unit.test_raw_random.TestRandomBytes) ... ok
> test_crypto_kx_client_session_keys (unit.test_raw_random.TestRandomBytes) ... ok
> test_crypto_kx_keypair (unit.test_raw_random.TestRandomBytes) ... ok
> test_crypto_kx_seed_keypair (unit.test_raw_random.TestRandomBytes) ... ok
> test_crypto_kx_server_session_keys (unit.test_raw_random.TestRandomBytes) ... ok
> copied from libsodium default/randombytes.c ... ok
> test_randombytes_buf_deterministic (unit.test_raw_random.TestRandomBytes) ... ok
> test_randombytes_random (unit.test_raw_random.TestRandomBytes) ... ok
> test_randombytes_uniform (unit.test_raw_random.TestRandomBytes) ... ok
> test_secretbox (unit.test_raw_secret.TestSecret) ... ok
> test_secretbox_easy (unit.test_raw_secret_easy.TestSecret) ... ok
> test_box (unit.test_raw_sign.TestSign) ... ok
> test_gen (unit.test_raw_sign.TestSign) ... ok
> test_save_load (unit.test_save.TestSave) ... ERROR
> test_save_load_secret (unit.test_save.TestSave) ... ERROR
> test_save_load_sign (unit.test_save.TestSave) ... ERROR
> test_save_perms (unit.test_save.TestSave) ... ok
> test_publickey_only (unit.test_seal.TestSealed) ... ok
> test_secretkey (unit.test_seal.TestSealed) ... ok
> test_secret (unit.test_secret.TestSecret) ... ok
> test_secret (unit.test_secret_easy.TestSecretEasy) ... ok
> test_key_decomposition (unit.test_sign.TestSigning) ... ok
> Too few bytes in a key passed through to libsodium will lead to bytes past the end ... ok
> Too few bytes in a key passed through to libsodium will lead to bytes past the end ... ok
> test_sign (unit.test_sign.TestSigning) ... ok
> Too few bytes in a key passed through to libsodium will lead to bytes past the end ... ok
> Too few bytes in a key passed through to libsodium will lead to bytes past the end ... ok
> Too few bytes in a key or nonce passed through to libsodium will lead to bytes past the end ... ok
> Too few bytes in a key or nonce passed through to libsodium will lead to bytes past the end ... ok
> test_verify16 (unit.test_verify.TestVerify) ... ok
> test_verify32 (unit.test_verify.TestVerify) ... ok
> test_verify64 (unit.test_verify.TestVerify) ... ok
> test_different (unit.test_verify.TestVerifyBytesEq) ... ok
> test_different_length (unit.test_verify.TestVerifyBytesEq) ... ok
> test_equal (unit.test_verify.TestVerifyBytesEq) ... ok
> test_invalid_type (unit.test_verify.TestVerifyBytesEq) ... ok
> test_library_version_major (unit.test_version.TestSodiumVersion) ... ok
> test_library_version_minor (unit.test_version.TestSodiumVersion) ... ok
> test_version_string (unit.test_version.TestSodiumVersion) ... ok
> 
> ======================================================================
> ERROR: test_save_load (unit.test_save.TestSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/tests/unit/test_save.py", line 32, in test_save_load
>     bob_load = libnacl.utils.load_key(bob_path)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl/utils.py", line 34, in load_key
>     key_data = json.loads(stream.read(), encoding='UTF-8')
>   File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
>     return cls(**kw).decode(s)
> TypeError: __init__() got an unexpected keyword argument 'encoding'
> 
> ======================================================================
> ERROR: test_save_load_secret (unit.test_save.TestSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/tests/unit/test_save.py", line 63, in test_save_load_secret
>     lbox = libnacl.utils.load_key(box_path)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl/utils.py", line 34, in load_key
>     key_data = json.loads(stream.read(), encoding='UTF-8')
>   File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
>     return cls(**kw).decode(s)
> TypeError: __init__() got an unexpected keyword argument 'encoding'
> 
> ======================================================================
> ERROR: test_save_load_sign (unit.test_save.TestSave)
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/tests/unit/test_save.py", line 74, in test_save_load_sign
>     signer_load = libnacl.utils.load_key(sign_path)
>   File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build/libnacl/utils.py", line 34, in load_key
>     key_data = json.loads(stream.read(), encoding='UTF-8')
>   File "/usr/lib/python3.9/json/__init__.py", line 359, in loads
>     return cls(**kw).decode(s)
> TypeError: __init__() got an unexpected keyword argument 'encoding'
> 
> ----------------------------------------------------------------------
> Ran 65 tests in 0.145s
> 
> FAILED (errors=3)
> E: pybuild pybuild:352: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.9_libnacl/build; python3.9 -m nose -v tests
> dh_auto_test: error: pybuild --test -i python{version} -p "3.9 3.8" returned exit code 13

The full build log is available from:
   http://qa-logs.debian.net/2020/10/27/python-libnacl_1.7.1-1_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