Originally posted by: Teej42
When using pip, or trying to install packages, I am getting the following error message:
$ pip
ERROR:root:code for hash md5 was not found.
Traceback (most recent call last):
File "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/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 "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/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 "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/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 "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/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 "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/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 "/opt/freeware/lib/python2.7/hashlib.py", line 147, in <module>
globals()[__func_name] = __get_hash(__func_name)
File "/opt/freeware/lib/python2.7/hashlib.py", line 97, in __get_builtin_constructor
raise ValueError('unsupported hash type ' + name)
ValueError: unsupported hash type sha512
Traceback (most recent call last):
File "/usr/bin/pip", line 9, in <module>
load_entry_point('pip==10.0.1', 'console_scripts', 'pip')()
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 378, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 2566, in load_entry_point
return ep.load()
File "/opt/freeware/lib/python2.7/site-packages/pkg_resources.py", line 2260, in load
entry = __import__(self.module_name, globals(),globals(), ['__name__'])
File "/opt/freeware/lib/python2.7/site-packages/pip/_internal/__init__.py", line 20, in <module>
from pip._vendor.urllib3.exceptions import DependencyWarning
File "/opt/freeware/lib/python2.7/site-packages/pip/_vendor/urllib3/__init__.py", line 8, in <module>
from .connectionpool import (
File "/opt/freeware/lib/python2.7/site-packages/pip/_vendor/urllib3/connectionpool.py", line 29, in <module>
from .connection import (
File "/opt/freeware/lib/python2.7/site-packages/pip/_vendor/urllib3/connection.py", line 39, in <module>
from .util.ssl_ import (
File "/opt/freeware/lib/python2.7/site-packages/pip/_vendor/urllib3/util/__init__.py", line 6, in <module>
from .ssl_ import (
File "/opt/freeware/lib/python2.7/site-packages/pip/_vendor/urllib3/util/ssl_.py", line 7, in <module>
from hashlib import md5, sha1, sha256
ImportError: cannot import name md5
This is my current installation:
$ sudo rpm -qa
TWeagent-8.6.0.1-0.ppc
conserver-8.1.7-2.ppc
gnutls-2.12.20-1.ppc
libgcrypt-1.5.0-1.ppc
libgpg-error-1.10-3.ppc
libiconv-1.14-2.ppc
libtasn1-3.3-1.ppc
lzo-2.06-2.ppc
nettle-2.7-2.ppc
p11-kit-0.14-2.ppc
pkg-config-0.25-3.ppc
rsync-3.0.6-1.ppc
teagent-realtime-0.9-1.ppc
wget-1.9.1-1.ppc
libffi-3.2.1-1.ppc
libgcc-6.3.0-1.ppc
mpfr-3.1.2-3.ppc
gcc-cpp-6.3.0-1.ppc
libstdc++-devel-6.3.0-1.ppc
gcc-gfortran-6.3.0-1.ppc
bzip2-1.0.6-2.ppc
expat-2.2.4-1.ppc
glib2-2.56.1-2.ppc
ncurses-6.1-1.ppc
libgomp-6.3.0-1.ppc
xz-libs-5.2.3-1.ppc
zlib-1.2.11-1.ppc
lua-5.3.4-1.ppc
openldap-2.4.45-3.ppc
httpd-2.4.34-1.ppc
sqlite-3.23.0-1.ppc
readline-7.0-5.ppc
intltool-0.51.0-2.noarch
python-2.7.15-1.ppc
python-setuptools-0.9.8-2.noarch
python-pip-10.0.1-1.noarch
python-backports_abc-0.5-1.noarch
python-pyasn1-0.2.3-1.noarch
python-dateutil-2.6.0-1.noarch
python-xml-0.8.4-1.ppc
krb5-libs-1.16.1-2.ppc
python-passlib-1.7.1-1.noarch
curl-7.9.3-2.ppc
expect-5.42.1-3.ppc
gnutls-devel-2.12.20-1.ppc
libgcrypt-devel-1.5.0-1.ppc
libgpg-error-devel-1.10-3.ppc
libssh2-1.4.3-2.ppc
libtasn1-devel-3.3-1.ppc
lzo-devel-2.06-2.ppc
openCIMOM-0.8-1.noarch
openssl-1.0.1f-1.ppc
pci.df1000fa-1-191A5.noarch
tcl-8.4.7-3.ppc
tk-8.4.7-3.ppc
AIX-rpm-7.1.4.1-11.ppc
libffi-devel-3.2.1-1.ppc
gcc-6.3.0-1.ppc
libmpc-1.0.3-1.ppc
libstdc++-6.3.0-1.ppc
db-6.2.32-1.ppc
gdbm-1.12-1.ppc
gmp-6.1.2-1.ppc
info-6.3-1.ppc
gcc-c++-6.3.0-1.ppc
bash-4.4-3.ppc
libunistring-0.9.9-1.ppc
zlib-devel-1.2.11-1.ppc
libxml2-2.9.5-1.ppc
cyrus-sasl-2.1.26-3.ppc
pcre-8.33-1.ppc
mod_ssl-2.4.34-1.ppc
sqlite-doc-3.23.0-1.ppc
gettext-0.19.8.1-1.ppc
perl-5.28.0-1.ppc
python-docs-2.7.15-1.ppc
libxml2-python-2.9.5-1.ppc
python-babel-0.9.6-1.noarch
python-six-1.10.0-1.noarch
python-cryptography-1.8.1-1.noarch
python-decorator-4.1.2-1.noarch
python-pycrypto-2.6.1-1.ppc
krb5-pkinit-openssl-1.16.1-2.ppc
$ oslevel -s
7100-05-01-1731
$
I confirms that we got the latest Open SSL:
# lslpp -l | grep -i openssl
openssl.base 1.0.2.1100 COMMITTED Open Secure Socket Layer
openssl.license 1.0.2.1100 COMMITTED Open Secure Socket License
openssl.man.en_US 1.0.2.1100 COMMITTED Open Secure Socket Layer
openssl.base 1.0.2.1100 COMMITTED Open Secure Socket Layer
Please advise on what the resolution may be.
Thanks!
#AIXOpenSource#AIX-Open-Source-Software