AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
  • 1.  python3.6 import ssl fails

    Posted Fri October 05, 2018 03:22 PM

    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



  • 2.  Re: python3.6 import ssl fails

    Posted Mon October 08, 2018 03:28 AM

    Originally posted by: AyappanP


    Please remove the openssl rpms and try again.



  • 3.  Re: python3.6 import ssl fails

    Posted Mon October 08, 2018 04:02 AM

    Originally posted by: phue


    problem solved after removing the openssl rpms. Seems to be done twice.

     

    #/usr/bin/python3.6 -c "import ssl; print(ssl.OPENSSL_VERSION)"
    OpenSSL 1.0.2o  27 Mar 2018

    Thanks for your support. Rgds Patrick