[Bug 1976299] Re: hashlib.algorithms_available lists algorithms that cannot be used

Matthieu Clemenceau 1976299 at bugs.launchpad.net
Thu Jun 2 15:16:09 UTC 2022


** Tags added: fr-2442

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to python3.10 in Ubuntu.
https://bugs.launchpad.net/bugs/1976299

Title:
  hashlib.algorithms_available lists algorithms that cannot be used

Status in Python3:
  Unknown
Status in python-ecdsa package in Ubuntu:
  Invalid
Status in python3.10 package in Ubuntu:
  Confirmed
Status in python-ecdsa source package in Jammy:
  Invalid
Status in python3.10 source package in Jammy:
  Confirmed
Status in python-ecdsa source package in Kinetic:
  Invalid
Status in python3.10 source package in Kinetic:
  Confirmed
Status in python-ecdsa package in Debian:
  Unknown

Bug description:
  Ubuntu 22.10
  python-ecdsa 0.18.0~b1-1

  ==================================== ERRORS ====================================
  _ ERROR collecting .pybuild/cpython3_3.10_ecdsa/build/ecdsa/test_malformed_sigs.py _
  /usr/lib/python3.10/hashlib.py:160: in __hash_new
      return _hashlib.new(name, data, **kwargs)
  E   ValueError: [digital envelope routines] unsupported

  During handling of the above exception, another exception occurred:
  ecdsa/test_malformed_sigs.py:42: in <module>
      hash_and_size = [
  ecdsa/test_malformed_sigs.py:43: in <listcomp>
      (name, hashlib.new(name).digest_size) for name in algorithms_available
  /usr/lib/python3.10/hashlib.py:166: in __hash_new
      return __get_builtin_constructor(name)(data)
  /usr/lib/python3.10/hashlib.py:123: in __get_builtin_constructor
      raise ValueError('unsupported hash type ' + name)
  E   ValueError: unsupported hash type whirlpool
  =========================== short test summary info ============================
  ERROR ecdsa/test_malformed_sigs.py - ValueError: unsupported hash type whirlpool
  !!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
  =============================== 1 error in 1.25s ===============================
  E: pybuild pybuild:369: test: plugin distutils failed with: exit code=2: cd '/home/ubuntu/x/python-ecdsa-0.18.0~b1/.pybuild/cpython3_3.10_ecdsa/build'; python3.10 -m pytest 
  dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p 3.10 returned exit code 13
  make: *** [debian/rules:6: binary] Error 25
  dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2

To manage notifications about this bug go to:
https://bugs.launchpad.net/python3/+bug/1976299/+subscriptions




More information about the foundations-bugs mailing list