Hide Forgot
Description of problem: `yum history info PKGNAME` produces error in dnf. As far as I know, there is no replacement in dnf for `yum history packages-list`. Attempting to pass a package name to the dnf tool produces error: ``` python3[3201]: detected unhandled Python exception in '/usr/bin/dnf' ``` Version-Release number of selected component (if applicable): ``` dnf-1.1.8-1.fc23.noarch ``` How reproducible: Pass a package name to `dnf history info` subcommand. For example, ``` dnf history info xpra ``` 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.4/site-packages/dnf/cli/main.py", line 174, in user_main errcode = main(args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 112, in _main cli.run() File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1096, in run return self.command.run(self.base.extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1220, in run ret = self.output.historyInfoCmd(extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1536, in historyInfoCmd self._historyInfoCmd(tid, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1674, in _historyInfoCmd self.historyInfoCmdPkgsAltered(old, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1749, in historyInfoCmdPkgsAltered x, m, u = dnf.yum.packages.parsePackages([hpkg], pats) File "/usr/lib/python3.4/site-packages/dnf/yum/packages.py", line 76, in parsePackages exactmatch.update(pkgdict[command]) TypeError: unhashable type: 'YumHistoryPackageState' ``` Expected results: List pertinent information about the specified package from the database OR Return a sane error "Message" to the user. Additional info: I just realized that the last upgrade pulled in an updated version of `dnf{,-{conf,plugins-core,yum}}. Furthermore, the output starts out "normal"--history transaction with packages sorted alphabetically--until it gets to the presumed place where the specified package would be listed. Using the "xpra" package as an example, [A-Z][a-x] shown; then Traceback Error from above. The following text is the beginning lines of the output (head -n ~ 20): ``` # dnf history info xpra Transaction ID : 109 Begin time : Thu Apr 14 03:44:22 2016 Begin rpmdb : 2546:2b0cae9d2b67f0f53f4e0432828038a2ef7159b4 End time : 03:53:07 2016 (8 minutes) End rpmdb : 2548:94b47582d56f6dcd82774205e3f181dcd4bc86eb User : ole <ole> Return-Code : Success Command Line : upgrade -y Transaction performed with: Upgraded dnf-1.1.7-2.fc23.noarch @@commandline Installed rpm-4.13.0-0.rc1.12.fc23.i686 @@commandline Packages Altered: Upgraded GeoIP-GeoLite-data-2015.12-1.fc23.noarch @@commandline Upgrade 2016.04-1.fc23.noarch @updates Upgraded ModemManager-1.4.10-2.fc23.i686 @@commandline Upgrade 1.4.14-1.fc23.i686 @updates Upgraded ModemManager-glib-1.4.10-2.fc23.i686 @@commandline Upgrade 1.4.14-1.fc23.i686 @updates Upgraded bluez-5.36-1.fc23.i686 @@commandline Upgrade 5.38-1.fc23.i686 @updates Upgraded bluez-cups-5.36-1.fc23.i686 @@commandline Upgrade 5.38-1.fc23.i686 @updates Upgraded bluez-libs-5.36-1.fc23.i686 @@commandline Upgrade 5.38-1.fc23.i686 @updates Upgraded breeze-icon-theme-5.19.0-1.fc23.noarch @@commandline Upgrade 5.21.0-1.fc23.noarch @updates Upgraded btrfs-progs-4.3.1-1.fc23.i686 @@commandline Upgrade 4.4.1-1.fc23.i686 @updates Upgraded cpp-5.3.1-2.fc23.i686 @@commandline Upgrade 5.3.1-6.fc23.i686 @updates Upgraded dnf-1.1.7-2.fc23.noarch @@commandline Upgrade 1.1.8-1.fc23.noarch @updates Upgraded dnf-conf-1.1.7-2.fc23.noarch @@commandline Upgrade 1.1.8-1.fc23.noarch @updates Upgraded dnf-plugins-core-0.1.19-1.fc23.noarch @@commandline Upgrade 0.1.20-1.fc23.noarch @updates Upgraded dnf-yum-1.1.7-2.fc23.noarch @@commandline Upgrade 1.1.8-1.fc23.noarch @updates ... ... ... Upgraded tkinter-2.7.10-8.fc23.i686 @@commandline Upgrade 2.7.11-3.fc23.i686 @updates Upgraded webkitgtk-2.4.10-1.fc23.i686 @@commandline Upgrade 2.4.10-2.fc23.i686 @updates Upgraded webkitgtk3-2.4.10-1.fc23.i686 @@commandline Upgrade 2.4.10-2.fc23.i686 @updates Upgraded xen-libs-4.5.2-9.fc23.i686 @@commandline Upgrade 4.5.3-1.fc23.i686 @updates Upgraded xen-licenses-4.5.2-9.fc23.i686 @@commandline Upgrade 4.5.3-1.fc23.i686 @updates Upgraded xerces-c-3.1.2-3.fc23.i686 @@commandline Upgrade 3.1.3-1.fc23.i686 @updates Upgraded xorg-x11-drv-wacom-0.30.0-3.fc23.i686 @@commandline Upgrade 0.30.0-4.fc23.i686 @updates Upgraded xorg-x11-server-Xorg-1.18.1-3.fc23.i686 @@commandline Upgrade 1.18.3-1.fc23.i686 @updates Upgraded xorg-x11-server-Xwayland-1.18.1-3.fc23.i686 @@commandline Upgrade 1.18.3-1.fc23.i686 @updates Upgraded xorg-x11-server-common-1.18.1-3.fc23.i686 @@commandline Upgrade 1.18.3-1.fc23.i686 @updates 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.4/site-packages/dnf/cli/main.py", line 174, in user_main errcode = main(args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 60, in main return _main(base, args) File "/usr/lib/python3.4/site-packages/dnf/cli/main.py", line 112, in _main cli.run() File "/usr/lib/python3.4/site-packages/dnf/cli/cli.py", line 1096, in run return self.command.run(self.base.extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1220, in run ret = self.output.historyInfoCmd(extcmds) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1536, in historyInfoCmd self._historyInfoCmd(tid, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1674, in _historyInfoCmd self.historyInfoCmdPkgsAltered(old, pats) File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1749, in historyInfoCmdPkgsAltered x, m, u = dnf.yum.packages.parsePackages([hpkg], pats) File "/usr/lib/python3.4/site-packages/dnf/yum/packages.py", line 76, in parsePackages exactmatch.update(pkgdict[command]) TypeError: unhashable type: 'YumHistoryPackageState' ```
*** This bug has been marked as a duplicate of bug 1245121 ***