Bug 1145820 - groupinstall traceback with nonexistent group
Summary: groupinstall traceback with nonexistent group
Keywords:
Status: CLOSED DUPLICATE of bug 1130878
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-09-23 21:05 UTC by Luke Macken
Modified: 2016-09-20 02:46 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-09-23 23:43:49 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Luke Macken 2014-09-23 21:05:52 UTC
Description of problem:

Out of old habit, I ran this groupinstall command, and triggered a traceback. It looks like the group I'm trying to install doesn't exist anymore, but  `groupinstall foo` doesn't trigger the same exception.

[~] sudo dnf -y groupinstall "Fedora Packager"
Dependencies resolved.
Traceback (most recent call last):
  File "/bin/dnf", line 36, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 182, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 84, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 141, in _main
    ret = resolving(cli, base)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 160, in resolving
    base.do_transaction()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 185, in do_transaction
    grp_diff = self._groups_diff()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 145, in _groups_diff
    return self.group_persistor.diff()
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 273, in diff
    return _GroupsDiff(self._original, self.db)
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 170, in __init__
    self.added, self.removed = _diff_dcts(db_old, db_new)
  File "/usr/lib/python2.7/site-packages/dnf/persistor.py", line 60, in _diff_dcts
    keys1 = set(dct1.keys())
AttributeError: 'NoneType' object has no attribute 'keys'

[~] sudo dnf grouplist | grep Fedora
   Fedora Cloud Server
   Fedora Server
   Fedora Workstation
   Fedora Eclipse


Version-Release number of selected component (if applicable):
dnf-0.6.0-1.fc21.noarch

Comment 1 Parag Nemade 2014-09-23 23:43:49 UTC
I will mark this as duplicate as both traceback looks same. Please update dnf package to latest update 0.6.1-1.fc21

*** This bug has been marked as a duplicate of bug 1130878 ***


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