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.  DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Tue June 03, 2025 11:30 AM

    Hi Team,
    I am getting python lib error after installing the dnf / yum using the dnf_aixtoolbox.sh script.

    bash-5.2# dnf

    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 27, in <module>

        from dnf.const import VERSION

      File "/opt/freeware/lib/python3.9/site-packages/dnf/const.py", line 22, in <module>

        import distutils.sysconfig

      File "/opt/freeware/lib/python3.9/site-packages/setuptools/_distutils/sysconfig.py", line 24, in <module>

        from .ccompiler import CCompiler

      File "/opt/freeware/lib/python3.9/site-packages/setuptools/_distutils/ccompiler.py", line 1, in <module>

        from .compat.numpy import (  # noqa: F401

      File "/opt/freeware/lib/python3.9/site-packages/setuptools/_distutils/compat/numpy.py", line 2, in <module>

        from ..compilers.C.base import _default_compilers, compiler_class  # noqa: F401

      File "/opt/freeware/lib/python3.9/site-packages/setuptools/_distutils/compilers/C/base.py", line 26, in <module>

        from ..._modified import newer_group

      File "/opt/freeware/lib/python3.9/site-packages/setuptools/_distutils/_modified.py", line 10, in <module>

        from jaraco.functools import splat

    ImportError: cannot import name 'splat' from 'jaraco.functools' (/opt/freeware/lib/python3.9/site-packages/jaraco/functools.py)

    bash-5.2#

    python --version

    Python 3.9.22


    I already have the LIBPATH unset, but it still complaining about  
    /opt/freeware/lib/python3.9/site-packages/setuptools/_distutils
    Can someone please help me on this?

     



    ------------------------------
    Pravin More
    ------------------------------

    #AIXOpenSource


  • 2.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Wed June 04, 2025 01:52 AM

    Hi,

    Can you tell me what version of Jaraco you have?

    # rpm -qa | grep jaraco

    What is the output of the above command?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 3.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Wed June 04, 2025 08:39 AM

    Thanks for your response Aditya.. 
    Here is the version details..

    $ rpm -qa | grep jaraco

    python3.9-jaraco.classes-3.1.0-2.noarch

    python3.9-jaraco.text-3.2.0-2.noarch

    python3.9-jaraco.functools-3.0.0-2.noarch

    python3.9-jaraco.collections-3.0.0-2.noarch

    $

     



    ------------------------------
    Pravin More
    ------------------------------



  • 4.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Wed June 04, 2025 11:52 PM
    Edited by Aditya Kamath Wed June 04, 2025 11:56 PM

    It looks like there is a need to upgrade jaraco.functools.

    In the mean time can you do,
    python3.9 -m pip install --no-cache-dir --upgrade jaraco.functools

    And then try dnf update?
    This will work.

    # python3
    Python 3.9.22 (main, May  5 2025, 07:00:37) 
    [GCC 10.3.0] on aix
    Type "help", "copyright", "credits" or "license" for more information.
    >>> from jaraco.functools import splat
    >>> 

    We will take care of this issue .



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 5.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Thu June 05, 2025 01:27 AM

    Looks like after upgrading the jaraco.functools the yum & dnf started working. 



    ------------------------------
    Pravin More
    ------------------------------



  • 6.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Thu June 05, 2025 12:50 AM

    One more thing I want to understand is what is the output of rpm -qa | grep setuptools

    Can you also paste me the output of this?



    ------------------------------
    Aditya Kamath
    ------------------------------



  • 7.  RE: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.

    Posted Thu June 05, 2025 01:25 AM

    bash-5.2# rpm -qa | grep setuptools

    python3.9-setuptools-72.1.0-1.noarch

    python3.9-setuptools-rust-0.12.1-2.noarch

    bash-5.2#



    ------------------------------
    Pravin More
    ------------------------------