Bugzilla (bugzilla.redhat.com) will be under maintenance for infrastructure upgrades and will not be available on July 31st between 12:30 AM - 05:30 AM UTC. We appreciate your understanding and patience. You can follow status.redhat.com for details.
Bug 591744 - [abrt] crash in system-config-display-2.2-1.fc12: alias.py:51:matchDevice:AttributeError: 'module' object has no attribute 'reduce'
Summary: [abrt] crash in system-config-display-2.2-1.fc12: alias.py:51:matchDevice:Att...
Alias: None
Product: Fedora
Classification: Fedora
Component: python
Version: 12
Hardware: i686
OS: Linux
Target Milestone: ---
Assignee: Adam Jackson
QA Contact: Fedora Extras Quality Assurance
Whiteboard: abrt_hash:5d7cb19e
Depends On:
TreeView+ depends on / blocked
Reported: 2010-05-12 23:09 UTC by quintesse
Modified: 2010-05-14 22:01 UTC (History)
5 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2010-05-14 22:01:34 UTC
Type: ---

Attachments (Terms of Use)
File: backtrace (881 bytes, text/plain)
2010-05-12 23:09 UTC, quintesse
no flags Details

Description quintesse 2010-05-12 23:09:11 UTC
abrt 1.0.9 detected a crash.

architecture: i686
cmdline: python /usr/share/system-config-display/xconf.py
comment: Just started it. There are several other python-based apps that started doing this so it probably has got something to do with my python installation, but I have no idea what exactly.
component: system-config-display
executable: /usr/share/system-config-display/xconf.py
package: system-config-display-2.2-1.fc12
reason: alias.py:51:matchDevice:AttributeError: 'module' object has no attribute 'reduce'
release: Fedora release 12 (Constantine)

alias.py:51:matchDevice:AttributeError: 'module' object has no attribute 'reduce'

Traceback (most recent call last):
  File "/usr/share/system-config-display/xconf.py", line 293, in <module>
    vc = videocard.VideoCardInfo()
  File "/usr/share/system-config-display/videocard.py", line 168, in __init__
    driver = aliases.matchDevice(v, d, sv, sd)
  File "/usr/share/system-config-display/alias.py", line 51, in matchDevice
    match = reduce(self.betterMatch, matches)
AttributeError: 'module' object has no attribute 'reduce'

Local variables in innermost frame:
d: dbus.Int32(37952)
bc: 255
matches: [['v00001002d00009440sv*sd*bc*sc*i*', 'radeon']]
self: <alias.Alias instance at 0x9ca942c>
sv: dbus.Int32(5963)
i: 255
str: 'v00001002d00009440sv0000174Bsd0000E131bcFFscFFiFF'
v: dbus.Int32(4098)
sc: 255
x: ['v0000105Dd00005348sv*sd*bc*sc*i*', 'i128']
sd: dbus.Int32(57649)

Comment 1 quintesse 2010-05-12 23:09:13 UTC
Created attachment 413595 [details]
File: backtrace

Comment 2 quintesse 2010-05-12 23:27:24 UTC
Running python and testing the reduce function results in the following:

Python 2.6.2 (r262:71600, Jan 25 2010, 18:46:45) 
[GCC 4.4.2 20091222 (Red Hat 4.4.2-20)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> reduce
<built-in function reduce>
>>> reduce(lambda x, y: x+y, [1, 2, 3, 4, 5])
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'reduce'

Comment 3 quintesse 2010-05-14 22:01:34 UTC
Sorry, false alarm, somehow the install got corrupted.

$ rpm -V python
S.5....T.    /usr/lib/python2.6/functools.py
S.5....T.    /usr/lib/python2.6/functools.pyc

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