[Pkg-freeipa-devel] Bug#925457: python-jwcrypto: FTBFS ('module' object has no attribute 'decode_rfc6979_signature')

Santiago Vila sanvila at debian.org
Mon Mar 25 11:40:22 GMT 2019


Package: src:python-jwcrypto
Version: 0.4.2-1
Severity: serious
Tags: ftbfs

Dear maintainer:

I tried to build this package in buster but it failed:

--------------------------------------------------------------------------------
[...]
 debian/rules build-indep
dh build-indep --with python2,python3 --buildsystem=pybuild
   dh_update_autotools_config -i -O--buildsystem=pybuild
   dh_autoreconf -i -O--buildsystem=pybuild
   dh_auto_configure -i -O--buildsystem=pybuild
I: pybuild base:217: python2.7 setup.py config 
running config
I: pybuild base:217: python3.7 setup.py config 
running config
   dh_auto_build -i -O--buildsystem=pybuild
I: pybuild base:217: /usr/bin/python setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwa.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwk.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/jws.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwe.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/tests-cookbook.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/tests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
copying jwcrypto/common.py -> /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto
I: pybuild base:217: /usr/bin/python3 setup.py build 
running build
running build_py
creating /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwa.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwk.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/jws.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/__init__.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwe.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/tests-cookbook.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/jwt.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/tests.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
copying jwcrypto/common.py -> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.7_jwcrypto/build/jwcrypto
   dh_auto_test -i -O--buildsystem=pybuild
I: pybuild base:217: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build; python2.7 -m nose -v 
test_5_10_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_11_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_12_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_1_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_2_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_3_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_4_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_5_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_6_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_7_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_8_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_5_9_encryption (jwcrypto.tests-cookbook.Cookbook08JWETests) ... ok
test_4_1_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ok
test_4_2_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ok
test_4_3_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ERROR
test_4_4_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ok
test_4_6_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ok
test_4_7_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ok
test_4_8_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests) ... ERROR
test_aes_128 (jwcrypto.tests.ConformanceTests) ... ok
test_aes_192 (jwcrypto.tests.ConformanceTests) ... ok
test_aes_256 (jwcrypto.tests.ConformanceTests) ... ok
test_jwe_default_recipient (jwcrypto.tests.ConformanceTests) ... ok
test_jwe_headers_as_dicts (jwcrypto.tests.ConformanceTests) ... ok
test_jwe_no_alg_in_jose_headers (jwcrypto.tests.ConformanceTests) ... ok
test_jwe_no_enc_in_jose_headers (jwcrypto.tests.ConformanceTests) ... ok
test_jwe_no_protected_header (jwcrypto.tests.ConformanceTests) ... ok
test_jws_headers_as_dicts (jwcrypto.tests.ConformanceTests) ... ok
test_jws_loopback (jwcrypto.tests.ConformanceTests) ... ok
test_key_ops_values (jwcrypto.tests.ConformanceTests) ... ok
test_unknown_key_params (jwcrypto.tests.ConformanceTests) ... ok
test_jwa_create (jwcrypto.tests.JWATests) ... ok
test_A1 (jwcrypto.tests.TestJWE) ... ok
test_A2 (jwcrypto.tests.TestJWE) ... ok
test_A3 (jwcrypto.tests.TestJWE) ... ok
test_A4 (jwcrypto.tests.TestJWE) ... ok
test_A5 (jwcrypto.tests.TestJWE) ... ok
test_create_priKeys (jwcrypto.tests.TestJWK) ... ok
test_create_pubKeys (jwcrypto.tests.TestJWK) ... ok
test_create_symKeys (jwcrypto.tests.TestJWK) ... ok
test_export_private (jwcrypto.tests.TestJWK) ... ok
test_export_public (jwcrypto.tests.TestJWK) ... ok
test_export_public_keys (jwcrypto.tests.TestJWK) ... ok
test_export_symmetric (jwcrypto.tests.TestJWK) ... ok
test_generate_EC_key (jwcrypto.tests.TestJWK) ... ok
test_generate_keys (jwcrypto.tests.TestJWK) ... ok
test_generate_oct_key (jwcrypto.tests.TestJWK) ... ok
test_import_from_pem (jwcrypto.tests.TestJWK) ... ok
test_import_pyca_keys (jwcrypto.tests.TestJWK) ... ok
test_jwkset (jwcrypto.tests.TestJWK) ... ok
test_thumbprint (jwcrypto.tests.TestJWK) ... ok
test_A1 (jwcrypto.tests.TestJWS) ... ok
test_A2 (jwcrypto.tests.TestJWS) ... ok
test_A3 (jwcrypto.tests.TestJWS) ... ERROR
test_A4 (jwcrypto.tests.TestJWS) ... ERROR
test_A5 (jwcrypto.tests.TestJWS) ... ok
test_A6 (jwcrypto.tests.TestJWS) ... ERROR
test_A7 (jwcrypto.tests.TestJWS) ... ERROR
test_E (jwcrypto.tests.TestJWS) ... ok
test_A1 (jwcrypto.tests.TestJWT) ... ok
test_A2 (jwcrypto.tests.TestJWT) ... ok
test_decrypt_keyset (jwcrypto.tests.TestJWT) ... ok
test_MMA (jwcrypto.tests.TestMMA) ... ok

======================================================================
ERROR: test_4_3_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests-cookbook.py", line 331, in test_4_3_signing
    s.add_signature(pri_key, None, protected)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 393, in add_signature
    sig = c.sign()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 132, in sign
    signature = self.engine.sign(self.key, sigin)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jwa.py", line 144, in sign
    r, s = ec_utils.decode_rfc6979_signature(signature)
AttributeError: 'module' object has no attribute 'decode_rfc6979_signature'

======================================================================
ERROR: test_4_8_signing (jwcrypto.tests-cookbook.Cookbook08JWSTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests-cookbook.py", line 396, in test_4_8_signing
    s.add_signature(pri_key, None, None, header)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 393, in add_signature
    sig = c.sign()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 132, in sign
    signature = self.engine.sign(self.key, sigin)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jwa.py", line 144, in sign
    r, s = ec_utils.decode_rfc6979_signature(signature)
AttributeError: 'module' object has no attribute 'decode_rfc6979_signature'

======================================================================
ERROR: test_A3 (jwcrypto.tests.TestJWS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 607, in test_A3
    self.check_sign(A3_example)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 587, in check_sign
    sig = s.sign()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 132, in sign
    signature = self.engine.sign(self.key, sigin)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jwa.py", line 144, in sign
    r, s = ec_utils.decode_rfc6979_signature(signature)
AttributeError: 'module' object has no attribute 'decode_rfc6979_signature'

======================================================================
ERROR: test_A4 (jwcrypto.tests.TestJWS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 610, in test_A4
    self.check_sign(A4_example)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 587, in check_sign
    sig = s.sign()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 132, in sign
    signature = self.engine.sign(self.key, sigin)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jwa.py", line 144, in sign
    r, s = ec_utils.decode_rfc6979_signature(signature)
AttributeError: 'module' object has no attribute 'decode_rfc6979_signature'

======================================================================
ERROR: test_A6 (jwcrypto.tests.TestJWS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 627, in test_A6
    A6_example['header2'])
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 393, in add_signature
    sig = c.sign()
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 132, in sign
    signature = self.engine.sign(self.key, sigin)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jwa.py", line 144, in sign
    r, s = ec_utils.decode_rfc6979_signature(signature)
AttributeError: 'module' object has no attribute 'decode_rfc6979_signature'

======================================================================
ERROR: test_A7 (jwcrypto.tests.TestJWS)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/tests.py", line 636, in test_A7
    s.deserialize(A7_example, A6_example['key2'])
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 343, in deserialize
    self.verify(key, alg)
  File "/<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build/jwcrypto/jws.py", line 283, in verify
    'signatures' + repr(self.verifylog))
InvalidJWSSignature: Verification failed for all signatures['Failed: [InvalidJWSSignature(\'Verification failed {AttributeError("\\\'module\\\' object has no attribute \\\'encode_rfc6979_signature\\\'",)}\',)]']

----------------------------------------------------------------------
Ran 63 tests in 4.237s

FAILED (errors=6)
E: pybuild pybuild:341: test: plugin distutils failed with: exit code=1: cd /<<PKGBUILDDIR>>/.pybuild/cpython2_2.7_jwcrypto/build; python2.7 -m nose -v 
dh_auto_test: pybuild --test --test-nose -i python{version} -p 2.7 returned exit code 13
make: *** [debian/rules:7: build-indep] Error 25
dpkg-buildpackage: error: debian/rules build-indep subprocess returned exit status 2
--------------------------------------------------------------------------------

The build was made in my autobuilder with "dpkg-buildpackage -A"
and it also fails here:

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

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.



More information about the Pkg-freeipa-devel mailing list