Bug 1332235 - [abrt] dnf: packages.py:76:parsePackages:TypeError: unhashable type: 'YumHistoryPackageState'
Summary: [abrt] dnf: packages.py:76:parsePackages:TypeError: unhashable type: 'YumHist...
Keywords:
Status: CLOSED DUPLICATE of bug 1245121
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 24
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:56f74f073c3c856759c8def3b6c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-05-02 15:08 UTC by Christian Stadelmann
Modified: 2016-05-09 11:39 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-09 11:39:18 UTC
Type: ---


Attachments (Terms of Use)
File: _var_log_dnf.log (140.67 KB, text/plain)
2016-05-02 15:08 UTC, Christian Stadelmann
no flags Details
File: backtrace (2.45 KB, text/plain)
2016-05-02 15:08 UTC, Christian Stadelmann
no flags Details
File: dnf-makecache.log (2.94 MB, text/plain)
2016-05-02 15:09 UTC, Christian Stadelmann
no flags Details

Description Christian Stadelmann 2016-05-02 15:08:49 UTC
Description of problem:
This crash happens when running `dnf history info [packagename]` as root.

Version-Release number of selected component:
dnf-1.1.8-1.fc24

Additional info:
reporter:       libreport-2.7.0
cmdline:        /usr/bin/python3 /usr/bin/dnf history info yumex-dnf
executable:     /usr/bin/dnf
kernel:         4.5.2-302.fc24.x86_64
pkg_fingerprint: 73BD E983 81B4 6521
pkg_vendor:     Fedora Project
reproducible:   The problem is reproducible
runlevel:       N 5
type:           Python3

Truncated backtrace:
packages.py:76:parsePackages:TypeError: unhashable type: 'YumHistoryPackageState'

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.5/site-packages/dnf/cli/main.py", line 174, in user_main
    errcode = main(args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 60, in main
    return _main(base, args)
  File "/usr/lib/python3.5/site-packages/dnf/cli/main.py", line 112, in _main
    cli.run()
  File "/usr/lib/python3.5/site-packages/dnf/cli/cli.py", line 1096, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.5/site-packages/dnf/cli/commands/__init__.py", line 1220, in run
    ret = self.output.historyInfoCmd(extcmds)
  File "/usr/lib/python3.5/site-packages/dnf/cli/output.py", line 1536, in historyInfoCmd
    self._historyInfoCmd(tid, pats)
  File "/usr/lib/python3.5/site-packages/dnf/cli/output.py", line 1674, in _historyInfoCmd
    self.historyInfoCmdPkgsAltered(old, pats)
  File "/usr/lib/python3.5/site-packages/dnf/cli/output.py", line 1749, in historyInfoCmdPkgsAltered
    x, m, u = dnf.yum.packages.parsePackages([hpkg], pats)
  File "/usr/lib/python3.5/site-packages/dnf/yum/packages.py", line 76, in parsePackages
    exactmatch.update(pkgdict[command])
TypeError: unhashable type: 'YumHistoryPackageState'

Local variables in innermost frame:
usercommands: ['yumex-dnf']
matched: set()
pkgs: [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>]
exactmatch: set()
unmatched: set()
casematch: 0
pkgdict: {'yumex-dnf-4.3.2-0.1.git20151217.fc24': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], '0:yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], 'yumex-dnf-0:4.3.2-0.1.git20151217.fc24.noarch': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], 'yumex-dnf': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], 'yumex-dnf.noarch': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], 'yumex-dnf-4.3.2': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>], 'yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch': [<YumHistoryPackageState : yumex-dnf-4.3.2-0.1.git20151217.fc24.noarch (0x7f2a1eed58d0)>]}
command: 'yumex-dnf'

Potential duplicate: bug 1259671

Comment 1 Christian Stadelmann 2016-05-02 15:08:56 UTC
Created attachment 1152986 [details]
File: _var_log_dnf.log

Comment 2 Christian Stadelmann 2016-05-02 15:08:58 UTC
Created attachment 1152987 [details]
File: backtrace

Comment 3 Christian Stadelmann 2016-05-02 15:09:12 UTC
Created attachment 1152988 [details]
File: dnf-makecache.log

Comment 4 Igor Gnatenko 2016-05-09 11:39:18 UTC

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


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