--> -->

AttributeError

'module' object has no attribute 'expat'

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

    1. 1170 self.page.send_page(self, msg=msg)
    2. 1171 else:
    3. 1172 handler(self.page.page_name, self)
    4. 1173
    5. 1174 # generate page footer (actions that do not want this footer use
    • handler = <function do_edit>
    • self = <MoinMoin.request.RequestModPy object>
    • self.page = <MoinMoin.Page.Page instance>
    • self.page.page_name = u'MyStartingPage'
  2. /usr/pkg/lib/python2.4/site-packages/MoinMoin/wikiaction.py in do_edit (pagename=u'MyStartingPage', request=<MoinMoin.request.RequestModPy object>)

    1. 597 try:
    2. 598 if lasteditor == 'gui':
    3. 599 savetext = convert(request, pagename, savetext)
    4. 600
    5. 601 # IMPORTANT: normalize text from the form. This should be done in
    • savetext = u'<p class="line874">wohoo... </p>'
    • convert = <function convert>
    • request = <MoinMoin.request.RequestModPy object>
    • pagename = u'MyStartingPage'
  3. /usr/pkg/lib/python2.4/site-packages/MoinMoin/converter/text_html_text_x_moin.py in convert (request=<MoinMoin.request.RequestModPy object>, pagename=u'MyStartingPage', text=u'<page><p class="line874">wohoo... </p></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.RequestModPy object>
    • text = u'<page><p class="line874">wohoo... </p></page>'
  4. /usr/pkg/lib/python2.4/site-packages/MoinMoin/converter/text_html_text_x_moin.py in parse (request=<MoinMoin.request.RequestModPy object>, text='<?xml version="1.0"?>\n<!DOCTYPE html [\n<!ENTITY ...\n]>\n<page><p class="line874">wohoo... </p></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/pkg/lib/python2.4/xml/__init__.pyo'>
    • xml.parsers = <module 'xml.parsers' from '/usr/pkg/lib/python2.4/xml/parsers/__init__.pyo'>
    • xml.parsers.expat undefined
    • msg undefined

AttributeError

'module' object has no attribute 'expat'

  • args = ("'module' object has no attribute 'expat'",)

System Details