Attachment 'rest_stacktrace.html'
DownloadRstTest
--> -->
AttributeError'NoneType' object has no attribute 'read' | Please include this information in your bug reports!: Python Python 2.4.2: /usr/home/tpurl/py242/bin/python FreeBSD iota.zettai.net 4.10-RELEASE-p19 FreeBSD 4.10-RELEASE-p19 #0: We i386 MoinMoin Release 1.3.5 [Revision 1.3.5 release] Fri Dec 30 16:58:53 2005 |
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/tpurl/lib/python2.4/site-packages/MoinMoin/request.py in run(self=<MoinMoin.request.RequestCGI object>) |
834 from MoinMoin.wikiaction import getHandler |
835 handler = getHandler(self, action) |
836 handler(self.page.page_name, self) |
837 |
838 # 5. Or redirect to another page |
handler = <function do_show>, self = <MoinMoin.request.RequestCGI object>, self.page = <MoinMoin.Page.Page instance>, self.page.page_name = u'RstTest' |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_show(pagename=u'RstTest', request=<MoinMoin.request.RequestCGI object>) |
461 Page(request, pagename, rev=rev).send_page(request, count_hit=1) |
462 else: |
463 Page(request, pagename).send_page(request, count_hit=1) |
464 |
465 |
global Page = <class MoinMoin.Page.Page>, request = <MoinMoin.request.RequestCGI object>, pagename = u'RstTest', ).send_page undefined, count_hit undefined |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/Page.py in send_page(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, msg='', **keywords={'count_hit': 1}) |
1152 else: |
1153 # parse the text and send the page content |
1154 self.send_page_content(request, Parser, body, format_args=pi_formatargs, do_cache=do_cache) |
1155 |
1156 # check for pending footnotes |
self = <MoinMoin.Page.Page instance>, self.send_page_content = <bound method Page.send_page_content of <MoinMoin.Page.Page instance>>, request = <MoinMoin.request.RequestCGI object>, Parser = <class MoinMoin.parser.wiki.Parser>, body = u'{{{#!rst\n\n*This* is a test\n\n*This* is another test.\n\n}}}\n', format_args undefined, pi_formatargs = '', do_cache = 1 |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content(self=<MoinMoin.Page.Page instance>, request=<MoinMoin.request.RequestCGI object>, Parser=<class MoinMoin.parser.wiki.Parser>, body=u'{{{#!rst\n\n*This* is a test\n\n*This* is another test.\n\n}}}\n', needsupdate=1, format_args='', do_cache=1) |
1287 request.redirect(buffer) |
1288 parser = Parser(body, request) |
1289 parser.format(formatter) |
1290 request.redirect() |
1291 text = buffer.getvalue() |
parser = <MoinMoin.parser.wiki.Parser instance>, parser.format = <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance>>, formatter = <MoinMoin.formatter.text_python.Formatter instance> |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in format(self=<MoinMoin.parser.wiki.Parser instance>, formatter=<MoinMoin.formatter.text_python.Formatter instance>) |
1035 res = self.formatter.processor(self.processor_name, |
1036 self.colorize_lines, |
1037 self.processor_is_parser) |
1038 self.request.write(res) |
1039 del self.colorize_lines |
self = <MoinMoin.parser.wiki.Parser instance>, self.processor_is_parser = 1 |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/formatter/text_python.py in processor(self=<MoinMoin.formatter.text_python.Formatter instance>, processor_name=u'rst', lines=[u'#!rst ', u'', u'*This* is a test', u'', u'*This* is another test.', u''], is_parser=1) |
188 Dependencies = ["time"] |
189 if self.__is_static(Dependencies): |
190 return self.formatter.processor(processor_name, lines, is_parser) |
191 else: |
192 return self.__insert_code('%s%s.processor(%r, %r, %r)' % |
self = <MoinMoin.formatter.text_python.Formatter instance>, self.formatter = <MoinMoin.formatter.text_html.Formatter instance>, self.formatter.processor = <bound method Formatter.processor of <MoinMoin.formatter.text_html.Formatter instance>>, processor_name = u'rst', lines = [u'#!rst ', u'', u'*This* is a test', u'', u'*This* is another test.', u''], is_parser = 1 |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/formatter/base.py in processor(self=<MoinMoin.formatter.text_html.Formatter instance>, processor_name=u'rst', lines=[u'', u'*This* is a test', u'', u'*This* is another test.', u''], is_parser=1) |
256 lines=lines[1:] |
257 p = parser('\n'.join(lines), self.request, format_args = args) |
258 p.format(self) |
259 del p |
260 return '' |
p = <MoinMoin.parser.rst.Parser instance>, p.format = <bound method Parser.format of <MoinMoin.parser.rst.Parser instance>>, self = <MoinMoin.formatter.text_html.Formatter instance> |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/parser/rst.py in format(self=<MoinMoin.parser.rst.Parser instance>, formatter=<MoinMoin.formatter.text_html.Formatter instance>) |
150 parts = publish_parts(source = self.raw, |
151 writer = MoinWriter(formatter, self.request), |
152 settings_overrides = {'halt_level': 5, |
153 'traceback': True, |
154 'file_insertion_enabled': 0, |
settings_overrides undefined, True undefined |
/usr/home/tpurl/py242/lib/python2.4/site-packages/docutils/core.py in publish_parts(source=u'\n*This* is a test\n\n*This* is another test.\n', 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.rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'traceback': True}, config_section=None, enable_exit_status=None) |
429 settings_overrides=settings_overrides, |
430 config_section=config_section, |
431 enable_exit_status=enable_exit_status) |
432 return pub.writer.parts |
433 |
enable_exit_status = None |
/usr/home/tpurl/py242/lib/python2.4/site-packages/docutils/core.py in publish_programmatically(source_class=<class docutils.io.StringInput>, source=u'\n*This* is a test\n\n*This* is another test.\n', 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.rst.MoinWriter instance>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'traceback': True}, config_section=None, enable_exit_status=None) |
609 settings_spec, settings_overrides, config_section) |
610 pub.set_source(source, source_path) |
611 pub.set_destination(destination, destination_path) |
612 output = pub.publish(enable_exit_status=enable_exit_status) |
613 return output, pub |
output undefined, pub = <docutils.core.Publisher instance>, pub.publish = <bound method Publisher.publish of <docutils.core.Publisher instance>>, enable_exit_status = None |
/usr/home/tpurl/py242/lib/python2.4/site-packages/docutils/core.py in publish(self=<docutils.core.Publisher instance>, argv=None, usage=None, description=None, settings_spec=None, settings_overrides=None, config_section=None, enable_exit_status=None) |
204 self.settings) |
205 self.apply_transforms() |
206 output = self.writer.write(self.document, self.destination) |
207 self.writer.assemble_parts() |
208 except SystemExit, error: |
output undefined, self = <docutils.core.Publisher instance>, self.writer = <MoinMoin.parser.rst.MoinWriter instance>, self.writer.write = <bound method MoinWriter.write of <MoinMoin.parser.rst.MoinWriter instance>>, self.document = <document: <paragraph...><paragraph...>>, self.destination = docutils.io.StringOutput: destination=None, destination_path='<string>' |
/usr/home/tpurl/py242/lib/python2.4/site-packages/docutils/writers/__init__.py in write(self=<MoinMoin.parser.rst.MoinWriter instance>, document=<document: <paragraph...><paragraph...>>, destination=docutils.io.StringOutput: destination=None, destination_path='<string>') |
76 document.settings.language_code) |
77 self.destination = destination |
78 self.translate() |
79 output = self.destination.write(self.output) |
80 return output |
self = <MoinMoin.parser.rst.MoinWriter instance>, self.translate = <bound method MoinWriter.translate of <MoinMoin.parser.rst.MoinWriter instance>> |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/parser/rst.py in translate(self=<MoinMoin.parser.rst.MoinWriter instance>) |
129 self.request, |
130 self.wikiparser, |
131 self) |
132 self.document.walkabout(visitor) |
133 self.visitor = visitor |
self = <MoinMoin.parser.rst.MoinWriter instance> |
/home/tpurl/lib/python2.4/site-packages/MoinMoin/parser/rst.py in __init__(self=<MoinMoin.parser.rst.MoinTranslator instance>, document=<document: <paragraph...><paragraph...>>, formatter=<MoinMoin.formatter.text_html.Formatter instance>, request=<MoinMoin.request.RequestCGI object>, parser=<MoinMoin.parser.wiki.Parser instance>, writer=<MoinMoin.parser.rst.MoinWriter instance>) |
174 |
175 def __init__(self, document, formatter, request, parser, writer): |
176 html4css1.HTMLTranslator.__init__(self, document) |
177 self.formatter = formatter |
178 self.request = request |
global html4css1 = <module 'docutils.writers.html4css1' from '/usr/...ackages/docutils/writers/html4css1/__init__.pyc'>, html4css1.HTMLTranslator = <class docutils.writers.html4css1.HTMLTranslator>, html4css1.HTMLTranslator.__init__ = <unbound method HTMLTranslator.__init__>, self = <MoinMoin.parser.rst.MoinTranslator instance>, document = <document: <paragraph...><paragraph...>> |
/usr/home/tpurl/py242/lib/python2.4/site-packages/docutils/writers/html4css1/__init__.py in __init__(self=<MoinMoin.parser.rst.MoinTranslator instance>, document=<document: <paragraph...><paragraph...>>) |
235 settings, os.path.join(os.getcwd(), 'dummy')) |
236 settings.record_dependencies.add(stylesheet) |
237 stylesheet_text = open(stylesheet).read() |
238 self.stylesheet = [self.embedded_stylesheet % stylesheet_text] |
239 else: |
stylesheet_text undefined, global open = <function dummyOpen>, stylesheet = '../../../../../py242/lib/python2.4/site-packages/docutils/writers/html4css1/html4css1.css', ).read undefined |
AttributeError: 'NoneType' object has no attribute 'read'
__doc__ =
'Attribute not found.'
__getitem__ =
<bound method AttributeError.__getitem__ of <exceptions.AttributeError instance>>
__init__ =
<bound method AttributeError.__init__ of <exceptions.AttributeError instance>>
__module__ =
'exceptions'
__str__ =
<bound method AttributeError.__str__ of <exceptions.AttributeError instance>>
args =
("'NoneType' object has no attribute 'read'",)
Attached Files
To refer to attachments on a page, use attachment:filename, as shown below in the list of files. Do NOT use the URL of the [get] link, since this is subject to change and can break easily.You are not allowed to attach a file to this page.