Description

LikePages raised an exception:

2009-04-12 21:19:11,955 ERROR MoinMoin.macro:129 Macro LikePages raised an exception:
Traceback (most recent call last):
  File "/home/user/workspace/moin-1.9/MoinMoin/macro/__init__.py", line 123, in execute
    return execute(self, args)
  File "/home/user/workspace/moin-1.9/MoinMoin/macro/__init__.py", line 108, in <lambda>
    _self.request, call, _args, [_self])
  File "/home/user/workspace/moin-1.9/MoinMoin/wikiutil.py", line 1917, in invoke_extension_function
    return function(*fixed_args, **kwargs)
  File "/home/user/workspace/moin-1.9/MoinMoin/macro/LikePages.py", line 20, in macro_LikePages
    start, end, matches = LikePages.findMatches(pagename, request)
  File "/home/user/workspace/moin-1.9/MoinMoin/action/LikePages.py", line 87, in findMatches
    for name in closeMatches(pagename, pages):
  File "/home/user/workspace/moin-1.9/MoinMoin/action/LikePages.py", line 192, in closeMatches
    len(lower), cutoff=0.6)
  File "/home/user/workspace/moin-1.9/MoinMoin/support/difflib.py", line 743, in get_close_matches
    s.ratio() >= cutoff:
  File "/home/user/workspace/moin-1.9/MoinMoin/support/difflib.py", line 659, in ratio
    self.get_matching_blocks(), 0)
AttributeError: 'module' object has no attribute 'reduce'

Component selection

Details

MoinMoin Version

1.9

OS and Version

Python Version

2.6.2

Server Setup

standalone

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

Workaround

Discussion

I see this currently only in eclipse by debugging a different problem.

(!) reduce is a python builtin (and thus, it should be there!), thus the debugger is doing weird things.

Plan


CategoryMoinMoinNoBug

MoinMoin: MoinMoinBugs/1.9LikePages (last edited 2009-04-12 22:39:24 by ThomasWaldmann)