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

salt with AIX 7.3 is not working

  • 1.  salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 04:53 AM

    Dear Support Team,

    we have an error with using salt-minion in AIX 7.3...

    If we try to start the salt-minion we got following error messages...

    1. with build-in python 3.9

    svrseng3-0:/root#/etc/rc.d/init.d/salt-minion start

    starting salt-minion -d ...
    Traceback (most recent call last):
    File "/opt/freeware/bin/salt-minion", line 6, in <module>
    from pkg_resources import load_entry_point
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3243, in <module>
    def _initialize_master_working_set():
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3226, in _call_aside
    f(*args, **kwargs)
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 3255, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 568, in _build_master
    ws.require(__requires__)
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 886, in require
    needed = self.resolve(parse_requirements(requirements))
    File "/usr/opt/python3/lib/python3.9/site-packages/pkg_resources/__init__.py", line 772, in resolve
    raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'salt==3003' distribution was not found and is required by the application


    2. with AIX Toolbox python 3.7

    svrseng3-0:/root#/etc/rc.d/init.d/salt-minion start
    starting salt-minion -d ...
    Traceback (most recent call last):
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 584, in _build_master
        ws.require(__requires__)
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 901, in require
        needed = self.resolve(parse_requirements(requirements))
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 792, in resolve
        raise VersionConflict(dist, req).with_context(dependent_req)
    pkg_resources.ContextualVersionConflict: (urllib3 1.26.7 (/opt/freeware/lib/python3.7/site-packages), Requirement.parse('urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1'), {'requests'})
     
    During handling of the above exception, another exception occurred:
     
    Traceback (most recent call last):
      File "/opt/freeware/bin/salt-minion", line 6, in <module>
        from pkg_resources import load_entry_point
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3261, in <module>
        @_call_aside
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3245, in _call_aside
        f(*args, **kwargs)
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3274, in _initialize_master_working_set
        working_set = WorkingSet._build_master()
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 586, in _build_master
        return cls._build_from_requirements(__requires__)
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 599, in _build_from_requirements
        dists = ws.resolve(reqs, Environment())
      File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 787, in resolve
        raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1' distribution was not found and is required by requests


    Do you have any hints or suggestions for us?

    Many thanks in advance.

    best regards,
    Joerg


    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------


  • 2.  RE: salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 06:54 AM

    Hi Joerg,
    We recommend to use AIX toolbox python3 only for AIX toolbox packages.
    If the same configuration is working on AIX 7.1/7.2 and this should work on AIX 7.3 as they are same packages.
    One thing I see it is looking "urllib3" can you install  python3-urllib3.noarch package and try again and see if this resolves the issue. 



    ------------------------------
    SANKET RATHI
    ------------------------------



  • 3.  RE: salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 06:55 AM
    AIX Toolbox Salt has to be used with AIX Toolbox python3.

    For the error when using with Toolbox python3 , I think it comes from python3 requests  package. 
    Can you share the below outputs ?

    rpm -qa | grep requests

    /opt/freeware/bin/python3 -m pip list

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



  • 4.  RE: salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 08:48 AM
    Hello Sanket, hello Ayappan,

    thanks for your quick response.
    First, let me add that this installation was an upgrade from 7.2 with a full functioning salt-minion and urllib3 is installed from the AIX Toolbox.

    svrseng3-0:/root#rpm -q python3-urllib3-1.26.7-1.noarch --info
    Name : python3-urllib3
    Version : 1.26.7
    Release : 1
    Architecture: noarch
    Install Date: Fri Feb 4 10:19:54 CET 2022
    Group : Development/Libraries
    Size : 736513
    License : MIT
    Signature : (none)
    Source RPM : python3-urllib3-1.26.7-1.src.rpm
    Build Date : Mon Oct 11 08:33:03 CEST 2021
    Build Host : pokndd10.pok.stglabs.ibm.com
    Relocations : /opt/freeware
    Packager : IBM AIX Toolbox <https://ibm.biz/AIXToolbox>
    URL : https://pypi.org/
    Bug URL : https://ibm.biz/aixoss_forum
    Summary : HTTP library with thread-safe connection pooling, file post, and more
    Description :


    Here is the output Ayappan requested:

    svrseng3-0:/root#rpm -qa | grep requests
    python3-requests-2.22.0-1.noarch

    svrseng3-0:/root#/opt/freeware/bin/python3 -m pip list
    Traceback (most recent call last):
    File "/opt/freeware/lib64/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
    File "/opt/freeware/lib64/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
    File "/opt/freeware/lib/python3.7/site-packages/pip/__main__.py", line 23, in <module>
    from pip._internal.cli.main import main as _main # isort:skip # noqa
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/main.py", line 10, in <module>
    from pip._internal.cli.autocompletion import autocomplete
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/autocompletion.py", line 9, in <module>
    from pip._internal.cli.main_parser import create_main_parser
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/main_parser.py", line 7, in <module>
    from pip._internal.cli import cmdoptions
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/cmdoptions.py", line 24, in <module>
    from pip._internal.cli.progress_bars import BAR_TYPES
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/cli/progress_bars.py", line 12, in <module>
    from pip._internal.utils.logging import get_indentation
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/utils/logging.py", line 18, in <module>
    from pip._internal.utils.misc import ensure_dir
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/utils/misc.py", line 31, in <module>
    from pip._internal.locations import (
    File "/opt/freeware/lib/python3.7/site-packages/pip/_internal/locations/__init__.py", line 9, in <module>
    from pip._internal.models.scheme import SCHEME_KEYS, Scheme
    ImportError: cannot import name 'SCHEME_KEYS' from 'pip._internal.models.scheme' (/opt/freeware/lib/python3.7/site-packages/pip/_internal/models/scheme.py)

    Thanks for looking into it...

    Best regards,
    Joerg.


    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 5.  RE: salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 09:01 AM

    The urllib version "1.26.7" is too much higher for the older requests (2.22.0) package.
    We acknowledge that there is a mismatch between these two package versions in our Toolbox and we are already working on updating requests package.
    For now , you can downgrade urllib3 to the version 1.25.7 from Toolbox. 
    Also, pip looks broken in your environment. 
    Please remove the directory "/opt/freeware/lib/python3.7/site-packages/pip/_internal/locations".



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



  • 6.  RE: salt with AIX 7.3 is not working

    Posted Fri February 04, 2022 10:19 AM
    Thanks Ayappan, it worked. I've downgraded python3-liburl3 and deleted the folder as you suggested.

    Thanks thanks for your quick support.

    Best regards and have a nice weekend.
    Joerg

    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 7.  RE: salt with AIX 7.3 is not working

    Posted Wed March 02, 2022 10:01 AM
    Hello Ayappan,

    I'd like to know when the update for requests package would be available?

    Thanks in advance...

    Cheers
    Joerg

    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 8.  RE: salt with AIX 7.3 is not working

    Posted Fri March 11, 2022 12:04 PM
    Hi Joerg, Sorry for delay. There are some internal process that is why it is taking time. Hope to upload before this month end.

    ------------------------------
    SANKET RATHI
    ------------------------------



  • 9.  RE: salt with AIX 7.3 is not working

    Posted Mon March 28, 2022 09:59 AM
    python3-requests 2.27.1 is now available in AIX Toolbox.

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



  • 10.  RE: salt with AIX 7.3 is not working

    Posted Thu March 31, 2022 07:28 AM

    Hello Ayappan,

    thanks for the update. Now we have another problem with the new requests package:

    starting salt-minion -d ...
    Traceback (most recent call last):
    File "/opt/freeware/bin/salt-minion", line 6, in <module>
    from pkg_resources import load_entry_point
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3261, in <module>
    @_call_aside
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3245, in _call_aside
    f(*args, **kwargs)
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 3274, in _initialize_master_working_set
    working_set = WorkingSet._build_master()
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 584, in _build_master
    ws.require(__requires__)
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 901, in require
    needed = self.resolve(parse_requirements(requirements))
    File "/opt/freeware/lib/python3.7/site-packages/pkg_resources/__init__.py", line 787, in resolve
    raise DistributionNotFound(req, requirers)
    pkg_resources.DistributionNotFound: The 'charset_normalizer~=2.0.0' distribution was not found and is required by requests

    I could not find the "charset_normalizer" in the AIX toolbox, where could I get this package?

    For now we switched back to the old requests and urllib3 package...

    Best regards,

    Joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 11.  RE: salt with AIX 7.3 is not working

    Posted Thu March 31, 2022 10:54 AM
    Somehow the dependency is missed. We will try to bring charset-normalizer to AIX Toolbox soon.

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



  • 12.  RE: salt with AIX 7.3 is not working

    Posted Wed April 27, 2022 09:44 AM

    Hello Ayappan, Team...

    any news about the "charset_normalizer" dependency? We start our Upgrade procedure to the next techlevel and would like to update the Toolbox rpm's right away...

    best regards,

    Joerg



    ------------------------------
    Joerg Kauke
    Unix Administrator
    COOP Switzerland
    ------------------------------



  • 13.  RE: salt with AIX 7.3 is not working

    Posted Wed May 04, 2022 07:14 AM
    We have built and tested it. There are still some process involved before uploading it to Toolbox. We are working on it.

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