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.  latest python package messes up yum...

    Posted Tue January 29, 2019 07:46 AM

    Originally posted by: ctremel


    this is a real mess, please fix asap.

     

    root@kug01123: /root # rpm -qi python
    Name        : python
    Version     : 2.7.15
    Release     : 3
    Architecture: ppc
    Install Date: Tue Jan 29 13:21:27 2019
    Group       : Development/Languages
    Size        : 85738810
    License     : Modified CNRI Open Source License
    Signature   : (none)
    Source RPM  : python-2.7.15-3.src.rpm
    Build Date  : Wed Jan  2 14:14:28 2019
    Build Host  : aixoss-automation-3.in.ibm.com
    Relocations : /opt/freeware

     

     

     /root # yum list installed
    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/yum", line 29, in <module>
        yummain.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/share/yum-cli/yummain.py", line 288, in user_main
        errcode = main(args)
      File "/opt/freeware/share/yum-cli/yummain.py", line 140, in main
        result, resultmsgs = base.doCommands()
      File "/opt/freeware/share/yum-cli/cli.py", line 440, in doCommands
        return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
      File "/opt/freeware/share/yum-cli/yumcommands.py", line 304, in doCommand
        ypl = base.returnPkgLists(extcmds, installed_available=highlight)
      File "/opt/freeware/share/yum-cli/cli.py", line 1006, in returnPkgLists
        ignore_case=True)
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 2319, in doPackageLists
        avail = self.pkgSack.returnNewestByNameArch(patterns=patterns,
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 900, in <lambda>
        pkgSack = property(fget=lambda self: self._getSacks(),
      File "/opt/freeware/lib/python2.7/site-packages/yum/__init__.py", line 681, in _getSacks
        self.repos.populateSack(which=repos)
      File "/opt/freeware/lib/python2.7/site-packages/yum/repos.py", line 294, in populateSack
        sack.populate(repo, mdtype, callback, cacheonly)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 164, in populate
        if self._check_db_version(repo, mydbtype):
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 222, in _check_db_version
        return repo._check_db_version(mdtype)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1264, in _check_db_version
        repoXML = self.repoXML
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1463, in <lambda>
        repoXML = property(fget=lambda self: self._getRepoXML(),
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1455, in _getRepoXML
        self._loadRepoXML(text=self)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1445, in _loadRepoXML
        return self._groupLoadRepoXML(text, self._mdpolicy2mdtypes())
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1420, in _groupLoadRepoXML
        if self._commonLoadRepoXML(text):
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1248, in _commonLoadRepoXML
        self._repoXML = self._parseRepoXML(result)
      File "/opt/freeware/lib/python2.7/site-packages/yum/yumRepo.py", line 1044, in _parseRepoXML
        return repoMDObject.RepoMD(self.id, local)
      File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 124, in __init__
        self.parse(srcfile)
      File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 139, in parse
        ignore_missing=True, ignore_none=True)
      File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 306, in __init__
        self.checksums = Checksums(checksums, ignore_missing, ignore_none)
      File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 242, in __init__
        sumalgo = hashlib.new(sumtype)
      File "/opt/freeware/lib/python2.7/hashlib.py", line 116, in __py_new
        return __get_builtin_constructor(name)(string)
      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

     



  • 2.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 08:24 AM


  • 3.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 08:32 AM

    Originally posted by: ctremel


    there is no openssl rpm package on this machine, just the lpp openssl. i'd like to think that your rpm stuff is backwards compatible to older openssl versions because depending on latest openssl would be ridicolous. i mean, who wants to upgrade the system openssl before every yum update?



  • 4.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 08:42 AM

    Originally posted by: AyappanP


    We have been linking to older openssl library for long time and we decided to move on to the newer supported library version. 

    At some point you have to make the switch. And it is always recommended to have the latest openssl lpp fileset in your machine. 

    Sorry for the inconvenience. 



  • 5.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 08:54 AM

    Originally posted by: AyappanP


    One more thing..

     If your machine don't have the corresponding library version in openssl library archive, rpm would not have allowed you to install python 2.7.15-3 in the first place.

    So something else is wrong with your environment. Please re-check whether you have any left over openssl libraries in /opt/freeware/lib from previous installations (openssl rpm installations).



  • 6.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 09:01 AM

    Originally posted by: ctremel


    could this be the culprit?

     

     /opt/freeware/lib # ls -l | grep ssl
    -rwxr-xr-x    1 root     system       368379 Dec 29 2008  libssl.so.0
    -rwxr-xr-x    1 root     system      3643037 Jul 14 2018  libssl3.a
    -rwxr-xr-x    1 root     system      1691166 Jul 14 2018  libssl3.so

     



  • 7.  Re: latest python package messes up yum...

    Posted Tue January 29, 2019 09:05 AM

    Originally posted by: AyappanP


    This one "libssl.so.0"  exactly.

    We never provide this file through any rpm in Toolbox. Please remove it and check.