Originally posted by: phue
Can't import ssl in python3.6
What could be the culprit?
Thanks for helping. Rgds Patrick
Python 3.6.6 (default, Jul 11 2018, 05:41:50)
[GCC 6.3.0] on aix6
Type "help", "copyright", "credits" or "license" for more information.
>>> import ssl
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/opt/freeware/lib64/python3.6/ssl.py", line 101, in <module>
import _ssl # if we can't import it, let the error propagate
ImportError: Could not load module /opt/freeware/lib64/python3.6/lib-dynload/_ssl.so.
Dependent module /opt/freeware/lib/libssl.a(libssl64.so) could not be loaded.
Member libssl64.so is not found in archive
Could not load module /opt/freeware/lib64/python3.6/lib-dynload/_ssl.so.
Dependent module /opt/freeware/lib64/python3.6/lib-dynload/_ssl.so could not be loaded.
>>> quit()
# rpm -qi openssl openssl-devel ncurses python3 gcc libgcc | grep "Build Host"
Install date: Fri Oct 5 14:45:12 2018 Build Host: aix51.perzl.org
Install date: Fri Oct 5 14:45:24 2018 Build Host: aix51.perzl.org
Install date: Tue Sep 4 11:10:11 2018 Build Host: pokndd5.pok.stglabs.ibm.com
Install date: Fri Oct 5 14:13:02 2018 Build Host: pokndd5.pok.stglabs.ibm.com
Install date: Fri Jul 27 08:38:51 2018 Build Host: aix72.perzl.org
Install date: Wed Jul 25 15:05:45 2018 Build Host: aix72.perzl.org
# rpm -q openssl openssl-devel ncurses python3 python3-devel gcc libgcc
openssl-1.0.2n-1
openssl-devel-1.0.2n-1
ncurses-6.1-1
python3-3.6.6-1
python3-devel-3.6.6-1
gcc-4.9.4-1
libgcc-4.9.4-1