Bug 14081 - PyXML 0.7.1 + expat 1.95.4 xml.dom.minidom intern keyword error
Bug#: 14081 Product:  Gentoo Linux Version: 1.2 Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: liquidx@gentoo.org Reported By: greg-gentoo@electricrain.com
Component: Ebuilds
URL: 
Summary: PyXML 0.7.1 + expat 1.95.4 xml.dom.minidom intern keyword error
Keywords:  
Status Whiteboard: 
Opened: 2003-01-17 00:10 0000
Description:   Opened: 2003-01-17 00:10 0000
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

------- Comment #1 From Gregory P. Smith 2003-01-17 00:21:23 0000 -------
PyXML 0.8.1 doesn't have this problem.  (emerged using "ACCEPT_KEYWORD='~x86'
sudo emerge PyXML")

------- Comment #2 From Samuel Graenacher 2003-01-18 08:16:49 0000 -------
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)

------- Comment #3 From Bart Lauwers (RETIRED) 2003-04-19 19:34:19 0000 -------
I have no idea what this might be. Has anyone had any luck fixing this?

------- Comment #4 From Alastair Tse (RETIRED) 2003-04-24 16:47:09 0000 -------
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

------- Comment #5 From Alastair Tse (RETIRED) 2003-04-28 16:14:30 0000 -------
please reopen if you are still having problems with this.