→Graphisoft Home →Download ArchiCAD Educational →Download ArchiCAD Trial →ArchiCAD Forum

--> -->

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. C:\wiki\Python24\lib\site-packages\MoinMoin\request.py in run (self=<MoinMoin.request.RequestModPy object>)

    1. 1149 from MoinMoin.wikiaction import getHandler
    2. 1150 handler = getHandler(self, action)
    3. 1151 handler(self.page.page_name, self)
    4. 1152
    5. 1153 # generate page footer (actions that do not want this footer use
    • handler = <function do_show>
    • self = <MoinMoin.request.RequestModPy object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'ConversionWarnings'
  2. C:\wiki\Python24\lib\site-packages\MoinMoin\wikiaction.py in do_show (pagename=u'ConversionWarnings', 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'ConversionWarnings'
    • ).send_page undefined
    • count_hit undefined
  3. C:\wiki\Python24\lib\site-packages\MoinMoin\Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>, msg='', **keywords={'count_hit': 1})

    1. 1251 format_args=pi_formatargs,
    2. 1252 do_cache=do_cache,
    3. 1253 start_line=pi_lines)
    4. 1254
    5. 1255 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  4. C:\wiki\Python24\lib\site-packages\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'[[FullSearch(linkto:ConversionWarnings -t:"Conve...t:"ConversionWarnings")]]\n\n----\nmore (WikiNodes)\n', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1342 try:
    2. 1343 code = self.loadCache(request)
    3. 1344 self.execute(request, parser, code)
    4. 1345 except Exception, e:
    5. 1346 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestModPy object>
    • parser = <MoinMoin.parser.wiki.Parser instance>
    • code = <code object ? at 07BA5DE0, file "ConversionWarnings", line 2>
  5. C:\wiki\Python24\lib\site-packages\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 07BA5DE0, file "ConversionWarnings", line 2>)

    1. 1371 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1372 try:
    3. 1373 exec code
    4. 1374 except 'CacheNeedsUpdate':
    5. 1375 raise Exception('CacheNeedsUpdate')
    • code = <code object ? at 07BA5DE0, file "ConversionWarnings", line 2>
  6. C:\wiki\Apache2\ConversionWarnings in ?

  7. C:\wiki\Python24\lib\site-packages\MoinMoin\formatter\base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.wikimacro.Macro instance>, name=u'FullSearch', args=u'linkto:ConversionWarnings -t:"ConversionWarnings" -t:"ConversionWarnings"')

    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'FullSearch'
    • args = u'linkto:ConversionWarnings -t:"ConversionWarnings" -t:"ConversionWarnings"'
  8. C:\wiki\Python24\lib\site-packages\MoinMoin\wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance>, macro_name=u'FullSearch', args=u'linkto:ConversionWarnings -t:"ConversionWarnings" -t:"ConversionWarnings"')

    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 = u'linkto:ConversionWarnings -t:"ConversionWarnings" -t:"ConversionWarnings"'
  9. C:\wiki\Python24\lib\site-packages\MoinMoin\macro\FullSearch.py in execute (macro=<MoinMoin.wikimacro.Macro instance>, needle=u'linkto:ConversionWarnings -t:"ConversionWarnings" -t:"ConversionWarnings"')

    1. 56 # Search the pages and return the results
    2. 57 query = search.QueryParser().parse_query(needle)
    3. 58 results = search.searchPages(request, query)
    4. 59 results.sortByPagename()
    5. 60
    • results undefined
    • global search = <module 'MoinMoin.search' from 'C:\wiki\Python24\lib\site-packages\MoinMoin\search.pyc'>
    • search.searchPages = <function searchPages>
    • request = <MoinMoin.request.RequestModPy object>
    • query = <MoinMoin.search.AndExpression instance>
  10. C:\wiki\Python24\lib\site-packages\MoinMoin\search.py in searchPages (request=<MoinMoin.request.RequestModPy object>, query=<MoinMoin.search.AndExpression instance>, **kw={})

    1. 1265 @rtype: SearchResults instance
    2. 1266 @return: search results
    3. 1267 """
    4. 1268 return Search(request, query).run()
    5. 1269
    • global Search = <class MoinMoin.search.Search>
    • request = <MoinMoin.request.RequestModPy object>
    • query = <MoinMoin.search.AndExpression instance>
    • ).run undefined
  11. C:\wiki\Python24\lib\site-packages\MoinMoin\search.py in run (self=<MoinMoin.search.Search instance>)

    1. 1166 hits = self._lupySearch()
    2. 1167 else:
    3. 1168 hits = self._moinSearch()
    4. 1169
    5. 1170 # important - filter deleted pages or pages the user may not read!
    • hits undefined
    • self = <MoinMoin.search.Search instance>
    • self._moinSearch = <bound method Search._moinSearch of <MoinMoin.search.Search instance>>
  12. C:\wiki\Python24\lib\site-packages\MoinMoin\search.py in _moinSearch (self=<MoinMoin.search.Search instance>, pages=[(u'Archicad 10/Project Migration/File and project sizes', ''), (u'KeyboardShortcuts', ''), (u'Archicad 10/Project Migration/Title Type name in PM is longer than 27 characters', ''), (u'HardwareTechNotes', ''), (u'ProjectCacheData', ''), (u'TechNotes/How do I offset a line/polyline/wall', ''), (u'CategoryInputOutput', ''), (u'WIBU-Key', ''), (u'ErrorMessages', ''), (u'TechNotes/OLE limits from Word', ''), (u'Bugs/Door-Window Sill Height cannot be greater than Head Height', ''), (u'Zone Stamp', ''), (u'WikiHomePage', ''), (u'Bugs/Bug in ArchiCAD Student verson', ''), (u'TechNotes/Reviewer Requirements', ''), (u'TechNotes/Copying Selections Between Floor Plan and 3D Window', ''), (u'AutoText', ''), (u'TechNotes/Exporting only parts of the project', ''), (u'Bugs/blank 3D window', ''), (u'LibraryBugs', ''), ...])

    1. 1227 hits.append((page, attachment, None))
    2. 1228 else:
    3. 1229 match = self.query.search(page)
    4. 1230 if match:
    5. 1231 hits.append((page, attachment, match))
    • match undefined
    • self = <MoinMoin.search.Search instance>
    • self.query = <MoinMoin.search.AndExpression instance>
    • self.query.search = <bound method AndExpression.search of <MoinMoin.search.AndExpression instance>>
    • page = <MoinMoin.Page.Page instance>
  13. C:\wiki\Python24\lib\site-packages\MoinMoin\search.py in search (self=<MoinMoin.search.AndExpression instance>, page=<MoinMoin.Page.Page instance>)

    1. 160 matches = []
    2. 161 for term in self._subterms:
    3. 162 result = term.search(page)
    4. 163 if not result:
    5. 164 return None
    • result = [<MoinMoin.search.Match object>]
    • term = <MoinMoin.search.LinkSearch instance>
    • term.search = <bound method LinkSearch.search of <MoinMoin.search.LinkSearch instance>>
    • page = <MoinMoin.Page.Page instance>
  14. C:\wiki\Python24\lib\site-packages\MoinMoin\search.py in search (self=<MoinMoin.search.LinkSearch instance>, page=<MoinMoin.Page.Page instance>)

    1. 398 Found = True
    2. 399
    3. 400 for link in page.getPageLinks(page.request):
    4. 401 if ((self.static and self.pattern == link) or
    5. 402 (not self.static and self.search_re.match(link))):
    • link undefined
    • page = <MoinMoin.Page.Page instance>
    • page.getPageLinks = <bound method Page.getPageLinks of <MoinMoin.Page.Page instance>>
    • page.request = <MoinMoin.request.RequestModPy object>
  15. C:\wiki\Python24\lib\site-packages\MoinMoin\Page.py in getPageLinks (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestModPy object>)

    1. 1531 cache.update('\n'.join(links) + '\n', True)
    2. 1532 return links
    3. 1533 return cache.content(True).split('\n')
    4. 1534
    5. 1535 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
  16. C:\wiki\Python24\lib\site-packages\MoinMoin\caching.py in content (self=<MoinMoin.caching.CacheEntry instance>, decode=True)

    1. 109 self.request.log("Can't acquire read lock in %s" % self.lock_dir)
    2. 110 if decode:
    3. 111 data = data.decode(config.charset)
    4. 112 return data
    5. 113
    • data = '\x80\x02]q\x01(X\n\x00\x00\x00LaszloNagyq\x02X\x02\x00\x00\x00BRq\x03X\t\x00\x00\x00PlotMakerq\x04X\x13\x00\x00\x00CategoryPerformanceq\x05X\r\x00\x00\x00CategorySetupq\x06e.'
    • data.decode = <built-in method decode of str object>
    • global config = <module 'MoinMoin.config' from 'C:\wiki\Python24\lib\site-packages\MoinMoin\config.pyc'>
    • config.charset = 'utf-8'
  17. C:\wiki\Python24\Lib\encodings\utf_8.py in decode (input='\x80\x02]q\x01(X\n\x00\x00\x00LaszloNagyq\x02X\x02\x00\x00\x00BRq\x03X\t\x00\x00\x00PlotMakerq\x04X\x13\x00\x00\x00CategoryPerformanceq\x05X\r\x00\x00\x00CategorySetupq\x06e.', 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 StreamWriter(codecs.StreamWriter):
    • global codecs = <module 'codecs' from 'C:\wiki\Python24\Lib\codecs.pyc'>
    • codecs.utf_8_decode = <built-in function utf_8_decode>
    • input = '\x80\x02]q\x01(X\n\x00\x00\x00LaszloNagyq\x02X\x02\x00\x00\x00BRq\x03X\t\x00\x00\x00PlotMakerq\x04X\x13\x00\x00\x00CategoryPerformanceq\x05X\r\x00\x00\x00CategorySetupq\x06e.'
    • errors = 'strict'
    • builtin True = True

UnicodeDecodeError

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

  • args = ('utf8', '\x80\x02]q\x01(X\n\x00\x00\x00LaszloNagyq\x02X\x02\x00\x00\x00BRq\x03X\t\x00\x00\x00PlotMakerq\x04X\x13\x00\x00\x00CategoryPerformanceq\x05X\r\x00\x00\x00CategorySetupq\x06e.', 0, 1, 'unexpected code byte')
  • encoding = 'utf8'
  • end = 1
  • object = '\x80\x02]q\x01(X\n\x00\x00\x00LaszloNagyq\x02X\x02\x00\x00\x00BRq\x03X\t\x00\x00\x00PlotMakerq\x04X\x13\x00\x00\x00CategoryPerformanceq\x05X\r\x00\x00\x00CategorySetupq\x06e.'
  • reason = 'unexpected code byte'
  • start = 0

System Details

  • Date: Wed, 20 Aug 2008 12:06:35 +0000
  • Platform: win32 (nt)
  • Python: Python 2.4.3 (C:\wiki\Apache2\bin\Apache.exe)
  • MoinMoin: Release 1.5.6 (release)