AIX

AIX

Connect with fellow AIX users and experts to gain knowledge, share insights, and solve problems.

 View Only
  • 1.  Issue with yum on AIX after updating python

    Posted Tue September 01, 2020 08:50 PM

    My system is running fine and yum works fine till I update python. As soon as I update python to 2.7.18-1 (from 2.7.10-1)

    # rpm -qa | grep py

    pysqlite-1.1.7-2.ppc

    python-pycurl-7.19.3-1.ppc

    python-tools-2.7.10-1.ppc

    python-2.7.10-1.ppc

    python-iniparse-0.4-1.noarch

    python-urlgrabber-3.10.1-1.noarch

    python-devel-2.7.10-1.ppc

    # lslpp -l | grep rpm

    rpm.rte 4.15.1.0 COMMITTED RPM Package Manager

    rpm.rte 4.15.1.0 COMMITTED RPM Package Manager

    # rpm -qa | grep rpm

    AIX-rpm-7.2.4.1-6.ppc

    # oslevel -s

    7200-04-02-2028

    NOW I UPDATE PYTHON

    yum update python

    Updating:

    python ppc 2.7.18-1 AIX_Toolbox 21 M

    Updating for dependencies:

    python-devel ppc 2.7.18-1 AIX_Toolbox 16 k

    python-tools ppc 2.7.18-1 AIX_Toolbox 16 k

    The update goes on fine but from then on yum fails as follows:

    Any ideas?

    openssl is not installed as an rpm

    # lslpp -l | grep ssl

    openssl.base 1.0.2.2100 COMMITTED Open Secure Socket Layer

    openssl.license 1.0.2.2100 COMMITTED Open Secure Socket License

    openssl.man.en_US 1.0.2.2100 COMMITTED Open Secure Socket Layer

    openssl.base 1.0.2.2100 COMMITTED Open Secure Socket Layer

    # yum check

    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

    There was a problem importing one of the Python modules

    required to run yum. The error leading to this problem was:

    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.

    0509-150 Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.

    0509-152 Member libcrypto.so is not found in archive

    0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.

    0509-150 Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.

    Please install a package which provides this module, or

    verify that the module is installed correctly.

    It's possible that the above module doesn't match the

    current version of Python, which is:

    2.7.18 (default, May 4 2020, 03:46:51)

    [GCC 8.3.0]



    #AIX
    #Support
    #SupportMigration


  • 2.  RE: Issue with yum on AIX after updating python

    Posted Fri November 27, 2020 10:08 PM

    Having similar issue,

    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

    There was a problem importing one of the Python modules

    required to run yum. The error leading to this problem was:

    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.

    Dependent module /opt/freeware/lib/libcrypto.a(libcrypto.so) could not be loaded.

    Member libcrypto.so is not found in archive

    Could not load module /opt/freeware/lib/python2.7/site-packages/pycurl.so.

    Dependent module /opt/freeware/lib/python2.7/site-packages/pycurl.so could not be loaded.



    #AIX
    #Support
    #SupportMigration


  • 3.  RE: Issue with yum on AIX after updating python

    Posted Fri July 02, 2021 05:06 PM

    hello ... please ¿ how correct this problem ..

    it is not clear to understand the problem and solve it .. do you have a guide on how you managed it .. please can share it .. thank you



    #AIX
    #Support
    #SupportMigration


  • 4.  RE: Issue with yum on AIX after updating python

    Posted Fri July 02, 2021 06:08 PM

    I would also like to know the fix, if you found one, as some of my systems have this issue after an update through yum and others don't. I can't figure out the difference on why some and not others.



    #AIX
    #Support
    #SupportMigration


  • 5.  RE: Issue with yum on AIX after updating python

    Posted Sun October 03, 2021 06:19 PM

    yup, exactly the same issue, after update python broke



    #AIX
    #Support
    #SupportMigration


  • 6.  RE: Issue with yum on AIX after updating python

    Posted Tue February 22, 2022 04:57 PM

    Hello,

    it is very old, but perhaps it helps for others...


    There was a missing link to /usr/lib/libcrypto.a.


    root:/usr/lib# ls -la /usr/lib/libcrypto.a

    -r-xr-xr-x  1 root   system   34322923 12 Jun 2020 /usr/lib/libcrypto.a

    root:/usr/lib# ls -la /opt/freeware/lib/libcrypto.a

    -rw-r--r--  1 root   system   23146906 29 Jan 2015 /opt/freeware/lib/libcrypto.a

    root:/usr/lib# cp -p /opt/freeware/lib/libcrypto.a /opt/freeware/lib/libcrypto.a.old

    root:/usr/lib# ln -s /usr/lib/libcrypto.a /opt/freeware/lib/libcrypto.a

    ln: 0653-421 /opt/freeware/lib/libcrypto.a exists.

      Specify -f to remove /opt/freeware/lib/libcrypto.a before linking.

    root:/usr/lib# ln -sf /usr/lib/libcrypto.a /opt/freeware/lib/libcrypto.a

    root:/usr/lib# ls -la /usr/lib/libcrypto.a

    -r-xr-xr-x  1 root   system   34322923 12 Jun 2020 /usr/lib/libcrypto.a

    root:/usr/lib# ls -la /opt/freeware/lib/libcrypto.a

    lrwxrwxrwx  1 root   system      20 22 Feb 16:41 /opt/freeware/lib/libcrypto.a -> /usr/lib/libcrypto.a


    root:/usr/lib# python

    Python 2.7.13 (default, Oct 17 2017, 05:34:36) [C] on aix6

    Type "help", "copyright", "credits" or "license" for more information.

    >>> import hashlib

    >>>

    root:/usr/lib#


    I also checked the links here:

    Original:

    root:/opt/freeware/bin# ls -la|grep python

    lrwxrwxrwx  1 root   system      7 22 Feb 15:45 python -> python2

    lrwxrwxrwx  1 root   system      14 22 Feb 15:45 python-config -> python2-config


    Corrected:

    root:/opt/freeware/bin# ls -la|grep python

    lrwxrwxrwx  1 root   system      9 22 Feb 16:07 python -> python_64

    lrwxrwxrwx  1 root   system      16 22 Feb 16:09 python-config -> python_64-config



    #AIX
    #Support
    #SupportMigration