Тест Rss

--> -->

UnicodeDecodeError

'ascii' codec can't decode byte 0x83 in position 7: 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. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object at 0x1ee7490>)

    1. 1205 self.page.send_page(self, msg=msg)
    2. 1206 else:
    3. 1207 handler(self.page.page_name, self)
    4. 1208
    5. 1209 # generate page footer (actions that do not want this footer use
    • handler = <function do_show at 0x3d0bb18>
    • self = <MoinMoin.request.RequestCGI object at 0x1ee7490>
    • self.page = <MoinMoin.Page.Page instance at 0x35d9998>
    • self.page.page_name = u'BorisPankin/RssTest'
  2. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/wikiaction.py in do_show (pagename=u'BorisPankin/RssTest', request=<MoinMoin.request.RequestCGI object at 0x1ee7490>)

    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 at 0x35c5a70>
    • request = <MoinMoin.request.RequestCGI object at 0x1ee7490>
    • pagename = u'BorisPankin/RssTest'
    • ).send_page undefined
    • count_hit undefined
  3. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0x4027170>, request=<MoinMoin.request.RequestCGI object at 0x1ee7490>, msg='', **keywords={'count_hit': 1})

    1. 1254 format_args=pi_formatargs,
    2. 1255 do_cache=do_cache,
    3. 1256 start_line=pi_lines)
    4. 1257
    5. 1258 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  4. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0x4027170>, request=<MoinMoin.request.RequestCGI object at 0x1ee7490>, Parser=<class MoinMoin.parser.wiki.Parser at 0x411be30>, body=u'== \u0422\u0435\u0441\u0442 Rss ==\n\n[[RSSReader(http://aabp.livejournal.com/data/rss, allow_html)]]\n', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1345 try:
    2. 1346 code = self.loadCache(request)
    3. 1347 self.execute(request, parser, code)
    4. 1348 except Exception, e:
    5. 1349 if not is_cache_exception(e):
    • self = <MoinMoin.Page.Page instance at 0x4027170>
    • self.execute = <bound method Page.execute of <MoinMoin.Page.Page instance at 0x4027170>>
    • request = <MoinMoin.request.RequestCGI object at 0x1ee7490>
    • parser = <MoinMoin.parser.wiki.Parser instance at 0x3d82e60>
    • code = <code object <module> at 0x412fa80, file "BorisPankin/RssTest", line 2>
  5. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/Page.py in execute (self=<MoinMoin.Page.Page instance at 0x4027170>, request=<MoinMoin.request.RequestCGI object at 0x1ee7490>, parser=<MoinMoin.parser.wiki.Parser instance at 0x3d82e60>, code=<code object <module> at 0x412fa80, file "BorisPankin/RssTest", line 2>)

    1. 1374 __file__ = os.path.join(MoinMoin.__loader__.archive, 'dummy')
    2. 1375 try:
    3. 1376 exec code
    4. 1377 except 'CacheNeedsUpdate':
    5. 1378 raise Exception('CacheNeedsUpdate')
    • code = <code object <module> at 0x412fa80, file "BorisPankin/RssTest", line 2>
  6. /www/aabp.pankin.ru/html/cgi-bin/BorisPankin/RssTest in ()

  7. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/formatter/base.py in macro (self=<MoinMoin.formatter.text_html.Formatter instance at 0x3d82cf8>, macro_obj=<MoinMoin.wikimacro.Macro instance at 0x4137680>, name=u'RSSReader', args=u'http://aabp.livejournal.com/data/rss, allow_html')

    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 at 0x4137680>
    • macro_obj.execute = <bound method Macro.execute of <MoinMoin.wikimacro.Macro instance at 0x4137680>>
    • name = u'RSSReader'
    • args = u'http://aabp.livejournal.com/data/rss, allow_html'
  8. /www/aabp.pankin.ru/.local/lib/python2.5/site-packages/MoinMoin/wikimacro.py in execute (self=<MoinMoin.wikimacro.Macro instance at 0x4137680>, macro_name=u'RSSReader', args=u'http://aabp.livejournal.com/data/rss, allow_html')

    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 at 0x413c8c0>
    • self = <MoinMoin.wikimacro.Macro instance at 0x4137680>
    • args = u'http://aabp.livejournal.com/data/rss, allow_html'
  9. /www/aabp.pankin.ru/html/data/plugin/macro/RSSReader.py in execute (macro=<MoinMoin.wikimacro.Macro instance at 0x4137680>, args=u'http://aabp.livejournal.com/data/rss, allow_html')

    1. 121 except:
    2. 122 allow_html = False
    3. 123
    4. 124 rss = RSStoWiki(macro, macro_args[0], allow_html)
    5. 125 return rss.get_output()
    • rss = <wikiconfig.plugin.macro.RSSReader.RSStoWiki instance at 0x4137638>
    • rss.get_output = <bound method RSStoWiki.get_output of <wikiconfi...macro.RSSReader.RSStoWiki instance at 0x4137638>>
  10. /www/aabp.pankin.ru/html/data/plugin/macro/RSSReader.py in get_output (self=<wikiconfig.plugin.macro.RSSReader.RSStoWiki instance at 0x4137638>)

    1. 110 self.get_entries()
    2. 111 self.get_rule()
    3. 112 return ''.join(self.result)
    4. 113
    5. 114 def execute(macro, args):
    • self = <wikiconfig.plugin.macro.RSSReader.RSStoWiki instance at 0x4137638>
    • self.result = [u'\n<h1>Boris Pankin</h1>\n', u'\n<h2>Boris Pankin - LiveJournal.com</h2>\n', u'<p>Boris Pankin - LiveJournal.com', u'<a href="http://aabp.livejournal.com/"><img alt=...]" width="11" /> http://aabp.livejournal.com/</a>', '<hr class="hr1" />', u'\n<h3></h3>\n', u'<p>Wed, 01 Sep 2010 10:17:18 GMT', '<p>', u'4 \u0441\u0435\u043d\u0442\u044f\u0431\u0440\u044f, \u0441\u0443\u0431\u0431\u043e\u0442\u0430<br />\u041f\u0440\u0438\u0433\u043b\u0430\u0448\u0430\u0435\u043c \u0432\u0441\u0435\u0445 \u043d\u0430 \u0442\u0432\u043e\u0440...\u0436\u043d\u0438\u043a\u043e\u0432.<br />\u041d\u0430\u0447\u0430\u043b\u043e \u0432 18.00.<br />\u0412\u0445\u043e\u0434 \u0441\u0432\u043e\u0431\u043e\u0434\u043d\u044b\u0439.', '', u'<a href="http://aabp.livejournal.com/279982.html...1" /> http://aabp.livejournal.com/279982.html</a>', u'\n<h3>The Doors - Alabama Song</h3>\n', u'<p>Tue, 31 Aug 2010 07:13:26 GMT', '<p>', u'\u0414\u043e\u0440\u043e\u0433\u043e\u0439 bhost, \u0437\u0430\u0447\u0435\u043c \u0442\u0435\u0431\u0435 <a href="http://twitte...\u0430\u043a \u043d\u0435 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u044b, \u0442\u0430\u043c \u0442\u0430\u043a \u043d\u0438...\u0447\u0435\u0433\u043e \u0438 \u043d\u0435 \u043f\u043e\u044f\u0432\u0438\u043b\u043e\u0441\u044c?', '', u'<a href="http://aabp.livejournal.com/279623.html...1" /> http://aabp.livejournal.com/279623.html</a>', u'\n<h3>\u043f\u043e\u0441\u0442\u043f\u0440\u0430\u0437\u0434\u043d\u0438\u0447\u043d\u043e\u0435</h3>\n', u'<p>Mon, 30 Aug 2010 07:57:10 GMT', '<p>', ...]

UnicodeDecodeError

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

  • args = ('ascii', '\n<h3>N\x17\x83\xa2\x8a\xec.\x8b\xde\x1d\xea\xcci\xd9r</h3>\n', 7, 8, 'ordinal not in range(128)')
  • encoding = 'ascii'
  • end = 8
  • message = ''
  • object = '\n<h3>N\x17\x83\xa2\x8a\xec.\x8b\xde\x1d\xea\xcci\xd9r</h3>\n'
  • reason = 'ordinal not in range(128)'
  • start = 7

System Details

  • Date: Wed, 08 Sep 2010 03:37:09 +0000
  • Platform: FreeBSD s02.bhost.ru 7.3-RC1 FreeBSD 7.3-RC1 #0: Fri Feb 19 21:32:25 MSK 2010 root@s02.bhost.ru:/usr/obj/usr/src/sys/GENERIC amd64
  • Python: Python 2.6.2 (/usr/local/bin/python)
  • MoinMoin: Release 1.5.8 (release)