Bug 1130878
| Summary: | [abrt] dnf: persistor.py:60:_diff_dcts:AttributeError: 'NoneType' object has no attribute 'keys' | ||||||||
|---|---|---|---|---|---|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Parag Nemade <pnemade> | ||||||
| Component: | dnf | Assignee: | Ales Kozumplik <akozumpl> | ||||||
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> | ||||||
| Severity: | urgent | Docs Contact: | |||||||
| Priority: | unspecified | ||||||||
| Version: | 21 | CC: | akozumpl, bugzilla, ignatenko, jsilhan, jzeleny, lmacken, matteo, mcatanzaro, mfabian, pnemade, rholy, sanjay.ankur, smocktaylor, tim.lauridsen | ||||||
| Target Milestone: | --- | ||||||||
| Target Release: | --- | ||||||||
| Hardware: | x86_64 | ||||||||
| OS: | Linux | ||||||||
| URL: | https://retrace.fedoraproject.org/faf/reports/bthash/fdaf493b29b20ac8c0b18568cb13c45f1fa6ffb5 | ||||||||
| Whiteboard: | abrt_hash:99afb3b4afb0ef8851fcf9eeae70725265a586a5 | ||||||||
| Fixed In Version: | dnf-0.6.1-1.fc21 | Doc Type: | Bug Fix | ||||||
| Doc Text: | Story Points: | --- | |||||||
| Clone Of: | Environment: | ||||||||
| Last Closed: | 2014-08-28 16:53:06 UTC | Type: | --- | ||||||
| Regression: | --- | Mount Type: | --- | ||||||
| Documentation: | --- | CRM: | |||||||
| Verified Versions: | Category: | --- | |||||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||||
| Embargoed: | |||||||||
| Attachments: |
|
||||||||
Created attachment 927655 [details]
File: backtrace
Created attachment 927656 [details]
File: environ
Looks like I was not using above command as root user and also not having dnf-plugins-core installed when this abrt happened. Hi, thanks for the report. We'll take a look. Just ran into this:
[asinha@localhost ~]$ sudo dnf install @java
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'
[asinha@localhost ~]$ dnf --version
0.6.0
Installed: dnf-0:0.6.0-99.1121.20140822gita896404.fc21.noarch at 2014-08-24 01:44
Built : at 2014-08-22 12:44
Installed: rpm-0:4.12.0-0.beta1.5.fc21.x86_64 at 2014-08-22 16:43
Built : Fedora Project at 2014-08-20 12:30
[asinha@localhost ~]$
Seems like one can't install groups using dnf at the moment. Updating severity.
Another user experienced a similar problem: Trying to install a group. By the way, note how "dnf group list" shows localized group names, but "dnf group install <group>" wants English names! reporter: libreport-2.2.3 cmdline: /usr/bin/python -OO /usr/bin/dnf group install 'GNOME Desktop Environment' executable: /usr/bin/dnf kernel: 3.16.1-300.fc21.x86_64 package: dnf-0.6.0-1.fc21 reason: persistor.py:60:_diff_dcts:AttributeError: 'NoneType' object has no attribute 'keys' runlevel: N 5 type: Python uid: 0 Reproduced. Fixed by 031f95b on master. Thaks Ales. I'll confirm it when the fix hits the nightly repo. *** Bug 1134572 has been marked as a duplicate of this bug. *** Seems fixed. I get a list of packages in the group, and then it tries to install whatever isn't installed yet. dnf-0.6.1-99.1134.20140828git883a271.fc21.noarch Thanks. Warm regards, Ankur dnf-0.6.1-1.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/dnf-0.6.1-1.fc21 dnf-0.6.1-1.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report. *** Bug 1145820 has been marked as a duplicate of this bug. *** |
Description of problem: Installed fresh Fedora 21 virtual machine. Tried to install packages using 'dnf groupinstall "GNOME Desktop"' command. abrt occurred. Version-Release number of selected component: dnf-0.6.0-1.fc21 Additional info: reporter: libreport-2.2.3 cmdline: /usr/bin/python -OO /bin/dnf groupinstall 'GNOME Desktop' executable: /bin/dnf kernel: 3.16.1-300.fc21.x86_64 runlevel: 3 5 type: Python uid: 0 Truncated backtrace: persistor.py:60:_diff_dcts:AttributeError: 'NoneType' object has no attribute 'keys' 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' Local variables in innermost frame: dct1: None removed: {} dct2: <dnf.persistor.ClonableDict object at 0x7fd9faf1c090> added: {}