Wiki bug

Gergo Szakal bastyaelvtars at gmail.com
Tue Mar 27 17:18:46 PDT 2007


Hello,
Trying to add a new page, I got errors:

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/www/wiki/lib/python2.3/site-packages/MoinMoin/request.py in run (self=<MoinMoin.request.RequestCGI object>)
         1. 1191 pass
         2. 1192 except Exception, err:
         3. 1193 self.fail(err)
         4. 1194
         5. 1195 return self.finish()
          * self = <MoinMoin.request.RequestCGI object>
          * self.fail = <bound method RequestCGI.fail of <MoinMoin.request.RequestCGI object>>
          * err = <exceptions.AttributeError instance>
   2.

      /usr/local/www/wiki/lib/python2.3/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'HowToUpdate', request=<MoinMoin.request.RequestCGI object>)
         1. 605 # we don't want to throw an exception if user cancelled anyway
         2. 606 if not cancelled:
         3. 607 raise
         4. 608
         5. 609 if cancelled:
   3.

      /usr/local/www/wiki/lib/python2.3/site-packages/MoinMoin/converter/text_html_text_x_moin.py in convert (request=<MoinMoin.request.RequestCGI object>, pagename=u'HowToUpdate', text=u'<page><h2>Upgrading <a href="/index.cgi/DragonFl...dbdir /var/db/pkg --prefix /usr/pkg </pre></page>')
         1. 1218 def convert(request, pagename, text):
         2. 1219 text = u"<page>%s</page>" % text
         3. 1220 tree = parse(request, text)
         4. 1221 strip_whitespace().do(tree)
         5. 1222 text = convert_tree(request, pagename).do(tree)
          * tree undefined
          * global parse = <function parse>
          * request = <MoinMoin.request.RequestCGI object>
          * text = u'<page><h2>Upgrading <a href="/index.cgi/DragonFl...dbdir /var/db/pkg --prefix /usr/pkg </pre></page>'
   4.

      /usr/local/www/wiki/lib/python2.3/site-packages/MoinMoin/converter/text_html_text_x_moin.py in parse (request=<MoinMoin.request.RequestCGI object>, text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...dbdir /var/db/pkg --prefix /usr/pkg </pre></page>')
         1. 1207 try:
         2. 1208 return xml.dom.minidom.parseString(text)
         3. 1209 except xml.parsers.expat.ExpatError, msg:
         4. 1210 # this sometimes crashes when it should not, so save the stuff to analyze it:
         5. 1211 logname = os.path.join(request.cfg.data_dir, "expaterror.log")
          * global xml = <module 'xml' from '/usr/local/lib/python2.3/xml/__init__.pyc'>
          * xml.parsers = <module 'xml.parsers' from '/usr/local/lib/python2.3/xml/parsers/__init__.pyc'>
          * xml.parsers.expat = <module 'xml.parsers.expat' from '/usr/local/lib/python2.3/xml/parsers/expat.pyc'>
          * xml.parsers.expat.ExpatError undefined
          * msg undefined

AttributeError

'module' object has no attribute 'ExpatError'

    * args = ("'module' object has no attribute 'ExpatError'",)



-- 
Gergo Szakal <bastyaelvtars at gmail.com>
University Of Szeged, HU
Faculty Of General Medicine

/* Please do not CC me with replies, thank you. */





More information about the Docs mailing list