Red Hat Bugzilla – Bug 1193915
[abrt] dnf: output.py:1730:historySummaryCmd:ValueError: need more than 0 values to unpack
Last modified: 2015-05-08 03:33:10 EDT
Description of problem:
"$ sudo dnf history summary" does not work.
Version-Release number of selected component:
cmdline: /usr/bin/python -OO /bin/dnf history summary
runlevel: N 5
output.py:1730:historySummaryCmd:ValueError: need more than 0 values to unpack
Traceback (most recent call last):
File "/bin/dnf", line 36, in <module>
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 134, in _main
File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1064, in run
File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 1221, in run
ret = self.output.historySummaryCmd(extcmds)
File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1730, in historySummaryCmd
tids, printall = self._history_list_transactions(extcmds)
ValueError: need more than 0 values to unpack
Local variables in innermost frame:
self: <dnf.cli.output.Output object at 0x7faa94dc2c50>
Created attachment 993125 [details]
Created attachment 993126 [details]
BTW although this command is advertised using "dnf history help", it does not work nor it is mentioned in man page. May be it is entirely unsupported?
Thank you for the report.
Yes, since it is not documented, it is not supported. We should definitely fix at least the help message.
Are you interested in having this command (and turning this into an RFE)? Can you share the use case with us?
I have no idea what this command is good for. I was curious just due to bug 1193914
OK, so until someone with a proper use case for the command appears, I'd handle this bug just as that "dnf history summary" should not print a traceback and rather print just a "No such command" message.
Works with me.
*** Bug 1199177 has been marked as a duplicate of this bug. ***
Fixed by commit https://github.com/rpm-software-management/dnf/commit/3f0dc6a3ef654797eff5f4b37210413af3bca519
hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22.
Package hawkey-0.5.4-1.fc22, dnf-0.6.5-1.fc22:
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing hawkey-0.5.4-1.fc22 dnf-0.6.5-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-extras-0.0.6-2.fc22,yum-utils-1.1.31-505.fc22,yum-3.4.3-505.fc22,hawkey-0.5.4-1.fc22,dnf-0.6.5-1.fc22 has been submitted as an update for Fedora 22.
dnf-plugins-extras-0.0.6-2.fc22, yum-3.4.3-505.fc22, dnf-0.6.5-1.fc22, yum-utils-1.1.31-505.fc22, hawkey-0.5.4-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-plugins-core-0.1.5-2.fc21,dnf-0.6.4-5.fc21 has been submitted as an update for Fedora 21.
dnf-plugins-core-0.1.5-2.fc21, dnf-0.6.4-5.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.