Bug 1085276

Summary: [abrt] dnf: output.py:1931:_historyInfoCmd:TypeError: isinstance expected 2 arguments, got 1
Product: [Fedora] Fedora Reporter: Michal Schmidt <mschmidt>
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: 20CC: akozumpl, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
URL: https://retrace.fedoraproject.org/faf/reports/bthash/3b86c05a3827768918d5541166546ec679fdb0af
Whiteboard: abrt_hash:48418fec377f6cac45bb9e9ad4b3e986ed1638af
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-04-08 11:10:29 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: backtrace
none
File: environ none

Description Michal Schmidt 2014-04-08 09:28:46 UTC
Description of problem:
Run "dnf history info".

Version-Release number of selected component:
dnf-0.4.19-1.fc20

Additional info:
reporter:       libreport-2.2.1
cmdline:        /usr/bin/python /bin/dnf history info
executable:     /bin/dnf
kernel:         3.13.9-200.fc20.x86_64
runlevel:       N 5
type:           Python
uid:            0

Truncated backtrace:
output.py:1931:_historyInfoCmd:TypeError: isinstance expected 2 arguments, got 1

Traceback (most recent call last):
  File "/bin/dnf", line 35, in <module>
    main.user_main(sys.argv[1:], exit_code=True)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 242, in user_main
    errcode = main(args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 75, in main
    return _main(base, args)
  File "/usr/lib/python2.7/site-packages/dnf/cli/main.py", line 124, in _main
    cli.run()
  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1378, in run
    return self.command.run(self.base.extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/commands/__init__.py", line 2280, in run
    ret = self.output.historyInfoCmd(extcmds)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1810, in historyInfoCmd
    self._historyInfoCmd(tid, pats)
  File "/usr/lib/python2.7/site-packages/dnf/cli/output.py", line 1931, in _historyInfoCmd
    if not isinstance(old.tid):
TypeError: isinstance expected 2 arguments, got 1

Local variables in innermost frame:
begtms: ['Tue', 'Apr', '8', '11:25:54', '2014']
pats: []
old: <dnf.yum.history.YumHistoryTransaction object at 0x1cadf10>
_simple_pkg: <function _simple_pkg at 0x3e1e050>
i: 3
self: <dnf.cli.output.Output object at 0x1a181d0>
endtm: '           11:25:55 2014'
name: u' <michich>'
sofar: 10
maxlen: 13
begtm: 'Tue Apr  8 11:25:54 2014'
x: u'Newer'
diff: u'(1 seconds)'
_pkg_states_installed: {'i': u'Installed', 'maxlen': 13, 'e': u'Erased', 'o': u'Upgraded', 'n': u'Downgraded'}
_pkg_states_available: {'i': u'Installed', 'maxlen': 13, 'e': u'Not installed', 'o': u'Older', 'n': u'Newer'}
endtms: ['Tue', 'Apr', '8', '11:25:55', '2014']

Comment 1 Michal Schmidt 2014-04-08 09:28:54 UTC
Created attachment 883937 [details]
File: backtrace

Comment 2 Michal Schmidt 2014-04-08 09:28:57 UTC
Created attachment 883938 [details]
File: environ

Comment 3 Ales Kozumplik 2014-04-08 11:10:29 UTC

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