Attachment 'ConvertError_ExpatError.html'

Download

--> -->

ConvertError

ExpatError: not well-formed (invalid token): line 376, column 581 (see dump in /home/lotek/wiki/data/lotek/expaterror.log)

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. /home2/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py in run (self=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>)

    1. 1281 self.page.send_page(msg=msg)
    2. 1282 else:
    3. 1283 handler(self.page.page_name, self)
    4. 1284
    5. 1285 # every action that didn't use to raise MoinMoinNoFooter must call this now:
    • handler = <function execute at 0xb16964c4>
    • self = <MoinMoin.request.request_standalone.Request object at 0xb082eacc>
    • self.page = <MoinMoin.Page.Page object at 0xb07cc4ac>
    • self.page.page_name = u'Breaking WEP in less then 60 seconds'
  2. /home/lotek/lib/python2.5/site-packages/MoinMoin/action/edit.py in execute (pagename=u'Breaking WEP in less then 60 seconds', request=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>)

    1. 95 converter_name = 'undefined' # XXX we don't have other converters yet
    2. 96 convert = wikiutil.importPlugin(request.cfg, "converter", converter_name, 'convert')
    3. 97 savetext = convert(request, pagename, savetext)
    4. 98
    5. 99 # IMPORTANT: normalize text from the form. This should be done in
    • savetext = u'<p class="line874">We demonstrate an active atta...class="nonexistent">CategoryCryptograhie</a> </p>'
    • convert = <function convert at 0xb08e595c>
    • request = <MoinMoin.request.request_standalone.Request object at 0xb082eacc>
    • pagename = u'Breaking WEP in less then 60 seconds'
  3. /home/lotek/lib/python2.5/site-packages/MoinMoin/converter/text_html_text_moin_wiki.py in convert (request=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>, pagename=u'Breaking WEP in less then 60 seconds', text=u'<page><p class="line874">We demonstrate an activ...nonexistent">CategoryCryptograhie</a> </p></page>')

    1. 1308 def convert(request, pagename, text):
    2. 1309 text = u"<page>%s</page>" % text
    3. 1310 tree = parse(request, text)
    4. 1311 strip_whitespace().do(tree)
    5. 1312 text = convert_tree(request, pagename).do(tree)
    • tree undefined
    • global parse = <function parse at 0xb08e5924>
    • request = <MoinMoin.request.request_standalone.Request object at 0xb082eacc>
    • text = u'<page><p class="line874">We demonstrate an activ...nonexistent">CategoryCryptograhie</a> </p></page>'
  4. /home/lotek/lib/python2.5/site-packages/MoinMoin/converter/text_html_text_moin_wiki.py in parse (request=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>, text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>')

    1. 1304 f.write("\n" + "-"*80 + "\n" + str(msg))
    2. 1305 f.close()
    3. 1306 raise ConvertError('ExpatError: %s (see dump in %s)' % (msg, logname))
    4. 1307
    5. 1308 def convert(request, pagename, text):
    • global ConvertError = <class 'MoinMoin.error.ConvertError'>
    • msg = ExpatError('not well-formed (invalid token): line 376, column 581',)
    • logname = '/home/lotek/wiki/data/lotek/expaterror.log'

ConvertError

ExpatError: not well-formed (invalid token): line 376, column 581 (see dump in /home/lotek/wiki/data/lotek/expaterror.log)

  • args = ()
  • exceptions = <bound method ConvertError.exceptions of ConvertError()>
  • innerException = (<class 'xml.parsers.expat.ExpatError'>, ExpatError('not well-formed (invalid token): line 376, column 581',), <traceback object at 0xb0831b6c>)
  • message = 'ExpatError: not well-formed (invalid token): lin...mp in /home/lotek/wiki/data/lotek/expaterror.log)'
  • 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. /home/lotek/lib/python2.5/site-packages/MoinMoin/converter/text_html_text_moin_wiki.py in parse (request=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>, text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>')

    1. 1296 text = text.encode(config.charset)
    2. 1297 try:
    3. 1298 return xml.dom.minidom.parseString(text)
    4. 1299 except xml.parsers.expat.ExpatError, msg:
    5. 1300 # this sometimes crashes when it should not, so save the stuff to analyze it:
    • global xml = <module '_xmlplus' from '/home2/lotek/lib/python2.5/site-packages/_xmlplus/__init__.pyc'>
    • xml.dom = <module 'xml.dom' from '/home2/lotek/lib/python2.5/site-packages/_xmlplus/dom/__init__.pyc'>
    • xml.dom.minidom = <module 'xml.dom.minidom' from '/home2/lotek/lib/python2.5/site-packages/_xmlplus/dom/minidom.pyc'>
    • xml.dom.minidom.parseString = <function parseString at 0xb08e4f44>
    • text = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>'
  2. /usr/local/lib/python2.5/site-packages/_xmlplus/dom/minidom.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></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 '/home2/lote...2.5/site-packages/_xmlplus/dom/expatbuilder.pyc'>
    • expatbuilder.parseString = <function parseString at 0xb08ef17c>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>'
  3. /usr/local/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py in parseString (string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>', namespaces=1)

    1. 940 else:
    2. 941 builder = ExpatBuilder()
    3. 942 return builder.parseString(string)
    4. 943
    5. 944
    • builder = <xml.dom.expatbuilder.ExpatBuilderNS instance at 0xb07cc78c>
    • builder.parseString = <bound method ExpatBuilderNS.parseString of <xml...atbuilder.ExpatBuilderNS instance at 0xb07cc78c>>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>'
  4. /usr/local/lib/python2.5/site-packages/_xmlplus/dom/expatbuilder.py in parseString (self=<xml.dom.expatbuilder.ExpatBuilderNS instance at 0xb07cc78c>, string='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></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 at 0xb081926c>
    • parser.Parse = <built-in method Parse of pyexpat.xmlparser object at 0xb081926c>
    • string = '<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...nonexistent">CategoryCryptograhie</a> </p></page>'
    • builtin True = True

ExpatError

not well-formed (invalid token): line 376, column 581

  • args = ('not well-formed (invalid token): line 376, column 581',)
  • code = 4
  • lineno = 376
  • message = 'not well-formed (invalid token): line 376, column 581'
  • offset = 581

System Details

  • Date: Sun, 30 Dec 2007 10:38:16 +0000
  • Platform: Linux web11.webfaction.com 2.6.9-55.0.2.ELsmp #1 SMP Tue Jun 12 17:59:08 EDT 2007 i686
  • Python: Python 2.5 (/home2/lotek/bin/python)
  • MoinMoin: Release 1.6.0 (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] (2007-12-30 10:56:00, 15.6 KB) [[attachment:ConvertError_ExpatError.html]]
  • [get | view] (2007-12-30 10:57:32, 25.7 KB) [[attachment:expaterror.txt]]
 All files | Selected Files: delete move to page copy to page

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