Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
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
PyXML 0.8.1 doesn't have this problem. (emerged using "ACCEPT_KEYWORD='~x86' sudo emerge PyXML")
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)
I have no idea what this might be. Has anyone had any luck fixing this?
it looks like a pyxml and expat incompatibility. pyxml-0.8.1 isn't compatible with expat-1.95.6. i'm committing pyxml-0.8.2, please emerge that and see if it helps you
please reopen if you are still having problems with this.