Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Description of problem:
The RIPEMD160 hash is no longer available in python 2.7.5-34.el7. Trying to create an instance results in a ValueError: unsupported hash type. The previous release of python for EL7, python 2.7.5-16.el7, successfully created an instance of RIPEMD160.
Version-Release number of selected component (if applicable):
python 2.7.5-34.el7
How reproducible:
Always with 2.7.5-34.el7.
Steps to Reproduce:
1. Run python
2. import hashlib
3. r = hashlib.new('ripemd160')
Actual results:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/lib64/python2.7/hashlib.py", line 111, in __hash_new
return _hashlib.new(name, string, usedforsecurity)
ValueError: unsupported hash type
Expected results:
In prior release of python package, the same statements do not cause a ValueError exception, and the "r" variable is a usable instance of the RIPEMD160 hash.
Additional info:
Comment 2Charalampos Stratakis
2016-03-10 16:31:33 UTC
Duplicate.
*** This bug has been marked as a duplicate of bug 1295459 ***
I have the same problem and bug 1295459 does not apply for me:
Traceback (most recent call last):
File "keys.py", line 18, in <module>
ripemd160 = hashlib.new('ripemd160')
File "build/bdist.linux-x86_64/egg/hashlib.py", line 87, in __py_new
elif name in ('SHA512', 'sha512', 'SHA384', 'sha384'):
File "build/bdist.linux-x86_64/egg/hashlib.py", line 80, in __get_builtin_constructor
elif name in ('SHA256', 'sha256', 'SHA224', 'sha224'):
ValueError: unsupported hash type
Python 2.7.12 (default, Jul 1 2016, 15:12:24)
[GCC 5.4.0 20160609] on linux2
No solution on the entire web, you will be a hero.
Thanks!
Comment 4Petr Viktorin (pviktori)
2016-09-05 08:12:08 UTC
Harris, could you check the patch in bug #1295459 fixes this?
Comment 5Charalampos Stratakis
2016-09-05 08:53:41 UTC
(In reply to Petr Viktorin from comment #4)
> Harris, could you check the patch in bug #1295459 fixes this?
(In reply to Kiltro from comment #3)
> I have the same problem and bug 1295459 does not apply for me:
I just verified the reproducer and the patch does fix the issue.
Description of problem: The RIPEMD160 hash is no longer available in python 2.7.5-34.el7. Trying to create an instance results in a ValueError: unsupported hash type. The previous release of python for EL7, python 2.7.5-16.el7, successfully created an instance of RIPEMD160. Version-Release number of selected component (if applicable): python 2.7.5-34.el7 How reproducible: Always with 2.7.5-34.el7. Steps to Reproduce: 1. Run python 2. import hashlib 3. r = hashlib.new('ripemd160') Actual results: Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/lib64/python2.7/hashlib.py", line 111, in __hash_new return _hashlib.new(name, string, usedforsecurity) ValueError: unsupported hash type Expected results: In prior release of python package, the same statements do not cause a ValueError exception, and the "r" variable is a usable instance of the RIPEMD160 hash. Additional info: