Attachment 'DocBook Traceback ExpatError.html'

Download

--> -->

ExpatError

junk after document element: line 1, column 5040

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. /srv/moin/code/1.8/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_wsgi.Request object>)

    1. 1309 self.page.send_page()
    2. 1310 else:
    3. 1311 handler(self.page.page_name, self)
    4. 1312
    5. 1313 # every action that didn't use to raise MoinMoinFinish must call this now:
    • handler = <function do_show>
    • self = <MoinMoin.request.request_wsgi.Request object>
    • self.page = <MoinMoin.Page.Page object>
    • self.page.page_name = u'MarcelH\xe4fner/Testpage'
  2. /srv/moin/code/1.8/MoinMoin/action/__init__.py in do_show (pagename=u'MarcelH\xe4fner/Testpage', request=<MoinMoin.request.request_wsgi.Request object>, content_only=0, count_hit=1, cacheable=1, print_mode=0)

    1. 251 count_hit=count_hit,
    2. 252 print_mode=print_mode,
    3. 253 content_only=content_only,
    4. 254 )
    5. 255
    • content_only = 0
  3. /srv/moin/code/1.8/MoinMoin/Page.py in send_page (self=<MoinMoin.Page.Page object>, **keywords={'content_only': 0, 'count_hit': 1, 'print_mode': 0})

    1. 1195 format_args=pi['formatargs'],
    2. 1196 do_cache=do_cache,
    3. 1197 start_line=pi['lines'])
    4. 1198
    5. 1199 # check for pending footnotes
    • start_line undefined
    • pi = {'acl': <MoinMoin.security.AccessControlList instance>, 'format': 'wiki', 'formatargs': '', 'language': 'en', 'lines': 0}
  4. /srv/moin/code/1.8/MoinMoin/Page.py in send_page_content (self=<MoinMoin.Page.Page object>, request=<MoinMoin.request.request_wsgi.Request object>, body=u'<<TableOfContents>>\n\n= Testpage =\n\n<<Include(^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*)>>\n', format='wiki', format_args='', do_cache=1, **kw={'start_line': 0})

    1. 1279
    2. 1280 if not (do_cache and self.canUseCache(Parser)):
    3. 1281 self.format(parser)
    4. 1282 else:
    5. 1283 try:
    • self = <MoinMoin.Page.Page object>
    • self.format = <bound method Page.format of <MoinMoin.Page.Page object>>
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
  5. /srv/moin/code/1.8/MoinMoin/Page.py in format (self=<MoinMoin.Page.Page object>, parser=<MoinMoin.parser.text_moin_wiki.Parser instance>)

    1. 1300 def format(self, parser):
    2. 1301 """ Format and write page content without caching """
    3. 1302 parser.format(self.formatter)
    4. 1303
    5. 1304 def execute(self, request, parser, code):
    • parser = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • parser.format = <bound method Parser.format of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • self = <MoinMoin.Page.Page object>
    • self.formatter = <MoinMoin.formatter.text_docbook.Formatter instance>
  6. /srv/moin/code/1.8/MoinMoin/parser/text_moin_wiki.py in format (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, formatter=<MoinMoin.formatter.text_docbook.Formatter instance>, inhibit_p=False)

    1. 1550
    2. 1551 # Scan line, format and write
    3. 1552 formatted_line = self.scan(line, inhibit_p=inhibit_p)
    4. 1553 self.request.write(formatted_line)
    5. 1554
    • 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'<<Include(^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*)>> '
    • inhibit_p = False
  7. /srv/moin/code/1.8/MoinMoin/parser/text_moin_wiki.py in scan (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, line=u'<<Include(^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*)>> ', inhibit_p=False)

    1. 1364 self.in_table or self.in_list):
    2. 1365 result.append(self.formatter.paragraph(1, css_class="line867"))
    3. 1366 result.append(self.replace(match, inhibit_p))
    4. 1367 end = match.end()
    5. 1368 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
  8. /srv/moin/code/1.8/MoinMoin/parser/text_moin_wiki.py in replace (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, match=<_sre.SRE_Match object>, inhibit_p=False)

    1. 1408 # Get replace method and replace hit
    2. 1409 replace_func = getattr(self, '_%s_repl' % type)
    3. 1410 result.append(replace_func(hit, match.groupdict()))
    4. 1411 return ''.join(result)
    5. 1412 else:
    • result = []
    • result.append = <built-in method append of list object>
    • replace_func = <bound method Parser._macro_repl of <MoinMoin.parser.text_moin_wiki.Parser instance>>
    • hit = u'^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*'
    • match = <_sre.SRE_Match object>
    • match.groupdict = <built-in method groupdict of _sre.SRE_Match object>
  9. /srv/moin/code/1.8/MoinMoin/parser/text_moin_wiki.py in _macro_repl (self=<MoinMoin.parser.text_moin_wiki.Parser instance>, word=u'^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*', groups={u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...})

    1. 1331 if self.macro is None:
    2. 1332 self.macro = macro.Macro(self)
    3. 1333 return self.formatter.macro(self.macro, macro_name, macro_args, markup=groups.get('macro'))
    4. 1334 _macro_name_repl = _macro_repl
    5. 1335 _macro_args_repl = _macro_repl
    • self = <MoinMoin.parser.text_moin_wiki.Parser instance>
    • self.formatter = <MoinMoin.formatter.text_docbook.Formatter instance>
    • self.formatter.macro = <bound method Formatter.macro of <MoinMoin.formatter.text_docbook.Formatter instance>>
    • self.macro = <MoinMoin.macro.Macro instance>
    • macro_name = u'Include'
    • macro_args = u'^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*'
    • markup undefined
    • groups = {u'big': None, u'big_off': None, u'big_on': None, u'comment': None, u'dl': None, u'email': None, u'emph': None, u'emph_ib_or_bi': None, u'emph_ibb': None, u'emph_ibi': None, ...}
    • groups.get = <built-in method get of dict object>
  10. /srv/moin/code/1.8/MoinMoin/formatter/text_docbook.py in macro (self=<MoinMoin.formatter.text_docbook.Formatter instance>, macro_obj=<MoinMoin.macro.Macro instance>, name=u'Include', args=u'^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*', markup=u'<<Include(^MarcelH\xe4fner/F.*|^MarcelH\xe4fner/B.*)>>')

    1. 615 text = FormatterBase.macro(self, macro_obj, name, args)
    2. 616 if text.strip():
    3. 617 self._copyExternalNodes(Sax.FromXml(text).documentElement.childNodes, exclude=excludes)
    4. 618 if was_in_para:
    5. 619 self.paragraph(1)
    • self = <MoinMoin.formatter.text_docbook.Formatter instance>
    • self._copyExternalNodes = <bound method Formatter._copyExternalNodes of <MoinMoin.formatter.text_docbook.Formatter instance>>
    • global Sax = <module 'xml.dom.ext.reader.Sax' from '/usr/lib/...4/site-packages/_xmlplus/dom/ext/reader/Sax.pyc'>
    • Sax.FromXml = <function FromXml>
    • text = "<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE ...cable to DocBook--></section></section></article>"
    • ).documentElement undefined
    • exclude undefined
    • excludes = ('articleinfo', 'title')
  11. /usr/lib/python2.4/site-packages/_xmlplus/dom/ext/reader/Sax.py in FromXml (text="<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE ...cable to DocBook--></section></section></article>", ownerDocument=None, validate=0, keepAllWs=0, catName=None, saxHandlerClass=<class xml.dom.ext.reader.Sax.XmlDomGenerator>, parser=None)

    1. 148 fp = cStringIO.StringIO(text)
    2. 149 rv = FromXmlStream(fp, ownerDocument, validate, keepAllWs, catName,
    3. 150 saxHandlerClass, parser)
    4. 151 return rv
    5. 152
    • saxHandlerClass = <class xml.dom.ext.reader.Sax.XmlDomGenerator>
    • parser = None
  12. /usr/lib/python2.4/site-packages/_xmlplus/dom/ext/reader/Sax.py in FromXmlStream (stream=<cStringIO.StringI object>, ownerDocument=None, validate=0, keepAllWs=0, catName=None, saxHandlerClass=<class xml.dom.ext.reader.Sax.XmlDomGenerator>, parser=None)

    1. 141 catName=None, saxHandlerClass=XmlDomGenerator, parser=None):
    2. 142 reader = Reader(validate, keepAllWs, catName, saxHandlerClass, parser)
    3. 143 return reader.fromStream(stream, ownerDocument)
    4. 144
    5. 145
    • reader = <xml.dom.ext.reader.Sax.Reader instance>
    • reader.fromStream = <bound method Reader.fromStream of <xml.dom.ext.reader.Sax.Reader instance>>
    • stream = <cStringIO.StringI object>
    • ownerDocument = None
  13. /usr/lib/python2.4/site-packages/_xmlplus/dom/ext/reader/Sax.py in fromStream (self=<xml.dom.ext.reader.Sax.Reader instance>, stream=<cStringIO.StringI object>, ownerDocument=None)

    1. 132 def fromStream(self, stream, ownerDocument=None):
    2. 133 self.handler.initState(ownerDoc=ownerDocument)
    3. 134 self.parser.parseFile(stream)
    4. 135 return self.handler.getRootNode()
    5. 136
    • self = <xml.dom.ext.reader.Sax.Reader instance>
    • self.parser = <xml.sax.drivers.drv_pyexpat.SAX_expat instance>
    • self.parser.parseFile = <bound method SAX_expat.parseFile of <xml.sax.drivers.drv_pyexpat.SAX_expat instance>>
    • stream = <cStringIO.StringI object>
  14. /usr/lib/python2.4/site-packages/_xmlplus/sax/drivers/drv_pyexpat.py in parseFile (self=<xml.sax.drivers.drv_pyexpat.SAX_expat instance>, fileobj=<cStringIO.StringI object>, sysID=None)

    1. 66 buf = fileobj.read(16384)
    2. 67 while buf != "":
    3. 68 if self.parser.Parse(buf, 0) != 1:
    4. 69 self.__report_error()
    5. 70 buf = fileobj.read(16384)
    • self = <xml.sax.drivers.drv_pyexpat.SAX_expat instance>
    • self.parser = <pyexpat.xmlparser object>
    • self.parser.Parse = <built-in method Parse of pyexpat.xmlparser object>
    • buf = "<?xml version='1.0' encoding='UTF-8'?><!DOCTYPE ...sep='1' rowsep='1'><para> <ulink url='http://moin"

ExpatError

junk after document element: line 1, column 5040

  • args = ('junk after document element: line 1, column 5040',)
  • code = 9
  • lineno = 1
  • offset = 5040

System Details

  • Date: Tue, 06 Jan 2009 15:40:14 +0000
  • Platform: Linux www.moinmo.in 2.6.18-6-xen-686 #1 SMP Sat May 24 14:16:03 UTC 2008 i686
  • Python: Python 2.4.4 (/usr/bin/python)
  • MoinMoin: Release 1.8.1 (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] (2009-01-06 15:49:12, 21.0 KB) [[attachment:DocBook Traceback ExpatError.html]]
  • [get | view] (2009-01-06 15:49:17, 33.1 KB) [[attachment:DocBook Traceback UnicodeDecodeError.html]]
 All files | Selected Files: delete move to page copy to page

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