attachment:irss.py of irss

Attachment 'irss.py'

Download

--> -->

SyntaxError

Non-ASCII character '\xc3' in file /home/moin/moin.instance/data/plugin/parser/diff.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (diff.py, line 5)

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/moin/moin/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_fcgi.Request object>)

    1. 1302 self.page.send_page(msg=msg)
    2. 1303 else:
    3. 1304 handler(self.page.page_name, self)
    4. 1305
    5. 1306 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function execute>
    • self = <MoinMoin.request.request_fcgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'irss'
  2. /home/moin/moin/MoinMoin/action/AttachFile.py in execute (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)

    1. 597 elif do == 'view':
    2. 598 if request.user.may.read(pagename):
    3. 599 view_file(pagename, request)
    4. 600 else:
    5. 601 msg = _('You are not allowed to view attachments of this page.', formatted=False)
    • global view_file = <function view_file>
    • pagename = u'irss'
    • request = <MoinMoin.request.request_fcgi.Request object>
  3. /home/moin/moin/MoinMoin/action/AttachFile.py in view_file (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)

    1. 1119 # send body
    2. 1120 request.write(request.formatter.startContent())
    3. 1121 send_viewfile(pagename, request)
    4. 1122 send_uploadform(pagename, request)
    5. 1123 request.write(request.formatter.endContent())
    • global send_viewfile = <function send_viewfile>
    • pagename = u'irss'
    • request = <MoinMoin.request.request_fcgi.Request object>
  4. /home/moin/moin/MoinMoin/action/AttachFile.py in send_viewfile (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)

    1. 1047 elif mt.major == 'text':
    2. 1048 ext = os.path.splitext(filename)[1]
    3. 1049 Parser = wikiutil.getParserForExtension(request.cfg, ext)
    4. 1050 if Parser is not None:
    5. 1051 try:
    • Parser undefined
    • global wikiutil = <module 'MoinMoin.wikiutil' from '/home/moin/moin/MoinMoin/wikiutil.pyc'>
    • wikiutil.getParserForExtension = <function getParserForExtension>
    • request = <MoinMoin.request.request_fcgi.Request object>
    • request.cfg = <wikiconfig.Config instance>
    • ext = u'.py'
  5. /home/moin/moin/MoinMoin/wikiutil.py in getParserForExtension (cfg=<wikiconfig.Config instance>, extension=u'.py')

    1. 1234 for pname in getPlugins('parser', cfg):
    2. 1235 try:
    3. 1236 Parser = importPlugin(cfg, 'parser', pname, 'Parser')
    4. 1237 except PluginMissingError:
    5. 1238 continue
    • Parser = <class MoinMoin.parser.text_xslt.Parser>
    • global importPlugin = <function importPlugin>
    • cfg = <wikiconfig.Config instance>
    • pname = 'diff'
  6. /home/moin/moin/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='diff', function='Parser')

    1. 1102 """
    2. 1103 try:
    3. 1104 return importWikiPlugin(cfg, kind, name, function)
    4. 1105 except PluginMissingError:
    5. 1106 return importBuiltinPlugin(kind, name, function)
    • global importWikiPlugin = <function importWikiPlugin>
    • cfg = <wikiconfig.Config instance>
    • kind = 'parser'
    • name = 'diff'
    • function = 'Parser'
  7. /home/moin/moin/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='diff', function='Parser')

    1. 1115 raise PluginMissingError
    2. 1116 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
    3. 1117 return importNameFromPlugin(moduleName, function)
    4. 1118
    5. 1119
    • global importNameFromPlugin = <function importNameFromPlugin>
    • moduleName = 'wikiconfig.plugin.parser.diff'
    • function = 'Parser'
  8. /home/moin/moin/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName='wikiconfig.plugin.parser.diff', name='Parser')

    1. 1134 Raise PluginAttributeError if name does not exists.
    2. 1135 """
    3. 1136 module = __import__(moduleName, globals(), {}, [name])
    4. 1137 try:
    5. 1138 return getattr(module, name)
    • module undefined
    • builtin __import__ = <built-in function __import__>
    • moduleName = 'wikiconfig.plugin.parser.diff'
    • builtin globals = <built-in function globals>
    • name = 'Parser'

SyntaxError

Non-ASCII character '\xc3' in file /home/moin/moin.instance/data/plugin/parser/diff.py on line 6, but no encoding declared; see http://www.python.org/peps/pep-0263.html for details (diff.py, line 5)

  • args = (r"Non-ASCII character '\xc3' in file /home/moin/mo...p://www.python.org/peps/pep-0263.html for details", ('/home/moin/moin.instance/data/plugin/parser/diff.py', 5, 0, None))
  • filename = '/home/moin/moin.instance/data/plugin/parser/diff.py'
  • lineno = 5
  • message = ''
  • msg = r"Non-ASCII character '\xc3' in file /home/moin/mo...p://www.python.org/peps/pep-0263.html for details"
  • offset = 0
  • print_file_and_line = None
  • text = None

System Details

  • Date: Sun, 17 Dec 2017 13:53:05 +0000
  • Platform: Linux pfriem 3.2.61-grsec-modsign #1 SMP Tue Aug 12 09:58:26 UTC 2014 x86_64
  • Python: Python 2.7.6 (/usr/bin/python)
  • MoinMoin: Release 1.6.4 (release)