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.
/home2/lotek/lib/python2.5/site-packages/MoinMoin/request/__init__.py
in run
(self=<MoinMoin.request.request_standalone.Request object at 0xb082eacc>)
- 1281 self.page.send_page(msg=msg)
- 1282 else:
- 1283 handler(self.page.page_name, self)
- 1284
- 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'
/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>)
- 95 converter_name = 'undefined' # XXX we don't have other converters yet
- 96 convert = wikiutil.importPlugin(request.cfg, "converter", converter_name, 'convert')
- 97 savetext = convert(request, pagename, savetext)
- 98
- 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'
/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>')
- 1308 def convert(request, pagename, text):
- 1309 text = u"<page>%s</page>" % text
- 1310 tree = parse(request, text)
- 1311 strip_whitespace().do(tree)
- 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>'
/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>')
- 1304 f.write("\n" + "-"*80 + "\n" + str(msg))
- 1305 f.close()
- 1306 raise ConvertError('ExpatError: %s (see dump in %s)' % (msg, logname))
- 1307
- 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.
/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>')
- 1296 text = text.encode(config.charset)
- 1297 try:
- 1298 return xml.dom.minidom.parseString(text)
- 1299 except xml.parsers.expat.ExpatError, msg:
- 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>'
/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)
- 1923 if parser is None:
- 1924 from xml.dom import expatbuilder
- 1925 return expatbuilder.parseString(string)
- 1926 else:
- 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>'
/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)
- 940 else:
- 941 builder = ExpatBuilder()
- 942 return builder.parseString(string)
- 943
- 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>'
/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>')
- 221 parser = self.getParser()
- 222 try:
- 223 parser.Parse(string, True)
- 224 self._setup_subset(string)
- 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)