Bug 1303470

Summary: [abrt] dnf: history.py:166:__le__:AttributeError: 'Package' object has no attribute 'to_nevra'
Product: [Fedora] Fedora Reporter: Mihai Dumea <mihailuciand>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 23CC: davestux, jsilhan, mdomonko, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/5a80c01bc777eab910e80c024b4176792cb0ce90
Whiteboard: abrt_hash:faea0d0ca42a296a84385aa4201487b92af6670e;VARIANT_ID=workstation;
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-01 13:42:33 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:
Description Flags
File: _var_log_dnf.log
none
File: backtrace
none
File: dnf-makecache.log
none
File: environ none

Description Mihai Dumea 2016-02-01 00:02:22 UTC
Version-Release number of selected component:
dnf-1.1.6-1.fc23

Additional info:
reporter:       libreport-2.6.3
cmdline:        /usr/bin/python3 /usr/bin/dnf history info 41
executable:     /usr/bin/dnf
kernel:         4.3.3-303.fc23.x86_64
runlevel:       N 5
type:           Python3
uid:            0

Truncated backtrace:
history.py:166:__le__:AttributeError: 'Package' object has no attribute 'to_nevra'

Traceback (most recent call last):
  File "/usr/bin/dnf", line 57, 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 1095, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python3.4/site-packages/dnf/cli/commands/__init__.py", line 1218, 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 1672, in _historyInfoCmd
    _simple_pkg(hpkg, 4, was_installed=True, pkg_max_len=pkg_max_len)
  File "/usr/lib/python3.4/site-packages/dnf/cli/output.py", line 1575, in _simple_pkg
    elif ipkgs[-1] > hpkg:
  File "/usr/lib64/python3.4/functools.py", line 125, in _lt_from_le
    op_result = self.__le__(other)
  File "/usr/lib/python3.4/site-packages/dnf/yum/history.py", line 166, in __le__
    o = other.to_nevra()
AttributeError: 'Package' object has no attribute 'to_nevra'

Local variables in innermost frame:
s: <hawkey.NEVRA object at 0x7fac87f47148>
self: <YumHistoryPackage : dnf-1.1.5-1.fc23.noarch (0x7fac87f38da0)>
other: <hawkey.Package object id 301, dnf-1.1.6-1.fc23.noarch, @System>

Comment 1 Mihai Dumea 2016-02-01 00:02:31 UTC
Created attachment 1119934 [details]
File: _var_log_dnf.log

Comment 2 Mihai Dumea 2016-02-01 00:02:32 UTC
Created attachment 1119935 [details]
File: backtrace

Comment 3 Mihai Dumea 2016-02-01 00:02:36 UTC
Created attachment 1119936 [details]
File: dnf-makecache.log

Comment 4 Mihai Dumea 2016-02-01 00:02:38 UTC
Created attachment 1119937 [details]
File: environ

Comment 5 Michal Domonkos 2016-02-01 13:42:33 UTC

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