A list of non-existing pages including a list of the pages where they are referred 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. /home/moinwikis/MoinMoin/request.py in run (self=<MoinMoin.request.RequestModPy object>)

    1. 1179 pass
    2. 1180 except Exception, err:
    3. 1181 self.fail(err)
    4. 1182
    5. 1183 return self.finish()
    • self = <MoinMoin.request.RequestModPy object>
    • self.fail = <bound method RequestModPy.fail of <MoinMoin.request.RequestModPy object>>
    • err = <exceptions.UnicodeDecodeError instance>
  2. /home/moinwikis/MoinMoin/wikiaction.py in do_show (pagename=u'WantedPages', request=<MoinMoin.request.RequestModPy object>)

    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>
    • request = <MoinMoin.request.RequestModPy object>
    • pagename = u'WantedPages'
    • ).send_page undefined
    • count_hit undefined
  3. /home/moinwikis/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, msg='', **keywords={'count_hit': 1})

    1. 1233 format_args=pi_formatargs,
    2. 1234 do_cache=do_cache,
    3. 1235 start_line=pi_lines)
    4. 1236
    5. 1237 # check for pending footnotes
    • start_line undefined
    • pi_lines = 9
  4. /home/moinwikis/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'A list of non-existing pages including a list of...ages where they are referred to:\n[[WantedPages]]\n', format_args=u'', do_cache=1, **kw={'start_line': 9})

    1. 1319 except Exception, e:
    2. 1320 if not is_cache_exception(e):
    3. 1321 raise
    4. 1322 try:
    5. 1323 code = self.makeCache(request, parser)
  5. /home/moinwikis/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, parser=<MoinMoin.parser.wiki.Parser instance>, code=<code object ? at 0xb6b7a3a0, file "WantedPages", line 2>)

    1. 1347 exec code
    2. 1348 except 'CacheNeedsUpdate':
    3. 1349 raise Exception('CacheNeedsUpdate')
    4. 1350
    5. 1351 def loadCache(self, request):
    • builtin Exception = <class exceptions.Exception>
  6. /WantedPages in ?

  7. /home/moinwikis/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'WantedPages', 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>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance>>
    • name = u'WantedPages'
    • args = None
  8. /home/moinwikis/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'WantedPages', 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>
    • self = <MoinMoin.wikimacro.Macro instance>
    • args = None
  9. /home/moinwikis/MoinMoin/macro/WantedPages.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, args=None)

    1. 44
    2. 45 # Add links to pages which does not exists in pages dict
    3. 46 links = page.getPageLinks(request)
    4. 47 for link in links:
    5. 48 if not link in pages:
    • links = [u'', u'']
    • page = <MoinMoin.Page.Page instance>
    • page.getPageLinks = <bound method Page.getPageLinks of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestModPy object>
  10. /home/moinwikis/MoinMoin/Page.py in getPageLinks (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>)

    1. 1505 cache.update('\n'.join(links) + '\n', True)
    2. 1506 return links
    3. 1507 return cache.content(True).split('\n')
    4. 1508
    5. 1509 def parsePageLinks(self, request):
    • cache = <MoinMoin.caching.CacheEntry instance>
    • cache.content = <bound method CacheEntry.content of <MoinMoin.caching.CacheEntry instance>>
    • builtin True = True
    • ).split undefined
  11. /home/moinwikis/MoinMoin/caching.py in content (self=<MoinMoin.caching.CacheEntry instance>, decode=True)

    1. 132 self.request.log("Can't acquire read lock in %s" % self.lock_dir)
    2. 133 if decode:
    3. 134 data = data.decode(config.charset)
    4. 135 return data
    5. 136
    • data = '\x80\x02]q\x01.'
    • data.decode = <built-in method decode of str object>
    • global config = <module 'MoinMoin.config' from '/home/moinwikis/MoinMoin/config.py'>
    • config.charset = 'utf-8'

UnicodeDecodeError

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

  • args = ('utf8', '\x80\x02]q\x01.', 0, 1, 'unexpected code byte')
  • encoding = 'utf8'
  • end = 1
  • object = '\x80\x02]q\x01.'
  • reason = 'unexpected code byte'
  • start = 0

System Details

  • Date: Mon, 06 Sep 2010 18:44:24 +0000
  • Platform: Linux 3rootfiles.rootfiles.net 2.6.9-89.0.25.ELxenU #1 SMP Mon Apr 19 06:26:27 EDT 2010 i686
  • Python: Python 2.3.4 (/usr/bin/python)
  • MoinMoin: Release 1.5.5a (release)