Here is the version of salt and python that are installed on the server.
[root@aixsbx1][/]rpm -qa | grep salt
salt-minion-3004.2-1.noarch
salt-3004.2-1.noarch
[root@aixsbx1][/]rpm -qa | grep python
python-iniparse-0.4-1.noarch
python-urlgrabber-3.10.1-1.noarch
python-devel-2.7.16-1.ppc
python-backports_abc-0.5-1.noarch
python-singledispatch-3.4.0.3-1.noarch
python-six-1.10.0-1.noarch
python-pytest-3.1.3-1.noarch
python-markupsafe-1.0-1.ppc
python-tornado-4.5.1-1.ppc
python-pip-10.0.1-1.noarch
python3-six-1.13.0-1.noarch
python3-dnf-plugins-core-4.0.16-32_50.ppc
python3-gpgme-1.13.1-64_1.ppc
python3-libcomps-0.1.11-64_1.ppc
python3-jinja2-2.10.3-1.noarch
python3-tornado-4.5.3-1.ppc
python3-pycryptodomex-3.10.1-1.ppc
python3-msgpack-0.6.2-1.ppc
python3-idna-2.8-1.noarch
python3-chardet-3.0.4-1.noarch
python3-requests-2.27.1-1.noarch
python-pycurl-7.19.3-1.ppc
python-2.7.16-1.ppc
python-tools-2.7.16-1.ppc
python-futures-3.0.5-1.noarch
python-PyYAML-3.11-1.ppc
python-pycrypto-2.6.1-1.ppc
python-jinja2-2.9.6-2.noarch
python-cherrypy-10.2.0-1.noarch
python-msgpack-0.4.8-1.ppc
python-requests-2.4.3-1.noarch
python-setuptools-0.9.8-2.noarch
python3-3.7.9-0.ppc
python3-dateutil-2.8.0-1.noarch
python3-dnf-plugin-versionlock-4.0.16-32_50.ppc
rpm-python3-4.15.1-64_2.ppc
python3-libdnf-0.39.1-64_3.ppc
python3-hawkey-0.39.1-64_3.ppc
python3-dnf-4.2.17-64_4.noarch
python3-librepo-1.11.0-64_1.ppc
python3-markupsafe-1.1.1-1.ppc
python3-pyzmq-18.1.1-1.ppc
python3-pyyaml-5.3.1-1.ppc
python3-psutil-5.9.0-1.ppc
python3-urllib3-1.26.7-1.noarch
python3-distro-1.5.0-1.noarch
python3-certifi-2019.9.11-1.noarch
python-pyzmq-16.0.2-2.ppc
------------------------------
Ken Foster
------------------------------
Original Message:
Sent: Mon November 14, 2022 10:30 AM
From: Ken Foster
Subject: Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'
Hello,
Can anyone tell me where I can get 'pkg_resources' that is being called by the salt script?
This server was migrated from AIX 7.2 to AIX 7.3
The salt-minion install works perfectly on AIX 7.2 but when i try it on AIX 7.3 i am getting the following after the install.
/opt/freeware/bin/python3.7m /usr/bin/salt-minion
Traceback (most recent call last):
File "/usr/bin/salt-minion", line 6, in <module>
from pkg_resources import load_entry_point
ModuleNotFoundError: No module named 'pkg_resources'
[root@aixsbx1][/]cat /usr/bin/salt-minion
#!/opt/freeware/bin/python3.7m
# EASY-INSTALL-ENTRY-SCRIPT: 'salt==3004.2','console_scripts','salt-minion'
__requires__ = 'salt==3004.2'
import re
import sys
from pkg_resources import load_entry_point
if __name__ == '__main__':
sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0])
sys.exit(
load_entry_point('salt==3004.2', 'console_scripts', 'salt-minion')()
)
------------------------------
Ken Foster
------------------------------