I have a python program that used to work fine a couple months ago but trying
it
again today it fails due to a problem either with PyXML or the expat parser
module. (python 2.2.2 ebuild and pyxml+expat versions mentioned in the
summary).
Here's the relevant portion of the traceback, it looks like pyxml and expat are
out of sync?
self.document = xml.dom.minidom.parse(filename)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 962, in
parse
return _doparse(pulldom.parse, args, kwargs)
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/minidom.py", line 954, in
_doparse
toktype, rootNode = events.getEvent()
File "/usr/lib/python2.2/site-packages/_xmlplus/dom/pulldom.py", line 265, in
getEvent
self.parser.feed(buf)
File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", line
194,
in feed
self.reset()
File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py", line
232,
in reset
self._parser = expat.ParserCreate(None, " ", intern = self._interning)
TypeError: 'intern' is an invalid keyword argument for this function
I had the same problem, upgraded to 0.8.1 and the errormessage has changed now.
#
IncrementalParser methods
File "/usr/lib/python2.2/site-
packages/_xmlplus/sax/expatreader.py", line 232, in reset
parser.CommentHandler =
None
TypeError: 'intern' is an invalid keyword argument for this function
(NOTE: the
above output is from 0.8.1, NOT from 0.7.1)