Bug 1752664 - dnf group info crashes with traceback
Summary: dnf group info crashes with traceback
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 30
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: rpm-software-management
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-09-16 21:09 UTC by Woi
Modified: 2019-10-27 10:24 UTC (History)
9 users (show)

Fixed In Version: dnf-4.2.9 dnf-4.2.11-2.fc30
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2019-10-10 16:56:05 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Woi 2019-09-16 21:09:21 UTC
Description of problem:
Running "dnf group info" crashes with a traceback


Version-Release number of selected component (if applicable):
$ dnf --version
4.2.8
  Installed: dnf-0:4.2.8-2.fc30.noarch at Sun Sep 15 18:09:42 2019
  Built    : Fedora Project at Tue Sep 10 12:16:53 2019

  Installed: rpm-0:4.14.2.1-5.fc30.x86_64 at Sun Sep 15 18:05:34 2019
  Built    : Fedora Project at Thu Aug 29 10:46:16 2019


How reproducible:
2/3:
I could reproduce this one my work system as well as on a freshly installed Fedora 30 VM. Both x86_64.
I could not reproduce it on Fedora 29 i686

Steps to Reproduce:
1. Start Fedora 30 x86_64
2. Open a terminal
4. sudo dnf group info


Actual results:
Traceback (most recent call last):
  File "/usr/bin/dnf", line 58, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 191, in user_main
    errcode = main(args)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 65, in main
    return _main(base, args, cli_class, option_parser_class)
  File "/usr/lib/python3.7/site-packages/dnf/cli/main.py", line 94, in _main
    cli.configure(list(map(ucd, args)), option_parser())
  File "/usr/lib/python3.7/site-packages/dnf/cli/cli.py", line 970, in configure
    self.command.configure()
  File "/usr/lib/python3.7/site-packages/dnf/cli/commands/group.py", line 339, in configure
    self.cli.optparser.print_help(self)
  File "/usr/lib/python3.7/site-packages/dnf/cli/option_parser.py", line 407, in print_help
    self._add_command_options(command)
  File "/usr/lib/python3.7/site-packages/dnf/cli/option_parser.py", line 380, in _add_command_options
    command.set_argparser(self.command_group)
  File "/usr/lib/python3.7/site-packages/dnf/cli/commands/group.py", line 313, in set_argparser
    help=_("include optional packages from group"))
  File "/usr/lib/python3.7/site-packages/dnf/cli/option_parser.py", line 384, in cmd_add_argument
    return type(self.command_group).add_argument(self.command_group, *args, **kwargs)
  File "/usr/lib64/python3.7/argparse.py", line 1367, in add_argument
    return self._add_action(action)
  File "/usr/lib64/python3.7/argparse.py", line 1571, in _add_action
    action = super(_ArgumentGroup, self)._add_action(action)
  File "/usr/lib64/python3.7/argparse.py", line 1381, in _add_action
    self._check_conflict(action)
  File "/usr/lib64/python3.7/argparse.py", line 1520, in _check_conflict
    conflict_handler(action, confl_optionals)
  File "/usr/lib64/python3.7/argparse.py", line 1529, in _handle_conflict_error
    raise ArgumentError(action, message % conflict_string)
argparse.ArgumentError: argument --with-optional: conflicting option string: --with-optional

Expected results:
mini-usage output for dnf group info

Additional info:
See also bug #1209649 for desired output

Comment 1 Jaroslav Mracek 2019-09-17 18:00:23 UTC
It looks like that the issue is fixed in upstream.

Comment 2 Woi 2019-09-28 21:18:22 UTC
Thanks for letting me know.

Comment 3 Fedora Update System 2019-10-02 10:43:04 UTC
FEDORA-2019-049b4836a6 has been submitted as an update to Fedora 30. https://bodhi.fedoraproject.org/updates/FEDORA-2019-049b4836a6

Comment 4 Fedora Update System 2019-10-03 01:52:40 UTC
dnf-4.2.11-2.fc30, dnf-plugins-core-4.0.10-1.fc30, libdnf-0.35.5-2.fc30, librepo-1.10.6-1.fc30 has been pushed to the Fedora 30 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2019-049b4836a6

Comment 5 Fedora Update System 2019-10-10 16:56:05 UTC
dnf-4.2.11-2.fc30, dnf-plugins-core-4.0.10-1.fc30, libdnf-0.35.5-2.fc30, librepo-1.10.6-1.fc30 has been pushed to the Fedora 30 stable repository. If problems still persist, please make note of it in this bug report.

Comment 6 Woi 2019-10-27 10:24:31 UTC
Works fine now, thanks :)


Note You need to log in before you can comment on or make changes to this bug.