Problem importing one of the python modules required to run yum.
Heres my error:
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 /QOpenSys/pkgs/lib/python2.7/lib-dynload/fcntl.so.
0509-150 Dependent module /QOpenSys/usr/lib/libbsd.a(shr_64.o) could not be loaded.
0509-152 Member shr_64.o is not found in archive
0509-022 Cannot load module /QOpenSys/usr/lib/libbsd.a.
0509-021 Additional errors occurred but are not reported.
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.15 (default, Jul 10 2018, 11:37:16)
[GCC 6.3.0]
What I’ve done:
I installed Yum using the Offline Install Instructions without ACS. The two bootstrap files were transferred using Filiezilla in binary mode with the QSECOFR user profile. The QSH command was also ran using the QSECOFR. I received the comformation “exit status 0”
I temporarily set my path and use the command YUM LIST ALL which produces the error above. Using the command PYTHON2.7 --version shows python is on version Python 2.7.15.
Comments (9)
-
-
reporter Doesnt look to output anything, but I verified that the file was there.
\$
ar -X64 t /QOpenSys/usr/lib/libbsd.a
\$
-
Does
ar -X64 t /QOpenSys/usr/lib/libbsd.a
give anything? What doesls -l /QOpenSys/usr/lib/libbsd.a
show as well? -
reporter the first command doesnt return anything.
\$ ar -X64 t /QOpenSys/usr/lib/libbsd.a
\$ ls -l /QOpenSys/usr/lib/libbsd.a
lrwxrwxrwx 1 qsys 0 86 Oct 17 2012 /QOpenSys/usr/lib/libb sd.a -> ../../QIBM/ProdData/OS400/PASE/lib/libbsd.a
\$ -
reporter Heres some additional info I came across
\$
ls -l /usr/lib
lrwxrwxrwx 1 qsys 0 34 Oct 17 2012 /usr/lib -> /QOpenSys/usr/lib
\$
ls -l /usr/lib/libbsd.a
lrwxrwxrwx 1 qsys 0 86 Oct 17 2012 /usr/lib/libbsd.a -> ../../QIBM/ProdData/OS400/PASE/lib/libbsd.a
\$
find / -name libbsd.a
/QOpenSys/QIBM/ProdData/OS400/PASE/lib/libbsd.a
/QOpenSys/usr/lib/libbsd.a -
I think you may need to engage IBM support and talk to the PASE team for resolution (they may ask you to reinstall PASE).
However, given those dates, I am guessing you are running i 7.1, and are unlikely to have much fun without an upgrade. Please see https://www.ibmsystemsmag.com/Power-Systems/08/2019/RPMs-and-YUM-on-IBM-i-7-1
-
reporter I’m currently tied to 6.1. Ill give reinstalling a try.
-
Unfortunately, absolutely nothing from the IBM i RPM pile will work on 6.1.
-
- changed status to invalid
- Log in to comment
Can you give the output of
ar -X64 t /QOpenSys/usr/lib/libbsd.a
? I suspect your PASE environment is in a bad state.