Hi,
I tried to upgrade python3 using yum install python3 command and after that getting below error.
python 2.7.18 and python 3.6.6 was alsready installed in system. But client requirement was to upgrade it to 3.7.9.
So whatever I am running now getting below error everytime. Please suggest.
root@server:/opt/freeware/etc/yum # yum list python3
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/rpm/_rpm.so.
0509-150 Dependent module libdb.so could not be loaded.
0509-022 Cannot load module libdb.so.
0509-026 System error: A file or directory in the path name does not exist.
0509-022 Cannot load module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.so.
0509-150 Dependent module /opt/freeware/lib/python2.7/site-packages/rpm/_rpm.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 12 2021, 08:45:42)
[GCC 8.3.0]
If you cannot solve this problem yourself, please go to
the yum faq at:
http://yum.baseurl.org/wiki/FaqThanks
------------------------------
Priya Soni
------------------------------
#AIXOpenSource