Original Message:
Sent: Wed June 04, 2025 11:51 PM
From: Aditya Kamath
Subject: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.
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
Original Message:
Sent: Wed June 04, 2025 08:38 AM
From: Pravin More
Subject: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.
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
Original Message:
Sent: Wed June 04, 2025 01:51 AM
From: Aditya Kamath
Subject: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.
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
Original Message:
Sent: Tue June 03, 2025 09:55 AM
From: Pravin More
Subject: DNF / YUM is not working on AIX 7.2 machine, complaining about python libraries.
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
------------------------------