This is an index of all words occuring in page titles.
See also:
TitleIndex -- a shorter index
SiteNavigation -- other indexing schemes
--> -->
UnicodeDecodeError
'utf8' codec can't decode bytes in position 170-175: unsupported Unicode code range
If you want to report a bug, please save this page and attach it to your bug report.
Traceback
A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.
/var/lib/python-support/python2.5/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object at 0x8645ecc>)
- 1205 self.page.send_page(self, msg=msg)
- 1206 else:
- 1207 handler(self.page.page_name, self)
- 1208
- 1209 # generate page footer (actions that do not want this footer use
- handler = <function do_show at 0x87e99cc>
- self = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- self.page = <MoinMoin.Page.Page instance at 0x865deac>
- self.page.page_name = u'WordIndex'
/var/lib/python-support/python2.5/MoinMoin/wikiaction.py in do_show (pagename=u'WordIndex', request=<MoinMoin.request.RequestModPy object at 0x8645ecc>)
- 466 else:
- 467 request.cacheable = 1
- 468 Page(request, pagename).send_page(request, count_hit=1)
- 469
- 470
- global Page = <class MoinMoin.Page.Page at 0x8655b0c>
- request = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- pagename = u'WordIndex'
- ).send_page undefined
- count_hit undefined
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0x86a0f8c>, request=<MoinMoin.request.RequestModPy object at 0x8645ecc>, msg='', **keywords={'count_hit': 1})
- 1254 format_args=pi_formatargs,
- 1255 do_cache=do_cache,
- 1256 start_line=pi_lines)
- 1257
- 1258 # check for pending footnotes
- start_line undefined
- pi_lines = 1
/var/lib/python-support/python2.5/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0x86a0f8c>, request=<MoinMoin.request.RequestModPy object at 0x8645ecc>, Parser=<class MoinMoin.parser.wiki.Parser at 0x8905b0c>, body=u'This is an index of all words occuring in page t...on -- other indexing schemes\n\n----\n[[WordIndex]]\n', format_args='', do_cache=1, **kw={'start_line': 1})
- 1345 try:
- 1346 code = self.loadCache(request)
- 1347 self.execute(request, parser, code)
- 1348 except Exception, e:
- 1349 if not is_cache_exception(e):
- self = <MoinMoin.Page.Page instance at 0x86a0f8c>
- self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance at 0x86a0f8c>>
- request = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- parser = <MoinMoin.parser.wiki.Parser instance at 0x890398c>
- code = <code object <module> at 0x8907920, file "WordIndex", line 2>
/var/lib/python-support/python2.5/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance at 0x86a0f8c>, request=<MoinMoin.request.RequestModPy object at 0x8645ecc>, parser=<MoinMoin.parser.wiki.Parser instance at 0x890398c>, code=<code object <module> at 0x8907920, file "WordIndex", line 2>)
- 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
- 1375 try:
- 1376 exec code
- 1377 except 'CacheNeedsUpdate':
- 1378 raise Exception('CacheNeedsUpdate')
- code = <code object <module> at 0x8907920, file "WordIndex", line 2>
/WordIndex in
() /var/lib/python-support/python2.5/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x888194c>, macro_obj=<MoinMoin.wikimacro.Macro instance at 0x8885bec>, name=u'WordIndex', args=None)
- 288 def macro(self, macro_obj, name, args):
- 289 # call the macro
- 290 return macro_obj.execute(name, args)
- 291
- 292 def _get_bang_args(self, line):
- macro_obj = <MoinMoin.wikimacro.Macro instance at 0x8885bec>
- macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance at 0x8885bec>>
- name = u'WordIndex'
- args = None
/var/lib/python-support/python2.5/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance at 0x8885bec>, macro_name=u'WordIndex', args=None)
- 118 else:
- 119 raise ImportError("Cannot load macro %s" % macro_name)
- 120 return execute(self, args)
- 121
- 122 def _m_lang(self, text):
- execute = <unbound method Macro._macro_WordIndex>
- self = <MoinMoin.wikimacro.Macro instance at 0x8885bec>
- args = None
/var/lib/python-support/python2.5/MoinMoin/wikimacro.py in _macro_WordIndex (self=<MoinMoin.wikimacro.Macro instance at 0x8885bec>, args=None)
- 229 def filter(name):
- 230 return not wikiutil.isSystemPage(self.request, name)
- 231 pages = self.request.rootpage.getPageList(filter=filter)
- 232 map = {}
- 233 word_re = re.compile(u'[%s][%s]+' % (config.chars_upper, config.chars_lower), re.UNICODE)
- pages undefined
- self = <MoinMoin.wikimacro.Macro instance at 0x8885bec>
- self.request = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- self.request.rootpage = <MoinMoin.Page.Page instance at 0x864eb0c>
- self.request.rootpage.getPageList = <bound method Page.getPageList of <MoinMoin.Page.Page instance at 0x864eb0c>>
- filter = <function filter at 0x890fae4>
/var/lib/python-support/python2.5/MoinMoin/Page.py in getPageList (self=<MoinMoin.Page.Page instance at 0x864eb0c>, user=<MoinMoin.user.User at 0x865d5ec name:'' id:1269217633.69.28341 valid:0>, exists=1, filter=<function filter at 0x890fae4>)
- 692
- 693 # Filter out page user may not read.
- 694 if user and not user.may.read(name):
- 695 continue
- 696
- user = <MoinMoin.user.User at 0x865d5ec name:'' id:1269217633.69.28341 valid:0>
- user.may = <MoinMoin.security.Permissions instance at 0x865d6ec>
- user.may.read = <function <lambda> at 0x8a31684>
- name = u'WortIndex'
/var/lib/python-support/python2.5/MoinMoin/security.py in
(pagename=u'WortIndex', Page=<class MoinMoin.Page.Page at 0x8655b0c>, request=<MoinMoin.request.RequestModPy object at 0x8645ecc>, attr='read') - 50 Page = self.Page
- 51 if attr in request.cfg.acl_rights_valid:
- 52 return lambda pagename, Page=Page, request=request, attr=attr: Page(request, pagename).getACL(request).may(request, self.name, attr)
- 53 else:
- 54 raise AttributeError, attr
- pagename = u'WortIndex'
- Page = <class MoinMoin.Page.Page at 0x8655b0c>
- request = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- attr = 'read'
- ).getACL undefined
- ).may undefined
- self = <MoinMoin.security.Permissions instance at 0x865d6ec>
- self.name = ''
/var/lib/python-support/python2.5/MoinMoin/Page.py in getACL (self=<MoinMoin.Page.Page instance at 0x890ac4c>, request=<MoinMoin.request.RequestModPy object at 0x8645ecc>)
- 1621 aclRevision, acl = None, None
- 1622 if aclRevision != currentRevision:
- 1623 acl = self.parseACL()
- 1624 request.cfg._acl_cache[key] = (currentRevision, acl)
- 1625 request.clock.stop('getACL')
- acl = None
- self = <MoinMoin.Page.Page instance at 0x890ac4c>
- self.parseACL = <bound method Page.parseACL of <MoinMoin.Page.Page instance at 0x890ac4c>>
/var/lib/python-support/python2.5/MoinMoin/Page.py in parseACL (self=<MoinMoin.Page.Page instance at 0x890ac4c>)
- 1634 import wikiacl
- 1635 if self.exists() and self.rev == 0:
- 1636 return wikiacl.parseACL(self.request, self.get_raw_body())
- 1637 try:
- 1638 lastRevision = self.getRevList()[0]
- wikiacl = <module 'MoinMoin.wikiacl' from '/var/lib/python-support/python2.5/MoinMoin/wikiacl.pyc'>
- wikiacl.parseACL = <function parseACL at 0x869e6f4>
- self = <MoinMoin.Page.Page instance at 0x890ac4c>
- self.request = <MoinMoin.request.RequestModPy object at 0x8645ecc>
- self.get_raw_body = <bound method Page.get_raw_body of <MoinMoin.Page.Page instance at 0x890ac4c>>
/var/lib/python-support/python2.5/MoinMoin/Page.py in get_raw_body (self=<MoinMoin.Page.Page instance at 0x890ac4c>)
- 797 # read file content and make sure it is closed properly
- 798 try:
- 799 text = file.read()
- 800 text = self.decodeTextMimeType(text)
- 801 self.set_raw_body(text)
- text undefined
- file = <closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>
- file.read = <bound method StreamReaderWriter.read of <closed...dex/revisions/00000001', mode 'rb' at 0x88fff08>>
/usr/lib/python2.5/codecs.py in read (self=<closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>, size=-1)
- 616 def read(self, size=-1):
- 617
- 618 return self.reader.read(size)
- 619
- 620 def readline(self, size=None):
- self = <closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>
- self.reader = <closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>
- self.reader.read = <bound method StreamReader.read of <closed file ...dex/revisions/00000001', mode 'rb' at 0x88fff08>>
- size = -1
/usr/lib/python2.5/codecs.py in read (self=<closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>, size=-1, chars=-1, firstline=False)
- 422 data = self.bytebuffer + newdata
- 423 try:
- 424 newchars, decodedbytes = self.decode(data, self.errors)
- 425 except UnicodeDecodeError, exc:
- 426 if firstline:
- newchars undefined
- decodedbytes undefined
- self = <closed file '/var/tech/data/pages/WortIndex/revisions/00000001', mode 'rb' at 0x88fff08>
- self.decode = <built-in function utf_8_decode>
- data = '##language:de\n##master-page:WordIndex\n##master-d... Index\n * Aktuelle\xc4nderungen\n\n----\n[[WordIndex]]\n'
- self.errors = 'strict'
UnicodeDecodeError
'utf8' codec can't decode bytes in position 170-175: unsupported Unicode code range
- args = ('utf8', '##language:de\n##master-page:WordIndex\n##master-d... Index\n * Aktuelle\xc4nderungen\n\n----\n[[WordIndex]]\n', 170, 176, 'unsupported Unicode code range')
- encoding = 'utf8'
- end = 176
- message = ''
- object = '##language:de\n##master-page:WordIndex\n##master-d... Index\n * Aktuelle\xc4nderungen\n\n----\n[[WordIndex]]\n'
- reason = 'unsupported Unicode code range'
- start = 170
System Details
- Date: Mon, 22 Mar 2010 00:27:13 +0000
- Platform: Linux morticia 2.6.24-19-server #1 SMP Wed Jun 4 17:16:58 UTC 2008 i686
- Python: Python 2.5.2 (/usr/bin/python)
- MoinMoin: Release 1.5.8 (release)
