AIX Open Source

 View Only
  • 1.  Not able to update latest python package in AIX

    Posted Tue August 06, 2024 03:30 AM

    Hi Team,

    I am getting error when we are trying to update packages. Please suggest.

     /opt/freeware/bin/dnf update -y 
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 57, in <module>
        from dnf.cli import main
      File "/opt/freeware/lib/python3.9/site-packages/dnf/__init__.py", line 32, in <module>
        import dnf.base
      File "/opt/freeware/lib/python3.9/site-packages/dnf/base.py", line 29, in <module>
        import libdnf.transaction
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/__init__.py", line 3, in <module>
        from . import common_types
      File "/opt/freeware/lib/python3.9/site-packages/libdnf/common_types.py", line 13, in <module>
        from . import _common_types
    ImportError: Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /software/syncsort/lib/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.
    Could not load module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so.
            Dependent module /opt/freeware/lib/python3.9/site-packages/libdnf/_common_types.so could not be loaded



    ------------------------------
    Manoj Kumar
    ------------------------------


  • 2.  RE: Not able to update latest python package in AIX

    Posted Tue August 06, 2024 05:28 AM

    Hi

    Dependent module /software/syncsort/lib/libgcc_s.a(shr.o) could not be loaded.
            The module has an invalid magic number.

    How did you install this file /software/syncsort/lib/libgcc_s.a?





    Thanks
    Ranjit



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 3.  RE: Not able to update latest python package in AIX

    Posted Tue August 06, 2024 06:54 AM

    The syncsort software is used by application team and they used it. so it might have been installed during syncsort installation.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 4.  RE: Not able to update latest python package in AIX

    Posted Tue August 06, 2024 11:36 AM

    Hi

    I am suspecting that some LIBPATH is exported in your system environment and because of this, libgcc_s.a is picked from /software/syncsort/lib/.
    But this library is not compatible with dnf.

    Can you check and unset LIBPATH if some value is set ?After unsetting the LIBPATH, try to update the package. 


    Thanks

    Ranjit



    ------------------------------
    Ranjit Ranjan
    ------------------------------



  • 5.  RE: Not able to update latest python package in AIX

    Posted Wed August 07, 2024 04:34 AM

    Hi,

    I had this issue at a previous company for which I worked that used syncsort (this is not opensource, it's a product from Precisely) as part of their application.  As Ranjit has said, it's LIBPATH.  You'll need to remove /software/syncsort/lib/ from root's LIBPATH, but it will need to remain in the LIBPATH of the syncsort users or they won't be able to run syncsort.

    The other thing that you may need to look at, is that any user that wants to use /opt/freeware/bin/python3.9 and syncsort (most likely a developer, not end user) will have to change their LIBPATH as appropriate for the software that they wish to run.

    Phill.



    ------------------------------
    Phill Rowbottom
    ------------------------------



  • 6.  RE: Not able to update latest python package in AIX

    Posted Tue August 13, 2024 08:52 AM

    Thank you Ranjit and Phil. 

    We have unset the LIBPATH and then try to update and it works. Synsort used to run with root. So haven't removed from LIBPATH environment.



    ------------------------------
    Manoj Kumar
    ------------------------------



  • 7.  RE: Not able to update latest python package in AIX

    IBM Champion
    Posted Tue August 13, 2024 10:33 AM
    Maybe moving the LIBPATH setting into the script that starts syncsort is a good idea. In general you don't want system-wide settings for LIBPATH.
     
    -- 
    Stephen L. Ulmer
    Enterprise Architect
    Mainline Information Systems




    This e-mail and files transmitted with it are confidential, and are intended solely for the use of the individual or entity to whom this e-mail is addressed. If you are not the intended recipient, or the employee or agent responsible to deliver it to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you are not one of the named recipient(s) or otherwise have reason to believe that you received this message in error, please immediately notify sender by e-mail, and destroy the original message.