Open Source Development

Power Open Source Development

Explore the open source tools and capabilities for building and deploying modern applications on IBM Power platforms including AIX, IBM i, and Linux.


#Power


#Power

 View Only
  • 1.  YUM error: No module named rpm

    Posted Fri July 22, 2022 11:47 AM
    This is what I got when run YUM command:

    [root@root]# yum
    There was a problem importing one of the Python modules
    required to run yum. The error leading to this problem was:

    No module named rpm

    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.10 (default, Jun 22 2016, 05:57:59) [C]

    If you cannot solve this problem yourself, please go to
    the yum faq at:
    http://yum.baseurl.org/wiki/Faq

    ------------------------------
    Victor Liu
    ------------------------------

    #AIXOpenSource


  • 2.  RE: YUM error: No module named rpm

    Posted Tue July 26, 2022 01:31 AM
    Hi Victor,

    I hope you are on AIX 7.1/7.2 and not on AIX 7.3.

    Please check if you have this correct link.
    /usr/opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so -> /usr/opt/rpm/lib/python2.7/site-packages/rpm/_rpm.so

    ------------------------------
    SANGAMESH
    ------------------------------