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

Launchpad Bug Tracker 1976299 at bugs.launchpad.net
Thu Sep 15 15:42:22 UTC 2022


You have been subscribed to a public bug by Matthieu Clemenceau (mclemenceau):

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

** Affects: python3
     Importance: Unknown
         Status: Unknown

** Affects: python-ecdsa (Ubuntu)
     Importance: Undecided
         Status: Invalid

** Affects: python3.10 (Ubuntu)
     Importance: Undecided
         Status: Fix Released

** Affects: python-ecdsa (Ubuntu Jammy)
     Importance: Undecided
         Status: Invalid

** Affects: python3.10 (Ubuntu Jammy)
     Importance: Undecided
         Status: Confirmed

** Affects: python-ecdsa (Ubuntu Kinetic)
     Importance: Undecided
         Status: Invalid

** Affects: python3.10 (Ubuntu Kinetic)
     Importance: Undecided
         Status: Fix Released

** Affects: python-ecdsa (Debian)
     Importance: Unknown
         Status: Fix Released


** Tags: foundations-todo fr-2442 ftbfs transition-openssl3-jj
-- 
hashlib.algorithms_available lists algorithms that cannot be used
https://bugs.launchpad.net/bugs/1976299
You received this bug notification because you are a member of Ubuntu Foundations Bugs, which is subscribed to the bug report.



More information about the foundations-bugs mailing list