Open1
python3 troubles on archlinux/manjarolinux
python2.7 hashlib * was not found
$ python2.7 -mhashlib
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type md5
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha1
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha224
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha256
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha384
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 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
check libraries
$ pacman -Ql python2 | fgrep hashlib
python2 /usr/lib/python2.7/hashlib.py
python2 /usr/lib/python2.7/hashlib.pyc
python2 /usr/lib/python2.7/hashlib.pyo
python2 /usr/lib/python2.7/lib-dynload/_hashlib.so
python2 /usr/lib/python2.7/test/test_hashlib.py
python2 /usr/lib/python2.7/test/test_hashlib.pyc
python2 /usr/lib/python2.7/test/test_hashlib.pyo
python2 /usr/lib/python2.7/test/time_hashlib.py
python2 /usr/lib/python2.7/test/time_hashlib.pyc
python2 /usr/lib/python2.7/test/time_hashlib.pyo
who load it.
$ ldd /usr/lib/python2.7/lib-dynload/_hashlib.so
linux-vdso.so.1 (0x00007ffe4fed5000)
libcrypto.so.1.1 => not found
libpython2.7.so.1.0 => /usr/lib/libpython2.7.so.1.0 (0x00007f7164d05000)
libc.so.6 => /usr/lib/libc.so.6 (0x00007f7164b1e000)
libpthread.so.0 => /usr/lib/libpthread.so.0 (0x00007f7164b19000)
libdl.so.2 => /usr/lib/libdl.so.2 (0x00007f7164b14000)
libutil.so.1 => /usr/lib/libutil.so.1 (0x00007f7164b0f000)
libm.so.6 => /usr/lib/libm.so.6 (0x00007f7164a25000)
/usr/lib64/ld-linux-x86-64.so.2 (0x00007f7164f41000)
libcrypto.so.1.1 => not found
on archlinux packages.
$ pacman -Ql | grep -F libcrypto
openssl /usr/lib/libcrypto.so
openssl /usr/lib/libcrypto.so.3
openssl /usr/lib/pkgconfig/libcrypto.pc
openssl /usr/lib/libcrypto.so.3
archlinux announcement.
Arch Linux - News: Removing python2 from the repositories
on AUR
yay -S python2
$ python2 -mhashlib
$