Bug 874866 - [abrt] dnf-0.2.14-2.git4831982.fc18: match_counter.py:61:_max_needles:ValueError: max() arg is an empty sequence
Summary: [abrt] dnf-0.2.14-2.git4831982.fc18: match_counter.py:61:_max_needles:ValueEr...
Keywords:
Status: CLOSED DUPLICATE of bug 873875
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 18
Hardware: x86_64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Ales Kozumplik
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard: abrt_hash:f2d7324f0aa7889c9f8b5391397...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-11-08 23:40 UTC by Rob K
Modified: 2014-09-30 23:40 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-11-09 07:36:01 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: environ (2.60 KB, text/plain)
2012-11-08 23:40 UTC, Rob K
no flags Details
File: executable (12 bytes, text/plain)
2012-11-08 23:40 UTC, Rob K
no flags Details
File: smolt_data (2.97 KB, text/plain)
2012-11-08 23:40 UTC, Rob K
no flags Details
File: core_backtrace (949 bytes, text/plain)
2012-11-08 23:40 UTC, Rob K
no flags Details

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


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