Attachment 'traceback.html'

Download

--> -->

ConvertError

ExpatError: unbound prefix: line 376, column 882

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. /usr/local/lib/python2.4/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)

    1. 1086 from MoinMoin.wikiaction import getHandler
    2. 1087 handler = getHandler(self, action)
    3. 1088 handler(self.page.page_name, self)
    4. 1089
    5. 1090 # 5. Or redirect to another page
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestCGI object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'WikiSandBox'
  2. /usr/local/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'WikiSandBox', request=<MoinMoin.request.RequestCGI object>)

    1. 572 if lasteditor == 'gui':
    2. 573 from MoinMoin.converter.text_html_text_x_moin import convert
    3. 574 savetext = convert(request, pagename, savetext) # XXX error handling
    4. 575
    5. 576 # IMPORTANT: normalize text from the form. This should be done in
    • savetext = u'<pre class="comment">## Please edit system and h...eading 2</h3><h4>Heading 3</h4><h5>Heading 4</h5>'
    • convert = <function convert>
    • request = <MoinMoin.request.RequestCGI object>
    • pagename = u'WikiSandBox'
  3. /usr/local/lib/python2.4/site-packages/MoinMoin/converter/text_html_text_x_moin.py in convert (request=<MoinMoin.request.RequestCGI object>, pagename=u'WikiSandBox', text=u'<page><pre class="comment">## Please edit system...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>')

    1. 1183 def convert(request, pagename, text):
    2. 1184 text = u"<page>%s</page>" % text
    3. 1185 tree = parse(text)
    4. 1186 strip_whitespace().do(tree)
    5. 1187 return convert_tree(request, pagename).do(tree)
    • tree undefined
    • global parse = <function parse>
    • text = u'<page><pre class="comment">## Please edit system...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>'
  4. /usr/local/lib/python2.4/site-packages/MoinMoin/converter/text_html_text_x_moin.py in parse (text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>')

    1. 1179 return xml.dom.minidom.parseString(text)
    2. 1180 except xml.parsers.expat.ExpatError, msg:
    3. 1181 raise ConvertError('ExpatError: %s' % msg)
    4. 1182
    5. 1183 def convert(request, pagename, text):
    • global ConvertError = <class MoinMoin.converter.text_html_text_x_moin.ConvertError>
    • msg = <xml.parsers.expat.ExpatError instance>

ConvertError

ExpatError: unbound prefix: line 376, column 882

  • exceptions = <bound method ConvertError.exceptions of <MoinMo...ter.text_html_text_x_moin.ConvertError instance>>
  • innerException = (<class xml.parsers.expat.ExpatError>, <xml.parsers.expat.ExpatError instance>, <traceback object>)
  • message = 'ExpatError: unbound prefix: line 376, column 882'
  • name = 'MoinMoin Convert Error'

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. /usr/local/lib/python2.4/site-packages/MoinMoin/converter/text_html_text_x_moin.py in parse (text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>')

    1. 1177 text = text.encode(config.charset)
    2. 1178 try:
    3. 1179 return xml.dom.minidom.parseString(text)
    4. 1180 except xml.parsers.expat.ExpatError, msg:
    5. 1181 raise ConvertError('ExpatError: %s' % msg)
    • global xml = <module 'xml' from '/usr/lib/python2.4/xml/__init__.pyc'>
    • xml.dom = <module 'xml.dom' from '/usr/lib/python2.4/xml/dom/__init__.pyc'>
    • xml.dom.minidom = <module 'xml.dom.minidom' from '/usr/lib/python2.4/xml/dom/minidom.pyc'>
    • xml.dom.minidom.parseString = <function parseString>
    • text = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>'
  2. /usr/lib/python2.4/xml/dom/minidom.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>', parser=None)

    1. 1923 if parser is None:
    2. 1924 from xml.dom import expatbuilder
    3. 1925 return expatbuilder.parseString(string)
    4. 1926 else:
    5. 1927 from xml.dom import pulldom
    • expatbuilder = <module 'xml.dom.expatbuilder' from '/usr/lib/python2.4/xml/dom/expatbuilder.pyc'>
    • expatbuilder.parseString = <function parseString>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>'
  3. /usr/lib/python2.4/xml/dom/expatbuilder.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>', namespaces=1)

    1. 938 else:
    2. 939 builder = ExpatBuilder()
    3. 940 return builder.parseString(string)
    4. 941
    5. 942
    • builder = <xml.dom.expatbuilder.ExpatBuilderNS instance>
    • builder.parseString = <bound method ExpatBuilderNS.parseString of <xml.dom.expatbuilder.ExpatBuilderNS instance>>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>'
  4. /usr/lib/python2.4/xml/dom/expatbuilder.py in parseString (self=<xml.dom.expatbuilder.ExpatBuilderNS instance>, string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>')

    1. 221 parser = self.getParser()
    2. 222 try:
    3. 223 parser.Parse(string, True)
    4. 224 self._setup_subset(string)
    5. 225 except ParseEscape:
    • parser = <pyexpat.xmlparser object>
    • parser.Parse = <built-in method Parse of pyexpat.xmlparser object>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...2</h3><h4>Heading 3</h4><h5>Heading 4</h5></page>'
    • builtin True = True

ExpatError

unbound prefix: line 376, column 882

  • args = ('unbound prefix: line 376, column 882',)
  • code = 27
  • lineno = 376
  • offset = 882

System Details

  • Date: Thu, 16 Mar 2006 15:15:21 +0000
  • Platform: Linux mercury.kgnu.net 2.6.12-10-386 #1 Thu Dec 22 11:37:10 UTC 2005 i686
  • Python: Python 2.4.2 (/usr/bin/python)
  • MoinMoin: Release 1.5.2 (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-03-16 15:24:16, 19.5 KB) [[attachment:ExpatErrorSourceText.doc]]
  • [get | view] (2006-03-16 15:26:08, 14.4 KB) [[attachment:traceback.html]]
 All files | Selected Files: delete move to page copy to page

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