AIX Open Source

AIX Open Source

Share your experiences and connect with fellow developers to discover how to build and manage open source software for the AIX operating system

 View Only
Expand all | Collapse all

Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'

  • 1.  Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'

    Posted Mon November 14, 2022 10:30 AM
    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
    ------------------------------


  • 2.  RE: Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'

    Posted Mon November 14, 2022 10:32 AM
    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
    ------------------------------



  • 3.  RE: Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'

    Posted Tue November 15, 2022 01:31 AM
    "python3-3.7.9-0" . You have the python3 that comes with dnf bundle. To reduce the size of dnf bundle tar file , this python doesn't have setuptools & pip within it.
    We always recommend the users to update the packages immediately after dnf is installed. You should upgrade the python3 rpm. The pkg_resources is provided by setuptools.

    ------------------------------
    Ayappan P
    ------------------------------



  • 4.  RE: Fresh salt-minion install on AIX 7.3 fails to start with ModuleNotFoundError: No module named 'pkg_resources'

    Posted Tue November 15, 2022 08:19 AM

    Thank you!!

    That did the trick never even thought to update python.

     

    Thanks

    Ken Foster

    Sr. Linux Systems Administrator

    Commercial Leveraged Services - Server Unix

    C:  609.560.0151
    EKenneth.foster@fisglobal.com

    FIS | Empowering the Financial World 

    50_3

    Planned Vaction Days:

    11/17 – 11/27

    12/05 – 12/09

     

     

    The information contained in this message is proprietary and/or confidential. If you are not the intended recipient, please: (i) delete the message and all copies; (ii) do not disclose, distribute or use the message in any manner; and (iii) notify the sender immediately. In addition, please be aware that any message addressed to our domain is subject to archiving and review by persons other than the intended recipient. Thank you.