Problem importing one of the python modules required to run yum.

Issue #85 invalid
Ayden Butera created an issue

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)

  1. Kevin Adler

    Can you give the output of ar -X64 t /QOpenSys/usr/lib/libbsd.a? I suspect your PASE environment is in a bad state.

  2. Ayden Butera reporter

    Doesnt look to output anything, but I verified that the file was there.

    \$
    ar -X64 t /QOpenSys/usr/lib/libbsd.a
    \$

  3. Kevin Adler

    Does ar -X64 t /QOpenSys/usr/lib/libbsd.a give anything? What does ls -l /QOpenSys/usr/lib/libbsd.a show as well?

  4. Ayden Butera 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
    \$

  5. Ayden Butera 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

  6. Log in to comment