Bug 1303470 - [abrt] dnf: history.py:166:__le__:AttributeError: 'Package' object has no attribute 'to_nevra'
Summary: [abrt] dnf: history.py:166:__le__:AttributeError: 'Package' object has no att...
Keywords:
Status: CLOSED DUPLICATE of bug 1303149
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 23
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:faea0d0ca42a296a84385aa4201...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-02-01 00:02 UTC by Mihai Dumea
Modified: 2016-02-02 21:41 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2016-02-01 13:42:33 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: _var_log_dnf.log (159.03 KB, text/plain)
2016-02-01 00:02 UTC, Mihai Dumea
no flags Details
File: backtrace (1.63 KB, text/plain)
2016-02-01 00:02 UTC, Mihai Dumea
no flags Details
File: dnf-makecache.log (457.03 KB, text/plain)
2016-02-01 00:02 UTC, Mihai Dumea
no flags Details
File: environ (2.45 KB, text/plain)
2016-02-01 00:02 UTC, Mihai Dumea
no flags Details

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 ***


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