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://python.org/dev/peps/pep-0263/ 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.
/home/moin/moin/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_fcgi.Request object>)
- 1302 self.page.send_page(msg=msg)
- 1303 else:
- 1304 handler(self.page.page_name, self)
- 1305
- 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'
/home/moin/moin/MoinMoin/action/AttachFile.py in execute (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)
- 597 elif do == 'view':
- 598 if request.user.may.read(pagename):
- 599 view_file(pagename, request)
- 600 else:
- 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>
/home/moin/moin/MoinMoin/action/AttachFile.py in view_file (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)
- 1119 # send body
- 1120 request.write(request.formatter.startContent())
- 1121 send_viewfile(pagename, request)
- 1122 send_uploadform(pagename, request)
- 1123 request.write(request.formatter.endContent())
- global send_viewfile = <function send_viewfile>
- pagename = u'irss'
- request = <MoinMoin.request.request_fcgi.Request object>
/home/moin/moin/MoinMoin/action/AttachFile.py in send_viewfile (pagename=u'irss', request=<MoinMoin.request.request_fcgi.Request object>)
- 1047 elif mt.major == 'text':
- 1048 ext = os.path.splitext(filename)[1]
- 1049 Parser = wikiutil.getParserForExtension(request.cfg, ext)
- 1050 if Parser is not None:
- 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'
/home/moin/moin/MoinMoin/wikiutil.py in getParserForExtension (cfg=<wikiconfig.Config instance>, extension=u'.py')
- 1234 for pname in getPlugins('parser', cfg):
- 1235 try:
- 1236 Parser = importPlugin(cfg, 'parser', pname, 'Parser')
- 1237 except PluginMissingError:
- 1238 continue
- Parser = <class MoinMoin.parser.text_xslt.Parser>
- global importPlugin = <function importPlugin>
- cfg = <wikiconfig.Config instance>
- pname = 'diff'
/home/moin/moin/MoinMoin/wikiutil.py in importPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='diff', function='Parser')
- 1102 """
- 1103 try:
- 1104 return importWikiPlugin(cfg, kind, name, function)
- 1105 except PluginMissingError:
- 1106 return importBuiltinPlugin(kind, name, function)
- global importWikiPlugin = <function importWikiPlugin>
- cfg = <wikiconfig.Config instance>
- kind = 'parser'
- name = 'diff'
- function = 'Parser'
/home/moin/moin/MoinMoin/wikiutil.py in importWikiPlugin (cfg=<wikiconfig.Config instance>, kind='parser', name='diff', function='Parser')
- 1115 raise PluginMissingError
- 1116 moduleName = '%s.plugin.%s.%s' % (cfg.siteid, kind, name)
- 1117 return importNameFromPlugin(moduleName, function)
- 1118
- 1119
- global importNameFromPlugin = <function importNameFromPlugin>
- moduleName = 'wikiconfig.plugin.parser.diff'
- function = 'Parser'
/home/moin/moin/MoinMoin/wikiutil.py in importNameFromPlugin (moduleName='wikiconfig.plugin.parser.diff', name='Parser')
- 1134 Raise PluginAttributeError if name does not exists.
- 1135 """
- 1136 module = __import__(moduleName, globals(), {}, [name])
- 1137 try:
- 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://python.org/dev/peps/pep-0263/ for details (diff.py, line 5)
- args = (r"Non-ASCII character '\xc3' in file /home/moin/mo... http://python.org/dev/peps/pep-0263/ 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... http://python.org/dev/peps/pep-0263/ for details"
- offset = 0
- print_file_and_line = None
- text = None
System Details
- Date: Sun, 22 Dec 2024 05:00:10 +0000
- Platform: Linux pdx1-shared-a1-30 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
- Python: Python 2.7.18 (/usr/bin/python)
- MoinMoin: Release 1.6.4 (release)