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.  recently upgraded to AIX 7.3 - No module named _rpm

    Posted Thu July 06, 2023 12:13 PM

    We recently upgraded, and I noticed an issue with yum

     yum search zip
    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.18 (default, Dec 15 2022, 05:12:43) 
    [GCC 8.3.0]

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



    ------------------------------
    Vincenzo Giambalvo
    ------------------------------

    #AIXOpenSource


  • 2.  RE: recently upgraded to AIX 7.3 - No module named _rpm

    Posted Thu July 06, 2023 12:32 PM

    fyi - I tried to install DNF which failed.

    I removed these three rpms and then DNF was successful.

    rpm -e  libxml2-python3-2.10.3-1.ppc
    rpm -e ansible-2.9.25-1.noarch
    rpm -e python3-jmespath-0.9.4-1.noarch



    ------------------------------
    Vincenzo Giambalvo
    ------------------------------



  • 3.  RE: recently upgraded to AIX 7.3 - No module named _rpm

    Posted Fri July 07, 2023 04:04 AM

    Hi Vincenzo

    You have the error you seen while installing DNF ?



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



  • 4.  RE: recently upgraded to AIX 7.3 - No module named _rpm

    Posted Fri July 07, 2023 11:15 AM

    I was getting "No module named _rpm"  with yum, so I decided to try and upgrade to DNF. it was failing on a module not found or not compatible.   I don't have the exact message anymore.  It must have given me a hint on the module so I uninstalled these

    I removed these three rpms and then DNF was successful.

    rpm -e  libxml2-python3-2.10.3-1.ppc
    rpm -e ansible-2.9.25-1.noarch
    rpm -e python3-jmespath-0.9.4-1.noarch



    ------------------------------
    Vincenzo Giambalvo
    ------------------------------