--> -->

UnicodeDecodeError

'ascii' codec can't decode byte 0xc2 in position 3: ordinal not in range(128)

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/lib/python2.6/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object at 0x15babd0>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show at 0x164f848>
    • self = <MoinMoin.request.request_cgi.Request object at 0x15babd0>
    • self.page = <MoinMoin.Page.Page object at 0x17b4cd0>
    • self.page.page_name = u'FindPage'
  2. /usr/lib/python2.6/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'FindPage', request=<MoinMoin.request.request_cgi.Request object at 0x15babd0>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object at 0x16c2f50>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1199 format_args=pi['formatargs'],
    2. 1200 do_cache=do_cache,
    3. 1201 start_line=pi['lines'])
    4. 1202
    5. 1203 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance at 0x146b3b0>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 7}
  4. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object at 0x16c2f50>, request=<MoinMoin.request.request_cgi.Request object at 0x15babd0>, body=u'\n<<AdvancedSearch>>\n\nYou can use regular express...* SiteNavigation: a longer list of things to try\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 7})

    1. 1287 try:
    2. 1288 code = self.loadCache(request)
    3. 1289 self.execute(request, parser, code)
    4. 1290 except Exception, e:
    5. 1291 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page object at 0x16c2f50>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page object at 0x16c2f50>>
    • request = <MoinMoin.request.request_cgi.Request object at 0x15babd0>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance at 0x17a5128>
    • code = <code object <module> at 0x1803198, file "FindPage", line 2>
  5. /usr/lib/python2.6/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page object at 0x16c2f50>, request=<MoinMoin.request.request_cgi.Request object at 0x15babd0>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance at 0x17a5128>, code=<code object <module> at 0x1803198, file "FindPage", line 2>)

    1. 1318 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1319 try:
    3. 1320 exec code
    4. 1321 except "CacheNeedsUpdate": # convert the exception
    5. 1322 raise Exception("CacheNeedsUpdate")
    • code = <code object <module> at 0x1803198, file "FindPage", line 2>
  6. /web/chbcwiki/cgi-bin/FindPage in ()

  7. /usr/lib/python2.6/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x146b488>, macro_obj=<MoinMoin.macro.Macro instance at 0x146b3f8>, name=u'AdvancedSearch', args=None, markup=u'<<AdvancedSearch>>')

    1. 308 # call the macro
    2. 309 try:
    3. 310 return macro_obj.execute(name, args)
    4. 311 except ImportError, err:
    5. 312 errmsg = unicode(err)
    • macro_obj = <MoinMoin.macro.Macro instance at 0x146b3f8>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance at 0x146b3f8>>
    • name = u'AdvancedSearch'
    • args = None
  8. /usr/lib/python2.6/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance at 0x146b3f8>, macro_name=u'AdvancedSearch', args=None)

    1. 126 else:
    2. 127 raise ImportError("Cannot load macro %s" % macro_name)
    3. 128 return execute(self, args)
    4. 129
    5. 130 def _m_lang(self, text):
    • execute = <function execute at 0x18039b0>
    • self = <MoinMoin.macro.Macro instance at 0x146b3f8>
    • args = None
  9. /usr/lib/python2.6/site-packages/MoinMoin/macro/AdvancedSearch.py in execute (macro=<MoinMoin.macro.Macro instance at 0x146b3f8>, needle=None)

    1. 186
    2. 187 def execute(macro, needle):
    3. 188 # for now, just show the advanced ui
    4. 189 return advanced_ui(macro)
    5. 190
    • global advanced_ui = <function advanced_ui at 0x1803938>
    • macro = <MoinMoin.macro.Macro instance at 0x146b3f8>
  10. /usr/lib/python2.6/site-packages/MoinMoin/macro/AdvancedSearch.py in advanced_ui (macro=<MoinMoin.macro.Macro instance at 0x146b3f8>)

    1. 139 (_('Categories'), unicode(c_select), ''),
    2. 140 (_('Language'), unicode(lang_select), ''),
    3. 141 (_('File Type'), unicode(mt_select), ''),
    4. 142 ('', html.INPUT(type='checkbox', name='titlesearch',
    5. 143 value='1', checked=form_get(request, 'titlesearch', escaped=True),
    • _ = <function <lambda> at 0x15c9938>
    • builtin unicode = <type 'unicode'>
    • mt_select = <MoinMoin.widget.html.SELECT instance at 0x1829908>
  11. /usr/lib/python2.6/site-packages/MoinMoin/widget/html.py in __unicode__ (self=<MoinMoin.widget.html.SELECT instance at 0x1829908>)

    1. 120 childout = []
    2. 121 for c in self.children:
    3. 122 co = unicode(c)
    4. 123 childout.append(co)
    5. 124 return "<%s>%s</%s>" % (
    • co = u'<option value="application/x-gzip">*.gz - application/x-gzip</option>'
    • builtin unicode = <type 'unicode'>
    • c = <MoinMoin.widget.html.OPTION instance at 0x1838878>
  12. /usr/lib/python2.6/site-packages/MoinMoin/widget/html.py in __unicode__ (self=<MoinMoin.widget.html.OPTION instance at 0x1838878>)

    1. 120 childout = []
    2. 121 for c in self.children:
    3. 122 co = unicode(c)
    4. 123 childout.append(co)
    5. 124 return "<%s>%s</%s>" % (
    • co undefined
    • builtin unicode = <type 'unicode'>
    • c = <MoinMoin.widget.html.Text instance at 0x1838908>

UnicodeDecodeError

'ascii' codec can't decode byte 0xc2 in position 3: ordinal not in range(128)

  • args = ('ascii', '*.g\xc2\xb3 - application/vnd.geocube+xml', 3, 4, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 4
  • message = ''
  • object = '*.g\xc2\xb3 - application/vnd.geocube+xml'
  • reason = 'ordinal not in range(128)'
  • start = 3

System Details

  • Date: Sat, 04 Sep 2010 06:55:39 +0000
  • Platform: Linux greyarea.cam.ivimey.org 2.6.33.6-147.fc13.x86_64 #1 SMP Tue Jul 6 22:32:17 UTC 2010 x86_64
  • Python: Python 2.6.4 (/usr/bin/python)
  • MoinMoin: Release 1.8.4 (release)