Attachment 'traceback.html'

Download

--> -->

AttributeError

MoinWriter instance has no attribute 'head_prefix'

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. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object at 0x54ad0>)

    1. 1152 # Visit pagename
    2. 1153 self.page = Page(self, pagename)
    3. 1154 self.page.send_page(self, count_hit=1)
    4. 1155
    5. 1156 # generate page footer (actions that do not want this footer
    • self = <MoinMoin.request.RequestCGI object at 0x54ad0>
    • self.page = <MoinMoin.Page.Page instance at 0x223f80>
    • self.page.send_page = <bound method Page.send_page of <MoinMoin.Page.Page instance at 0x223f80>>
    • count_hit undefined
  2. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page instance at 0x223f80>, request=<MoinMoin.request.RequestCGI object at 0x54ad0>, msg='', **keywords={'count_hit': 1})

    1. 1234 format_args=pi_formatargs,
    2. 1235 do_cache=do_cache,
    3. 1236 start_line=pi_lines)
    4. 1237
    5. 1238 # check for pending footnotes
    • start_line undefined
    • pi_lines = 0
  3. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page instance at 0x223f80>, request=<MoinMoin.request.RequestCGI object at 0x54ad0>, Parser=<class MoinMoin.parser.wiki.Parser at 0x44d630>, body=u'This is the starting page and I am going to test...\n\n{{{#!rst\nThis is a LinkToANonexistentPage_\n}}}\n', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1320 except 'CacheNeedsUpdate':
    2. 1321 try:
    3. 1322 code = self.makeCache(request, parser)
    4. 1323 self.execute(request, parser, code)
    5. 1324 except 'CacheNeedsUpdate':
    • code undefined
    • self = <MoinMoin.Page.Page instance at 0x223f80>
    • self.makeCache = <bound method Page.makeCache of <MoinMoin.Page.Page instance at 0x223f80>>
    • request = <MoinMoin.request.RequestCGI object at 0x54ad0>
    • parser = <MoinMoin.parser.wiki.Parser instance at 0x4484e0>
  4. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/Page.py in makeCache (self=<MoinMoin.Page.Page instance at 0x223f80>, request=<MoinMoin.request.RequestCGI object at 0x54ad0>, parser=<MoinMoin.parser.wiki.Parser instance at 0x4484e0>)

    1. 1371 saved_current_lang = request.current_lang
    2. 1372 try:
    3. 1373 text = request.redirectedOutput(parser.format, formatter)
    4. 1374 finally:
    5. 1375 request.current_lang = saved_current_lang
    • text undefined
    • request = <MoinMoin.request.RequestCGI object at 0x54ad0>
    • request.redirectedOutput = <bound method RequestCGI.redirectedOutput of <MoinMoin.request.RequestCGI object at 0x54ad0>>
    • parser = <MoinMoin.parser.wiki.Parser instance at 0x4484e0>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance at 0x4484e0>>
    • formatter = <MoinMoin.formatter.text_python.Formatter instance at 0x46a378>
  5. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/request.py in redirectedOutput (self=<MoinMoin.request.RequestCGI object at 0x54ad0>, function=<bound method Parser.format of <MoinMoin.parser.wiki.Parser instance at 0x4484e0>>, *args=(<MoinMoin.formatter.text_python.Formatter instance at 0x46a378>,), **kw={})

    1. 716 self.redirect(buffer)
    2. 717 try:
    3. 718 function(*args, **kw)
    4. 719 finally:
    5. 720 self.redirect()
    • function = <bound method Parser.format of <MoinMoin.parser.wiki.Parser instance at 0x4484e0>>
    • args = (<MoinMoin.formatter.text_python.Formatter instance at 0x46a378>,)
    • kw = {}
  6. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/parser/wiki.py in format (self=<MoinMoin.parser.wiki.Parser instance at 0x4484e0>, formatter=<MoinMoin.formatter.text_python.Formatter instance at 0x46a378>)

    1. 1013 res = self.formatter.processor(self.processor_name,
    2. 1014 self.colorize_lines,
    3. 1015 self.processor_is_parser)
    4. 1016 self.request.write(res)
    5. 1017 del self.colorize_lines
    • self = <MoinMoin.parser.wiki.Parser instance at 0x4484e0>
    • self.processor_is_parser = 1
  7. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/formatter/text_python.py in processor (self=<MoinMoin.formatter.text_python.Formatter instance at 0x46a378>, processor_name=u'rst', lines=[u'#!rst ', u'This is a LinkToANonexistentPage_'], is_parser=1)

    1. 193 Dependencies = self.defaultDependencies
    2. 194 if self.__is_static(Dependencies):
    3. 195 return self.formatter.processor(processor_name, lines, is_parser)
    4. 196 else:
    5. 197 return self.__insert_code('%s%s.processor(%r, %r, %r)' %
    • self = <MoinMoin.formatter.text_python.Formatter instance at 0x46a378>
    • self.formatter = <MoinMoin.formatter.text_html.Formatter instance at 0x24ad00>
    • self.formatter.processor = <bound method Formatter.processor of <MoinMoin.formatter.text_html.Formatter instance at 0x24ad00>>
    • processor_name = u'rst'
    • lines = [u'#!rst ', u'This is a LinkToANonexistentPage_']
    • is_parser = 1
  8. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/formatter/base.py in processor (self=<MoinMoin.formatter.text_html.Formatter instance at 0x24ad00>, processor_name=u'rst', lines=[u'This is a LinkToANonexistentPage_'], is_parser=1)

    1. 315 lines = lines[1:]
    2. 316 p = parser('\n'.join(lines), self.request, format_args=args)
    3. 317 p.format(self)
    4. 318 del p
    5. 319 return ''
    • p = <MoinMoin.parser.rst.Parser instance at 0xb3f80>
    • p.format = <bound method Parser.format of <MoinMoin.parser.rst.Parser instance at 0xb3f80>>
    • self = <MoinMoin.formatter.text_html.Formatter instance at 0x24ad00>
  9. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/MoinMoin/parser/rst.py in format (self=<MoinMoin.parser.rst.Parser instance at 0xb3f80>, formatter=<MoinMoin.formatter.text_html.Formatter instance at 0x24ad00>)

    1. 184 source = self.raw,
    2. 185 writer = MoinWriter(formatter, self.request),
    3. 186 settings_overrides = {
    4. 187 'halt_level': 5,
    5. 188 'traceback': True,
    • settings_overrides undefined
    • builtin True = True
  10. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/docutils/core.py in publish_parts (source=u'This is a LinkToANonexistentPage_', source_path=None, source_class=<class docutils.io.StringInput at 0x58d720>, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.rst.MoinWriter instance at 0xb7148>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'traceback': True}, config_section=None, enable_exit_status=None)

    1. 429 settings_overrides=settings_overrides,
    2. 430 config_section=config_section,
    3. 431 enable_exit_status=enable_exit_status)
    4. 432 return pub.writer.parts
    5. 433
    • enable_exit_status = None
  11. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/docutils/core.py in publish_programmatically (source_class=<class docutils.io.StringInput at 0x58d720>, source=u'This is a LinkToANonexistentPage_', source_path=None, destination_class=<class docutils.io.StringOutput at 0x58d750>, destination=None, destination_path=None, reader=None, reader_name='standalone', parser=None, parser_name='restructuredtext', writer=<MoinMoin.parser.rst.MoinWriter instance at 0xb7148>, writer_name='pseudoxml', settings=None, settings_spec=None, settings_overrides={'file_insertion_enabled': 0, 'halt_level': 5, 'raw_enabled': 0, 'stylesheet_path': '', 'traceback': True}, config_section=None, enable_exit_status=None)

    1. 609 settings_spec, settings_overrides, config_section)
    2. 610 pub.set_source(source, source_path)
    3. 611 pub.set_destination(destination, destination_path)
    4. 612 output = pub.publish(enable_exit_status=enable_exit_status)
    5. 613 return output, pub
    • output undefined
    • pub = <docutils.core.Publisher instance at 0xb7f80>
    • pub.publish = <bound method Publisher.publish of <docutils.core.Publisher instance at 0xb7f80>>
    • enable_exit_status = None
  12. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/docutils/core.py in publish (self=<docutils.core.Publisher instance at 0xb7f80>, argv=None, usage=None, description=None, settings_spec=None, settings_overrides=None, config_section=None, enable_exit_status=None)

    1. 203 self.apply_transforms()
    2. 204 output = self.writer.write(self.document, self.destination)
    3. 205 self.writer.assemble_parts()
    4. 206 except SystemExit, error:
    5. 207 exit = 1
    • self = <docutils.core.Publisher instance at 0xb7f80>
    • self.writer = <MoinMoin.parser.rst.MoinWriter instance at 0xb7148>
    • self.writer.assemble_parts = <bound method MoinWriter.assemble_parts of <MoinMoin.parser.rst.MoinWriter instance at 0xb7148>>
  13. /Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/docutils/writers/html4css1/__init__.py in assemble_parts (self=<MoinMoin.parser.rst.MoinWriter instance at 0xb7148>)

    1. 176 writers.Writer.assemble_parts(self)
    2. 177 for part in self.visitor_attributes:
    3. 178 self.parts[part] = ''.join(getattr(self, part))
    4. 179
    5. 180
    • self = <MoinMoin.parser.rst.MoinWriter instance at 0xb7148>
    • self.parts = {'encoding': 'utf-8', 'version': '0.5', 'whole': u'<title></title>\n<div class="document">\n<p>This i...stentPage">LinkToANonexistentPage</a></p>\n</div>\n'}
    • part = 'head_prefix'
    • ''.join = <built-in method join of str object at 0x601a20>
    • builtin getattr = <built-in function getattr>

AttributeError

MoinWriter instance has no attribute 'head_prefix'

  • args = ("MoinWriter instance has no attribute 'head_prefix'",)

System Details

  • Date: Wed, 31 May 2006 18:45:26 +0000
  • Platform: Darwin braeburn.amath.unc.edu 8.6.0 Darwin Kernel Version 8.6.0: Tue Mar 7 16:58:48 PST 2006; root:xnu-792.6.70.obj~1/RELEASE_PPC Power Macintosh
  • Python: Python 2.4.1 (/usr/local/bin/python)
  • MoinMoin: Release 1.5.3 (release)

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.
  • [get | view] (2006-05-31 19:14:51, 28.9 KB) [[attachment:traceback.html]]
  • [get | view] (2006-06-04 15:44:36, 0.8 KB) [[attachment:writer_fix.patch]]
 All files | Selected Files: delete move to page copy to page

You are not allowed to attach a file to this page.