WordIndex

This is an index of all words occuring in page titles.

See also:


--> -->

 
 
UnicodeDecodeError'utf8' codec can't decode bytes in position 1-6: unsupported Unicode code range
Please include this information in your bug reports!:
Python Python 2.3.5: /usr/bin/python
Linux grayson 2.6.18-4-686 #1 SMP Wed Jun 6 08:11:18 UTC 2007 i686
MoinMoin Release 1.3.4 [Revision 1.3.4 release]
Wed Aug 20 16:17:17 2008

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /usr/lib/python2.3/site-packages/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI instance>)
  863                 if self.cfg.allow_extended_names:
  864                     self.page = Page(self, pagename)
  865                     self.page.send_page(self, count_hit=1)
  866                 else:
  867                     # TODO: kill this. Why disable allow extended names?
self = <MoinMoin.request.RequestCGI instance>, self.page = <MoinMoin.Page.Page instance>, self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>, count_hit undefined

 /usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, msg='', **keywords={'count_hit': 1})
 1143         else:
 1144             # parse the text and send the page content
 1145             self.send_page_content(request, Parser, body, format_args=pi_formatargs, do_cache=do_cache)
 1146 
 1147             # check for pending footnotes
self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound method Page.send_page_content of <MoinMoin.Page.Page instance>>, request = <MoinMoin.request.RequestCGI instance>, Parser = <class MoinMoin.parser.wiki.Parser>, body = u'This is an index of all words occuring in page t...on -- other indexing schemes\n\n----\n[[WordIndex]]\n', format_args undefined, pi_formatargs = u'', do_cache = 1

 /usr/lib/python2.3/site-packages/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'This is an index of all words occuring in page t...on -- other indexing schemes\n\n----\n[[WordIndex]]\n', needsupdate=0, format_args=u'', do_cache=1)
 1306                 __file__ = os.path.join(moinmodule.__loader__.archive, 'dummy')
 1307 
 1308             exec code
 1309         except 'CacheNeedsUpdate':
 1310             # if something goes wrong, try without caching
code = <code object ? at 0xb7affbe0, file "WordIndex", line 2>

 /var/www/libming.org/WordIndex

 /usr/lib/python2.3/site-packages/MoinMoin/formatter/base.py in macro(self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'WordIndex', args=None)
  226     def macro(self, macro_obj, name, args):
  227         # call the macro
  228         return macro_obj.execute(name, args)    
  229 
  230     def _get_bang_args(self, line):
macro_obj = <MoinMoin.wikimacro.Macro instance>, macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>, name = u'WordIndex', args = None

 /usr/lib/python2.3/site-packages/MoinMoin/wikimacro.py in execute(self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'WordIndex', args=None)
  104         # builtin macro
  105         if builtins.has_key('_macro_' + macro_name):
  106             return builtins['_macro_' + macro_name](self, args)
  107 
  108         # language pseudo macro
builtins = {'Dependencies': {'Anchor': [], 'Date': ['time'], 'DateTime': ['time'], 'GetVal': ['pages'], 'Goto': [], 'Icon': ['user'], 'InterWiki': ['pages'], 'Mailto': ['user'], 'PageCount': ['namespace'], 'PageList': ['namespace'], ...}, '_Macro__get_Date': <function __get_Date>, '__doc__': ' Macro handler \n \n There are three kinds o... wiki instance in the plugin/macro directory\n ', '__init__': <function __init__>, '__module__': 'MoinMoin.wikimacro', '_m_lang': <function _m_lang>, '_m_search': <function _m_search>, '_macro_Anchor': <function _macro_Anchor>, '_macro_Date': <function _macro_Date>, '_macro_DateTime': <function _macro_DateTime>, ...}, macro_name = u'WordIndex', self = <MoinMoin.wikimacro.Macro instance>, args = None

 /usr/lib/python2.3/site-packages/MoinMoin/wikimacro.py in _macro_WordIndex(self=<MoinMoin.wikimacro.Macro instance>, args=None)
  210         s = ''
  211         # Get page list readable by current user
  212         pages = self.request.rootpage.getPageList()
  213         map = {}
  214         # XXX This re should be compiled once and cached
pages undefined, self = <MoinMoin.wikimacro.Macro instance>, self.request = <MoinMoin.request.RequestCGI instance>, self.request.rootpage = <MoinMoin.Page.Page instance>, self.request.rootpage.getPageList = <bound method Page.getPageList of <MoinMoin.Page.Page instance>>

 /usr/lib/python2.3/site-packages/MoinMoin/Page.py in getPageList(self=<MoinMoin.Page.Page instance>, user=<MoinMoin.user.User instance>, exists=1, filter=None)
  639 
  640                 # Filter out page user may not read.
  641                 if user and not user.may.read(name): 
  642                     continue
  643 
user = <MoinMoin.user.User instance>, user.may = <MoinMoin.security.Permissions instance>, user.may.read = <function <lambda>>, name = u'LocalSpellingWords'

 /usr/lib/python2.3/site-packages/MoinMoin/security.py in (pagename=u'LocalSpellingWords', Page=<class MoinMoin.Page.Page>, request=<MoinMoin.request.RequestCGI instance>, 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'LocalSpellingWords', Page = <class MoinMoin.Page.Page>, request = <MoinMoin.request.RequestCGI instance>, attr = 'read', ).getACL undefined, ).may undefined, self = <MoinMoin.security.Permissions instance>, self.name = ''

 /usr/lib/python2.3/site-packages/MoinMoin/Page.py in getACL(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI instance>)
 1519             # Parse acl from page and save in cache
 1520             if exists:
 1521                 body = self.get_raw_body()
 1522             else:
 1523                 body = Page(request, self.page_name, rev=revision).get_raw_body()
body undefined, self = <MoinMoin.Page.Page instance>, self.get_raw_body = <bound method Page.get_raw_body of <MoinMoin.Page.Page instance>>

 /usr/lib/python2.3/site-packages/MoinMoin/Page.py in get_raw_body(self=<MoinMoin.Page.Page instance>)
  741             # read file content and make sure it is closed properly
  742             try:
  743                 text = file.read()
  744                 text = self.decodeTextMimeType(text)
  745                 self.set_raw_body(text)
text undefined, file = <closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, file.read = <bound method StreamReaderWriter.read of <closed...calSpellingWords/revisions/00000001', mode 'rb'>>

 /usr/lib/python2.3/codecs.py in read(self=<closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, size=-1)
  378     def read(self, size=-1):
  379 
  380         return self.reader.read(size)
  381 
  382     def readline(self, size=None):
self = <closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, self.reader = <closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, self.reader.read = <bound method StreamReader.read of <closed file ...calSpellingWords/revisions/00000001', mode 'rb'>>, size = -1

 /usr/lib/python2.3/codecs.py in read(self=<closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, size=-1)
  251         # Unsliced reading:
  252         if size < 0:
  253             return self.decode(self.stream.read(), self.errors)[0]
  254 
  255         # Sliced reading:
self = <closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, self.decode = <built-in function utf_8_decode>, self.stream = <closed file './underlay/pages/LocalSpellingWords/revisions/00000001', mode 'rb'>, self.stream.read = <built-in method read of file object>, self.errors = 'strict'

UnicodeDecodeError: 'utf8' codec can't decode bytes in position 1-6: unsupported Unicode code range
      __doc__ = 'Unicode decoding error.'
      __getitem__ = <bound method UnicodeDecodeError.__getitem__ of <exceptions.UnicodeDecodeError instance>>
      __init__ = <bound method UnicodeDecodeError.__init__ of <exceptions.UnicodeDecodeError instance>>
      __module__ = 'exceptions'
      __str__ = <bound method UnicodeDecodeError.__str__ of <exceptions.UnicodeDecodeError instance>>
      args = ('utf8', 'J\xfcrgen Hermann Python MoinMoin moin\nDebian GNU\n', 1, 7, 'unsupported Unicode code range')
      encoding = 'utf8'
      end = 7
      object = 'J\xfcrgen Hermann Python MoinMoin moin\nDebian GNU\n'
      reason = 'unsupported Unicode code range'
      start = 1