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
  • 1.  dnf config-manager --enable" failed

    Posted Fri February 14, 2025 10:30 PM

     # dnf config-manager --enable
    Traceback (most recent call last):
      File "/opt/freeware/bin/dnf", line 59, in <module>
        main.user_main(sys.argv[1:], exit_code=True)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 191, in user_main
        errcode = main(args)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 65, in main
        return _main(base, args, cli_class, option_parser_class)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/main.py", line 94, in _main
        cli.configure(list(map(ucd, args)), option_parser())
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/cli.py", line 952, in configure
        opts = self.optparser.parse_command_args(self.command, args)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/option_parser.py", line 406, in parse_command_args
        self._add_command_options(command)
      File "/opt/freeware/lib/python3.9/site-packages/dnf/cli/option_parser.py", line 393, in _add_command_options
        command.set_argparser(self.command_group)
      File "/opt/freeware/lib/python3.9/site-packages/dnf-plugins/config_manager.py", line 58, in set_argparser
        enable_group.add_argument("--set-enabled", default=False,
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1441, in add_argument
        return self._add_action(action)
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1663, in _add_action
        action = self._container._add_action(action)
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1643, in _add_action
        action = super(_ArgumentGroup, self)._add_action(action)
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1455, in _add_action
        self._check_conflict(action)
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1592, in _check_conflict
        conflict_handler(action, confl_optionals)
      File "/opt/freeware/lib64/python3.9/argparse.py", line 1601, in _handle_conflict_error
        raise ArgumentError(action, message % conflict_string)
    argparse.ArgumentError: argument --set-enabled: conflicting option string: --set-enabled



    ------------------------------
    Barkat Mohammad
    ------------------------------


  • 2.  RE: dnf config-manager --enable" failed

    Posted Mon February 17, 2025 04:48 AM

    It seems that the issue is caused due to multiple enablement of the same option like '--set-enabled'
    Same works with Linux but fails in AIX. We will analyse the issue, find the root cause and fix it.



    ------------------------------
    Parth Patel
    ------------------------------