Bug 874866

Summary: [abrt] dnf-0.2.14-2.git4831982.fc18: match_counter.py:61:_max_needles:ValueError: max() arg is an empty sequence
Product: [Fedora] Fedora Reporter: Rob K <robk>
Component: dnfAssignee: Ales Kozumplik <akozumpl>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 18CC: akozumpl, jzeleny
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: abrt_hash:f2d7324f0aa7889c9f8b5391397bb3804ea42d5d
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-11-09 07:36:01 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: environ
none
File: executable
none
File: smolt_data
none
File: core_backtrace none

Description Rob K 2012-11-08 23:40:25 UTC
Description of problem:
just did a dnf search.

Version-Release number of selected component:
dnf-0.2.14-2.git4831982.fc18

Additional info:
libreport version: 2.0.18
abrt_version:   2.0.18
cmdline:        /usr/bin/python /usr/bin/dnf search gummiboot
kernel:         3.6.6-3.fc18.x86_64

backtrace:
:match_counter.py:61:_max_needles:ValueError: max() arg is an empty sequence
:
:Traceback (most recent call last):
:  File "/usr/bin/dnf", line 35, in <module>
:    yummain.user_main(sys.argv[1:], exit_code=True)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 316, in user_main
:    errcode = main(args)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/yummain.py", line 140, in main
:    result, resultmsgs = base.doCommands()
:  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 483, in doCommands
:    return self.yum_cli_commands[self.basecmd].doCommand(self, self.basecmd, self.extcmds)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/yumcommands.py", line 1254, in doCommand
:    return base.search(extcmds)
:  File "/usr/lib/python2.7/site-packages/dnf/cli/cli.py", line 1217, in search
:    for pkg in counter.sorted(reverse=True, limit_to=limit):
:  File "/usr/lib/python2.7/site-packages/dnf/match_counter.py", line 81, in sorted
:    return sorted(keys, key=self._key_func(), reverse=reverse)
:  File "/usr/lib/python2.7/site-packages/dnf/match_counter.py", line 54, in _key_func
:    max_length = self._max_needles()
:  File "/usr/lib/python2.7/site-packages/dnf/match_counter.py", line 61, in _max_needles
:    return max(map(lambda pkg: len(self.matched_needles(pkg)), self))
:ValueError: max() arg is an empty sequence
:
:Local variables in innermost frame:
:self: {}

Comment 1 Rob K 2012-11-08 23:40:28 UTC
Created attachment 641113 [details]
File: environ

Comment 2 Rob K 2012-11-08 23:40:30 UTC
Created attachment 641114 [details]
File: executable

Comment 3 Rob K 2012-11-08 23:40:32 UTC
Created attachment 641115 [details]
File: smolt_data

Comment 4 Rob K 2012-11-08 23:40:34 UTC
Created attachment 641116 [details]
File: core_backtrace

Comment 5 Ales Kozumplik 2012-11-09 07:36:01 UTC
Thank you for the report. I believe this is a dup of bug 873875. Please reopen if you can still reproduce after dnf-0.2.16.

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