TypeError
safe_import() got an unexpected keyword argument 'level'
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.
/usr/local/lib/python2.4/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_cgi.Request object>)
- 1281 self.page.send_page(msg=msg)
- 1282 else:
- 1283 handler(self.page.page_name, self)
- 1284
- 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now:
- handler = <function do_print>
- self = <MoinMoin.request.request_cgi.Request object>
- self.page = <MoinMoin.Page.Page object>
- self.page.page_name = u'HelpOnParsers/ReStructuredText/RstPrimer'
/usr/local/lib/python2.4/site-packages/MoinMoin/action/__init__.py in do_print (pagename=u'HelpOnParsers/ReStructuredText/RstPrimer', request=<MoinMoin.request.request_cgi.Request object>)
- 263 def do_print(pagename, request):
- 264 """ same as do_show, but with print_mode set """
- 265 do_show(pagename, request, print_mode=1)
- 266
- 267 def do_recall(pagename, request):
- global do_show = <function do_show>
- pagename = u'HelpOnParsers/ReStructuredText/RstPrimer'
- request = <MoinMoin.request.request_cgi.Request object>
- print_mode undefined
/usr/local/lib/python2.4/site-packages/MoinMoin/action/__init__.py in do_show (pagename=u'HelpOnParsers/ReStructuredText/RstPrimer', request=<MoinMoin.request.request_cgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=1)
- 239 count_hit=count_hit,
- 240 print_mode=print_mode,
- 241 content_only=content_only,
- 242 )
- 243
- content_only = 0
/usr/local/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, msg='', **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 1})
- 1179 format_args=pi['formatargs'],
- 1180 do_cache=do_cache,
- 1181 start_line=pi['lines'])
- 1182
- 1183 # check for pending footnotes
- start_line undefined
- pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': u'wiki', 'formatargs': u'', 'language': u'en', 'lines': 7}
/usr/local/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, body=u'{{{#!rst\n\nA ReStructuredText Primer\n============...t web site: http://docutils.sourceforge.net/\n}}}\n', format=u'wiki', format_args=u'', do_cache=1, **kw={'start_line': 7})
- 1272 raise
- 1273 try:
- 1274 code = self.makeCache(request, parser)
- 1275 self.execute(request, parser, code)
- 1276 except Exception, e:
- code undefined
- self = <MoinMoin.Page.Page object>
- self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page object>>
- request = <MoinMoin.request.request_cgi.Request object>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
/usr/local/lib/python2.4/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_cgi.Request object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)
- 1332 saved_current_lang = request.current_lang
- 1333 try:
- 1334 text = request.redirectedOutput(parser.format, formatter)
- 1335 finally:
- 1336 request.current_lang = saved_current_lang
- text undefined
- request = <MoinMoin.request.request_cgi.Request object>
- request.redirectedOutput = <bound method Request.redirectedOutput of <MoinMoin.request.request_cgi.Request object>>
- parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
- parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
- formatter = <MoinMoin.formatter.text_python.Formatter instance>
/usr/local/lib/python2.4/site-packages/MoinMoin/request/__init__.py in redirectedOutput (self=<MoinMoin.request.request_cgi.Request object>, function=<bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>, *args=(<MoinMoin.formatter.text_python.Formatter instance>,), **kw={})
- 822 self.redirect(buf)
- 823 try:
- 824 function(*args, **kw)
- 825 finally:
- 826 self.redirect()
- function = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
- args = (<MoinMoin.formatter.text_python.Formatter instance>,)
- kw = {}
/usr/local/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>, inhibit_p=False)
- 1542
- 1543 # Scan line, format and write
- 1544 formatted_line = self.scan(line, inhibit_p=inhibit_p)
- 1545 self.request.write(formatted_line)
- 1546
- formatted_line = u''
- self = <MoinMoin.parser.text_moin_wiki.Parser instance>
- self.scan = <bound method Parser.scan of <MoinMoin.parser.text_moin_wiki.Parser instance>>
- line = u'}}}'
- inhibit_p = False
/usr/local/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'}}}', inhibit_p=False)
- 1358 self.in_table or self.in_list):
- 1359 result.append(self.formatter.paragraph(1, css_class="line867"))
- 1360 result.append(self.replace(match, inhibit_p))
- 1361 end = match.end()
- 1362 lastpos = end
- result = []
- 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
/usr/local/lib/python2.4/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)
- 1400 # Get replace method and replace hit
- 1401 replace_func = getattr(self, '_%s_repl' % type)
- 1402 result.append(replace_func(hit, match.groupdict()))
- 1403 return ''.join(result)
- 1404 else:
- result = []
- result.append = <built-in method append of list object>
- replace_func = <bound method Parser._parser_end_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
- hit = u'}}}'
- match = <_sre.SRE_Match object>
- match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
/usr/local/lib/python2.4/site-packages/MoinMoin/parser/text_moin_wiki.py in _parser_end_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'}}}', groups={u'parser_end': u'}}}'})
- 1293 # we obviously did not find a parser specification
- 1294 self.parser_name = 'text'
- 1295 result = self.formatter.parser(self.parser_name, self.parser_lines)
- 1296 del self.parser_lines
- 1297 self.in_pre = None
- result undefined
- self = <MoinMoin.parser.text_moin_wiki.Parser instance>
- self.formatter = <MoinMoin.formatter.text_python.Formatter instance>
- self.formatter.parser = <bound method Formatter.parser of <MoinMoin.formatter.text_python.Formatter instance>>
- self.parser_name = u'rst'
- self.parser_lines = [u'#!rst ', u'', u'', u'A ReStructuredText Primer', u'=========================', u'', u':Author: Richard Jones', u':Version: $Revision: 1.17 $', u':Copyright: This document has been placed in the public domain.', u'', u'.. contents::', u'', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', ...]
/usr/local/lib/python2.4/site-packages/MoinMoin/formatter/text_python.py in parser (self=<MoinMoin.formatter.text_python.Formatter instance>, parser_name=u'rst', lines=[u'#!rst ', u'', u'', u'A ReStructuredText Primer', u'=========================', u'', u':Author: Richard Jones', u':Version: $Revision: 1.17 $', u':Copyright: This document has been placed in the public domain.', u'', u'.. contents::', u'', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', ...])
- 194
- 195 if self.__is_static(Dependencies):
- 196 return self.formatter.parser(parser_name, lines)
- 197 else:
- 198 return self.__insert_code('%s%s.parser(%r, %r)' %
- self = <MoinMoin.formatter.text_python.Formatter instance>
- self.formatter = <MoinMoin.formatter.text_html.Formatter instance>
- self.formatter.parser = <bound method Formatter.parser of <MoinMoin.formatter.text_html.Formatter instance>>
- parser_name = u'rst'
- lines = [u'#!rst ', u'', u'', u'A ReStructuredText Primer', u'=========================', u'', u':Author: Richard Jones', u':Version: $Revision: 1.17 $', u':Copyright: This document has been placed in the public domain.', u'', u'.. contents::', u'', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', ...]
/usr/local/lib/python2.4/site-packages/MoinMoin/formatter/__init__.py in parser (self=<MoinMoin.formatter.text_html.Formatter instance>, parser_name=u'rst', lines=[u'', u'A ReStructuredText Primer', u'=========================', u'', u':Author: Richard Jones', u':Version: $Revision: 1.17 $', u':Copyright: This document has been placed in the public domain.', u'', u'.. contents::', u'', u'', u'The text below contains links that look like "(quickref__)". These', u'are relative links that point to the `Quick reStructuredText`_ user', u"reference. If these links don't work, please refer to the `master", u'quick reference`_ document.', u'', u'__', u'.. _Quick reStructuredText: quickref.html', u'.. _master quick reference:', u' http://docutils.sourceforge.net/docs/user/rst/quickref.html', ...])
- 344 lines = lines[:-1]
- 345 p = parser('\n'.join(lines), self.request, format_args=args)
- 346 p.format(self)
- 347 del p
- 348 return ''
- p = <MoinMoin.parser.text_rst.Parser instance>
- p.format = <bound method Parser.format of <MoinMoin.parser.text_rst.Parser instance>>
- self = <MoinMoin.formatter.text_html.Formatter instance>
/usr/local/lib/python2.4/site-packages/MoinMoin/parser/text_rst.py in format (self=<MoinMoin.parser.text_rst.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>)
- 193 'raw_enabled': 0,
- 194 'stylesheet_path': '',
- 195 'template': '',
- 196 }
- 197 )
/usr/lib/python2.7/dist-packages/docutils/core.py in publish_parts (source=u'\nA ReStructuredText Primer\n=====================...roject web site: http://docutils.sourceforge.net/', source_path=None, source_class=<class docutils.io.StringInput>, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.text_rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'template': '', 'traceback': True}, config_section=None, enable_exit_status=False)
- 448 settings_overrides=settings_overrides,
- 449 config_section=config_section,
- 450 enable_exit_status=enable_exit_status)
- 451 return pub.writer.parts
- 452
- enable_exit_status = False
/usr/lib/python2.7/dist-packages/docutils/core.py in publish_programmatically (source_class=<class docutils.io.StringInput>, source=u'\nA ReStructuredText Primer\n=====================...roject web site: http://docutils.sourceforge.net/', source_path=None, destination_class=<class docutils.io.StringOutput>, destination=None, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.text_rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'template': '', 'traceback': True}, config_section=None, enable_exit_status=False)
- 657 source_class=source_class,
- 658 destination_class=destination_class)
- 659 pub.set_components(reader_name, parser_name, writer_name)
- 660 pub.process_programmatic_settings(
- 661 settings_spec, settings_overrides, config_section)
- pub = <docutils.core.Publisher instance>
- pub.set_components = <bound method Publisher.set_components of <docutils.core.Publisher instance>>
- reader_name = 'standalone'
- parser_name = 'restructuredtext'
- writer_name = 'pseudoxml'
/usr/lib/python2.7/dist-packages/docutils/core.py in set_components (self=<docutils.core.Publisher instance>, reader_name='standalone', parser_name='restructuredtext', writer_name='pseudoxml')
- 91 def set_components(self, reader_name, parser_name, writer_name):
- 92 if self.reader is None:
- 93 self.set_reader(reader_name, self.parser, parser_name)
- 94 if self.parser is None:
- 95 if self.reader.parser is None:
- self = <docutils.core.Publisher instance>
- self.set_reader = <bound method Publisher.set_reader of <docutils.core.Publisher instance>>
- reader_name = 'standalone'
- self.parser = None
- parser_name = 'restructuredtext'
/usr/lib/python2.7/dist-packages/docutils/core.py in set_reader (self=<docutils.core.Publisher instance>, reader_name='standalone', parser=None, parser_name='restructuredtext')
- 80 def set_reader(self, reader_name, parser, parser_name):
- 81 """Set `self.reader` by name."""
- 82 reader_class = readers.get_reader_class(reader_name)
- 83 self.reader = reader_class(parser, parser_name)
- 84 self.parser = self.reader.parser
- reader_class undefined
- global readers = <module 'docutils.readers' from '/usr/lib/python2.7/dist-packages/docutils/readers/__init__.pyc'>
- readers.get_reader_class = <function get_reader_class>
- reader_name = 'standalone'
/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py in get_reader_class (reader_name='standalone')
- 108 reader_name = _reader_aliases[reader_name]
- 109 try:
- 110 module = __import__(reader_name, globals(), locals(), level=1)
- 111 except ImportError:
- 112 module = __import__(reader_name, globals(), locals(), level=0)
- module undefined
- global __import__ = <function safe_import>
- reader_name = 'standalone'
- builtin globals = <built-in function globals>
- builtin locals = <built-in function locals>
- level undefined
TypeError
safe_import() got an unexpected keyword argument 'level'
- args = ("safe_import() got an unexpected keyword argument 'level'",)
- message = "safe_import() got an unexpected keyword argument 'level'"
System Details
- Date: Sat, 23 Nov 2024 10:14:42 +0000
- Platform: Linux euler 4.19.0-26-686-pae #1 SMP Debian 4.19.304-1 (2024-01-09) i686
- Python: Python 2.7.16 (/usr/bin/python)
- MoinMoin: Release 1.6.2 (release)