--> -->

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. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)

    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>
    • self = <MoinMoin.request.request_wsgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'FindPage'
  2. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'FindPage', request=<MoinMoin.request.request_wsgi.Request object>, 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. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1198 format_args=pi['formatargs'],
    2. 1199 do_cache=do_cache,
    3. 1200 start_line=pi['lines'])
    4. 1201
    5. 1202 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 7}
  4. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, 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. 1288
    2. 1289 if not (do_cache and self.canUseCache(Parser)):
    3. 1290 self.format(parser)
    4. 1291 else:
    5. 1292 try:
    • self = <MoinMoin.Page.Page object>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1309 def format(self, parser):
    2. 1310 """ Format and write page content without caching """
    3. 1311 parser.format(self.formatter)
    4. 1312
    5. 1313 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • self = <MoinMoin.Page.Page object>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
  6. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>, inhibit_p=False)

    1. 1545
    2. 1546 # Scan line, format and write
    3. 1547 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1548 self.request.write(formatted_line)
    5. 1549
    • formatted_line undefined
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • line = u'<<AdvancedSearch>> '
    • inhibit_p = False
  7. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<AdvancedSearch>> ', inhibit_p=False)

    1. 1359 self.in_table or self.in_list):
    2. 1360 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1361 result.append(self.replace(match, inhibit_p))
    4. 1362 end = match.end()
    5. 1363 lastpos = end
    • result = ['<p class="line867">']
    • result.append = <built-in method append of list object>
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.replace = <bound method Parser.replace of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • match = <_sre.SRE_Match object>
    • inhibit_p = False
  8. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False)

    1. 1403 # Get replace method and replace hit
    2. 1404 replace_func = getattr(self, '_%s_repl' % type)
    3. 1405 result.append(replace_func(hit, match.groupdict()))
    4. 1406 return ''.join(result)
    5. 1407 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • hit = u'AdvancedSearch'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  9. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'AdvancedSearch', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1326 if self.macro is None:
    2. 1327 self.macro = macro.Macro(self)
    3. 1328 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1329 _macro_name_repl = _macro_repl
    5. 1330 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_html.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'AdvancedSearch'
    • macro_args = None
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object>
  10. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/formatter/__init__.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, 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>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.macro.Macro instance>>
    • name = u'AdvancedSearch'
    • args = None
  11. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/macro/__init__.py in execute (self=<MoinMoin.macro.Macro instance>, macro_name=u'AdvancedSearch', args=None)

    1. 127 else:
    2. 128 raise ImportError("Cannot load macro %s" % macro_name)
    3. 129 return execute(self, args)
    4. 130
    5. 131 def _m_lang(self, text):
    • execute = <function execute>
    • self = <MoinMoin.macro.Macro instance>
    • args = None
  12. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/macro/AdvancedSearch.py in execute (macro=<MoinMoin.macro.Macro instance>, 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>
    • macro = <MoinMoin.macro.Macro instance>
  13. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/macro/AdvancedSearch.py in advanced_ui (macro=<MoinMoin.macro.Macro instance>)

    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>>
    • builtin unicode = <type 'unicode'>
    • mt_select = <MoinMoin.widget.html.SELECT instance>
  14. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/widget/html.py in __unicode__ (self=<MoinMoin.widget.html.SELECT instance>)

    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/gzip">*.gz - application/gzip</option>'
    • builtin unicode = <type 'unicode'>
    • c = <MoinMoin.widget.html.OPTION instance>
  15. /home/eqsource/.local/lib/python2.7/site-packages/MoinMoin/widget/html.py in __unicode__ (self=<MoinMoin.widget.html.OPTION instance>)

    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>

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, 12 Apr 2025 14:18:26 +0000
  • Platform: Linux opal6.opalstack.com 3.10.0-1160.119.1.el7.tuxcare.els4.x86_64 #1 SMP Sat Aug 31 06:58:57 UTC 2024 x86_64
  • Python: Python 2.7.5 (/usr/bin/python)
  • MoinMoin: Release 1.8.8 (release)