FS#53498 - [openssl-1.0] [python2] Hashlib fails with openssl-1.0 and 1.1
Attached to Project:
Arch Linux
Opened by jayki (jayki) - Wednesday, 29 March 2017, 16:04 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 31 March 2017, 14:16 GMT
Opened by jayki (jayki) - Wednesday, 29 March 2017, 16:04 GMT
Last edited by Doug Newgard (Scimmia) - Friday, 31 March 2017, 14:16 GMT
|
Details
Description:
After openssl1.1 was moved to testing and openssl1.0 was moved to a different folder, Python2.7 hashlib fails every time. 15:51:08.570 T:140451495646976 ERROR: ERROR:root:code for hash md5 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type md5 15:51:08.570 T:140451495646976 DEBUG: . 15:51:08.571 T:140451495646976 ERROR: ERROR:root:code for hash sha1 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha1 15:51:08.571 T:140451495646976 DEBUG: . 15:51:08.572 T:140451495646976 ERROR: ERROR:root:code for hash sha224 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha224 15:51:08.572 T:140451495646976 DEBUG: . 15:51:08.572 T:140451495646976 ERROR: ERROR:root:code for hash sha256 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha256 15:51:08.572 T:140451495646976 DEBUG: . 15:51:08.573 T:140451495646976 ERROR: ERROR:root:code for hash sha384 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha384 15:51:08.573 T:140451495646976 DEBUG: . 15:51:08.573 T:140451495646976 ERROR: ERROR:root:code for hash sha512 was not found. Traceback (most recent call last): File "/usr/lib/python2.7/hashlib.py", line 147, in <module> globals()[__func_name] = __get_hash(__func_name) File "/usr/lib/python2.7/hashlib.py", line 109, in __get_openssl_constructor return __get_builtin_constructor(name) File "/usr/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor raise ValueError('unsupported hash type ' + name) ValueError: unsupported hash type sha512 Additional info: * package version(s)python2.7.13-2 openssl1.1.0.e-1 openssl-1.0.2k-2 * config and/or log files etc. Steps to reproduce: |
This task depends upon
Closed by Doug Newgard (Scimmia)
Friday, 31 March 2017, 14:16 GMT
Reason for closing: Not a bug
Additional comments about closing: User requested: Works fine after complete deinstall python2, removing every python2 file on filesystem and reinstall.. Don't know why this didn't worked the first time i tried this. Thanks you anyway for looking in this.
Friday, 31 March 2017, 14:16 GMT
Reason for closing: Not a bug
Additional comments about closing: User requested: Works fine after complete deinstall python2, removing every python2 file on filesystem and reinstall.. Don't know why this didn't worked the first time i tried this. Thanks you anyway for looking in this.
Comment by Jan de Groot (JGC) -
Friday, 31 March 2017, 12:04 GMT
I can't reproduce your problem. Python 2.7.13-2 has been linked
against OpenSSL 1.1 and checking the _hashlib.so file no
unresolved symbols are reported. Executing functions from hashlib
also doesn't print any errors or warnings here.