Description
I got an error for pages with RST syntax. I'm using Ubuntu package version: 1.9.5-4ubuntu1 and docutils: 0.10-1ubuntu2
Steps to reproduce
Open an page with RST.
Details
Traceback (most recent call last): File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 282, in __call__ response = run(context) File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 88, in run response = dispatch(request, context, action_name) File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 136, in dispatch response = handle_action(context, pagename, action_name) File "/usr/lib/python2.7/dist-packages/MoinMoin/wsgiapp.py", line 195, in handle_action handler(context.page.page_name, context) File "/usr/lib/python2.7/dist-packages/MoinMoin/action/__init__.py", line 268, in do_show content_only=content_only, File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1324, in send_page start_line=pi['lines']) File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1423, in send_page_content code = self.makeCache(request, parser) File "/usr/lib/python2.7/dist-packages/MoinMoin/Page.py", line 1483, in makeCache text = request.redirectedOutput(parser.format, formatter) File "/usr/lib/python2.7/dist-packages/MoinMoin/web/contexts.py", line 296, in redirectedOutput function(*args, **kw) File "/usr/lib/python2.7/dist-packages/MoinMoin/parser/text_rst.py", line 216, in format 'template': '', File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 448, in publish_parts enable_exit_status=enable_exit_status) File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 657, in publish_programmatically pub.set_components(reader_name, parser_name, writer_name) File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 93, in set_components self.set_reader(reader_name, self.parser, parser_name) File "/usr/lib/python2.7/dist-packages/docutils/core.py", line 82, in set_reader reader_class = readers.get_reader_class(reader_name) File "/usr/lib/python2.7/dist-packages/docutils/readers/__init__.py", line 110, in get_reader_class module = __import__(reader_name, globals(), locals(), level=0) TypeError: safe_import() got an unexpected keyword argument 'level'
Workaround
Discussion
Doesn't happen here, can you reproduce it here? Copy some failing content from your wiki to a subpage of this bug report?
Hmm, guess it is because it is an older docutils here:
ii python-docutils 0.7-2 utilities for the documentation of Python modules
Can you check whether this patch fixes it? http://hg.moinmo.in/moin/1.9/rev/e64b119587f8
---
Yes, the problem is gone, Thanks a lot!
Plan
- Priority:
- Assigned to:
Status: MoinMoinBugFixed