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.  Yum fails after python updated to 2.7.15-1

    Posted Thu September 13, 2018 07:45 PM

    Originally posted by: captain AM


    Installed all the packages required for yum using the yum.sh script found on the AIX Toolbox for Linux Applications site.  OS is at AIX 7.1.  Yum successfully installed & ran ok with python as delivered at 2.7.10-1.   But after  "yum install samba" was successfully installed (which updated python to 2.7.15-1) I get following errors if I run "yum check-update" or other yum commands.  "yum check" works ok - no errors. 

    File "/opt/freeware/lib/python2.7/site-packages/yum/repoMDObject.py", line 140, in parse

    parser = iterparse(infile)

    File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1171, in cElementTree_iterparse

    _cElementTree_import()

    File "/opt/freeware/lib/python2.7/site-packages/yum/misc.py", line 1166, in _cElementTree_import

    import cElementTree

    ImportError: No module named cElementTree

     

    Yet if I query the rpm that supplies cElementTree I see this module : ( and see it installed at location as listed )

    > rpm -ql -p python-2.7.10-1.aix6.1.ppc.rpm|grep cElementTree

    /opt/freeware/lib/python2.7/xml/etree/cElementTree.py

    /opt/freeware/lib/python2.7/xml/etree/cElementTree.pyc

    /opt/freeware/lib/python2.7/xml/etree/cElementTree.pyo

    /opt/freeware/lib64/python2.7/xml/etree/cElementTree.py

    /opt/freeware/lib64/python2.7/xml/etree/cElementTree.pyc

    /opt/freeware/lib64/python2.7/xml/etree/cElementTree.pyo

     

     



  • 2.  Re: Yum fails after python updated to 2.7.15-1

    Posted Thu September 13, 2018 09:17 PM

    Originally posted by: KiloBravo


    Check to see which version of expat is on that box.  If it's 2.0.x you've hit a bug resulting from bad dependency checking in the python package, as you need at least 2.2.0 for things to work right.

    If this is the case you'll need to manually grab one of these two packages

    and install it with 'rpm -Uvh'.

     

     

     



  • 3.  Re: Yum fails after python updated to 2.7.15-1

    Posted Fri September 14, 2018 07:58 AM

    Originally posted by: AyappanP


    As mentioned by @KiloBravo a4e6ca95-74e3-4369-a821-985379c65f99 , updating expat to 2.2.0 or above will fix this issue.

    I mentioned the root cause of this issue in one earlier forum discussion --> https://www.ibm.com/developerworks/community/forums/html/topic?id=961114f0-2c4a-4dff-8d88-f629a0172796&ps=25



  • 4.  Re: Yum fails after python updated to 2.7.15-1

    Posted Fri September 14, 2018 10:30 AM

    Originally posted by: captain AM


    Eureka!  that did the trick!     Downloaded and did a rpm -Uvh install of expat-2.2.4-1.aix6.1.ppc.rpm and yum is alive and well.

    thanks for the help.