A list of pages no other page links to: --> -->

UnicodeDecodeError

'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte

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.

  1. /usr/local/lib/python2.5/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>)

    1. 1205 self.page.send_page(self, msg=msg)
    2. 1206 else:
    3. 1207 handler(self.page.page_name, self)
    4. 1208
    5. 1209 # generate page footer (actions that do not want this footer use
    • handler = <function do_show at 0x49e2287c>
    • self = <MoinMoin.request.RequestModPy object at 0x4e38eb4c>
    • self.page = <MoinMoin.Page.Page instance at 0x4cf5d6ac>
    • self.page.page_name = u'OrphanedPages'
  2. /usr/local/lib/python2.5/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'OrphanedPages', request=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>)

    1. 466 else:
    2. 467 request.cacheable = 1
    3. 468 Page(request, pagename).send_page(request, count_hit=1)
    4. 469
    5. 470
    • global Page = <class MoinMoin.Page.Page at 0x49b8408c>
    • request = <MoinMoin.request.RequestModPy object at 0x4e38eb4c>
    • pagename = u'OrphanedPages'
    • ).send_page undefined
    • count_hit undefined
  3. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0x4e4206cc>, request=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>, msg='', **keywords={'count_hit': 1})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 1
  4. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0x4e4206cc>, request=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>, Parser=<class MoinMoin.parser.wiki.Parser at 0x4ac3f11c>, body=u'A list of pages no other page links to: \n[[OrphanedPages]]\n', format_args='', do_cache=1, **kw={'start_line': 1})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance at 0x4e4206cc>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance at 0x4e4206cc>>
    • request = <MoinMoin.request.RequestModPy object at 0x4e38eb4c>
    • parser = <MoinMoin.parser.wiki.Parser instance at 0x4e4203cc>
    • code = <code object <module> at 0x4d101068, file "OrphanedPages", line 2>
  5. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance at 0x4e4206cc>, request=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>, parser=<MoinMoin.parser.wiki.Parser instance at 0x4e4203cc>, code=<code object <module> at 0x4d101068, file "OrphanedPages", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object <module> at 0x4d101068, file "OrphanedPages", line 2>
  6. /OrphanedPages in ()

  7. /usr/local/lib/python2.5/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x4e42056c>, macro_obj=<MoinMoin.wikimacro.Macro instance at 0x4e42094c>, name=u'OrphanedPages', args=None)

    1. 288 def macro(self, macro_obj, name, args):
    2. 289 # call the macro
    3. 290 return macro_obj.execute(name, args)
    4. 291
    5. 292 def _get_bang_args(self, line):
    • macro_obj = <MoinMoin.wikimacro.Macro instance at 0x4e42094c>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance at 0x4e42094c>>
    • name = u'OrphanedPages'
    • args = None
  8. /usr/local/lib/python2.5/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance at 0x4e42094c>, macro_name=u'OrphanedPages', args=None)

    1. 118 else:
    2. 119 raise ImportError("Cannot load macro %s" % macro_name)
    3. 120 return execute(self, args)
    4. 121
    5. 122 def _m_lang(self, text):
    • execute = <function execute at 0x4c656df4>
    • self = <MoinMoin.wikimacro.Macro instance at 0x4e42094c>
    • args = None
  9. /usr/local/lib/python2.5/site-packages/MoinMoin/macro/OrphanedPages.py in execute (macro=<MoinMoin.wikimacro.Macro instance at 0x4e42094c>, args=None)

    1. 22 orphaned.update(pages)
    2. 23 for page in pages.values():
    3. 24 links = page.getPageLinks(macro.request)
    4. 25 for link in links:
    5. 26 if link in orphaned:
    • links = [u'', u'']
    • page = <MoinMoin.Page.Page instance at 0x4f7b762c>
    • page.getPageLinks = <bound method Page.getPageLinks of <MoinMoin.Page.Page instance at 0x4f7b762c>>
    • macro = <MoinMoin.wikimacro.Macro instance at 0x4e42094c>
    • macro.request = <MoinMoin.request.RequestModPy object at 0x4e38eb4c>
  10. /usr/local/lib/python2.5/site-packages/MoinMoin/Page.py in getPageLinks (self=<MoinMoin.Page.Page instance at 0x4f7b762c>, request=<MoinMoin.request.RequestModPy object at 0x4e38eb4c>)

    1. 1534 cache.update('\n'.join(links) + '\n', True)
    2. 1535 return links
    3. 1536 return cache.content(True).split('\n')
    4. 1537
    5. 1538 def parsePageLinks(self, request):
    • cache = <MoinMoin.caching.CacheEntry instance at 0x4f384a4c>
    • cache.content = <bound method CacheEntry.content of <MoinMoin.caching.CacheEntry instance at 0x4f384a4c>>
    • builtin True = True
    • ).split undefined
  11. /usr/local/lib/python2.5/site-packages/MoinMoin/caching.py in content (self=<MoinMoin.caching.CacheEntry instance at 0x4f384a4c>, decode=True)

    1. 110 self.request.log("Can't acquire read lock in %s" % self.lock_dir)
    2. 111 if decode:
    3. 112 data = data.decode(config.charset)
    4. 113 return data
    5. 114
    • data = '\x80\x02]q\x01X\x06\x00\x00\x00JsEasyq\x02a.'
    • data.decode = <built-in method decode of str object at 0x4e482fb0>
    • global config = <module 'MoinMoin.config' from '/usr/local/lib/python2.5/site-packages/MoinMoin/config.pyc'>
    • config.charset = 'utf-8'
  12. /usr/local/lib/python2.5/encodings/utf_8.py in decode (input='\x80\x02]q\x01X\x06\x00\x00\x00JsEasyq\x02a.', errors='strict')

    1. 14
    2. 15 def decode(input, errors='strict'):
    3. 16 return codecs.utf_8_decode(input, errors, True)
    4. 17
    5. 18 class IncrementalEncoder(codecs.IncrementalEncoder):
    • global codecs = <module 'codecs' from '/usr/local/lib/python2.5/codecs.pyc'>
    • codecs.utf_8_decode = <built-in function utf_8_decode>
    • input = '\x80\x02]q\x01X\x06\x00\x00\x00JsEasyq\x02a.'
    • errors = 'strict'
    • builtin True = True

UnicodeDecodeError

'utf8' codec can't decode byte 0x80 in position 0: unexpected code byte

  • args = ('utf8', '\x80\x02]q\x01X\x06\x00\x00\x00JsEasyq\x02a.', 0, 1, 'unexpected code byte')
  • encoding = 'utf8'
  • end = 1
  • message = ''
  • object = '\x80\x02]q\x01X\x06\x00\x00\x00JsEasyq\x02a.'
  • reason = 'unexpected code byte'
  • start = 0

System Details

  • Date: Sat, 22 Nov 2008 22:32:32 +0000
  • Platform: FreeBSD host.woodpecker.org.cn 7.0-RELEASE FreeBSD 7.0-RELEASE #0: Tue Feb 26 03:52:58 CST 2008 delphij@host.woodpecker.org.cn:/usr/obj/usr/src/sys/WOODPECKER i386
  • Python: Python 2.5.2 (/usr/local/bin/python)
  • MoinMoin: Release 1.5.8 (release)