• Immutable Page
  • Info
  • Attachments

VersionXslt

--> -->

UnicodeDecodeError

'ascii' codec can't decode byte 0xc5 in position 540: 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. /var/www/moin-test/MoinMoin/request.py in run (self=<MoinMoin.request.RequestFastCGI object>)

    1. 1023 # Visit pagename
    2. 1024 self.page = Page(self, pagename)
    3. 1025 self.page.send_page(self, count_hit=1)
    4. 1026
    5. 1027 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestFastCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance>>
    • count_hit undefined
  2. /var/www/moin-test/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, msg='', **keywords={'count_hit': 1})

    1. 1209 format_args=pi_formatargs,
    2. 1210 do_cache=do_cache,
    3. 1211 start_line=pi_lines)
    4. 1212
    5. 1213 # check for pending footnotes
    • start_line undefined
    • pi_lines = 9
  3. /var/www/moin-test/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, Parser=<class MoinMoin.parser.xslt.Parser>, body=u'<?xml version="1.0"?>\n\n<?xml-stylesheet href="Ve...rsion\')"/>\n </xsl:template>\n\n</xsl:stylesheet>\n', format_args=u'', do_cache=1, **kw={'start_line': 9})

    1. 1296 except 'CacheNeedsUpdate':
    2. 1297 try:
    3. 1298 code = self.makeCache(request, parser)
    4. 1299 self.execute(request, parser, code)
    5. 1300 except 'CacheNeedsUpdate':
    • code = <code object ? at 0x1d39f650, file "VersionXslt", line 2>
    • self = <MoinMoin.Page.Page instance>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page instance>>
    • request = <MoinMoin.request.RequestFastCGI object>
    • parser = <MoinMoin.parser.xslt.Parser instance>
  4. /var/www/moin-test/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestFastCGI object>, parser=<MoinMoin.parser.xslt.Parser instance>)

    1. 1348 saved_current_lang = request.current_lang
    2. 1349 try:
    3. 1350 text = request.redirectedOutput(parser.format, formatter)
    4. 1351 finally:
    5. 1352 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.RequestFastCGI object>
    • request.redirectedOutput = <bound method RequestFastCGI.redirectedOutput of <MoinMoin.request.RequestFastCGI object>>
    • parser = <MoinMoin.parser.xslt.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.xslt.Parser instance>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance>
  5. /var/www/moin-test/MoinMoin/request.py in redirectedOutput (self=<MoinMoin.request.RequestFastCGI object>, function=<bound method Parser.format of <MoinMoin.parser.xslt.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})

    1. 621 finally:
    2. 622 self.redirect()
    3. 623 text = buffer.getvalue()
    4. 624 buffer.close()
    5. 625 return text
    • text undefined
    • buffer = <StringIO.StringIO instance>
    • buffer.getvalue = <bound method StringIO.getvalue of <StringIO.StringIO instance>>
  6. /usr/lib64/python2.4/StringIO.py in getvalue (self=<StringIO.StringIO instance>)

    1. 269 """
    2. 270 if self.buflist:
    3. 271 self.buf += ''.join(self.buflist)
    4. 272 self.buflist = []
    5. 273 return self.buf
    • self = <StringIO.StringIO instance>
    • self.buf = ''
    • ''.join = <built-in method join of str object>
    • self.buflist = [u'<div class="message">XSLT option disabled, pleas...pOnConfiguration">HelpOnConfiguration</a>.</div>\n', '<pre>\n', '&lt;?xml version="1.0"?&gt;\n\n&lt;?xml-stylesheet... &lt;/xsl:template&gt;\n\n&lt;/xsl:stylesheet&gt;\n', '</pre>\n']

UnicodeDecodeError

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

  • args = ('ascii', '&lt;?xml version="1.0"?&gt;\n\n&lt;?xml-stylesheet... &lt;/xsl:template&gt;\n\n&lt;/xsl:stylesheet&gt;\n', 540, 541, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 541
  • object = '&lt;?xml version="1.0"?&gt;\n\n&lt;?xml-stylesheet... &lt;/xsl:template&gt;\n\n&lt;/xsl:stylesheet&gt;\n'
  • reason = 'ordinal not in range(128)'
  • start = 540

System Details