[Tutor] xml.sax error
alan.gauld@bt.com
alan.gauld@bt.com
Thu, 10 Oct 2002 13:59:47 +0100
> The code I'm running is almost directly from a HOWTO @
> (http://pyxml.sourceforge.net/topics/howto/node12.html). Am I doing
> something wrong? Take a look and let me know what you see.
I'm no expert in this area as I've done nothing with sax.
BUT, The error actually smells to me of an incompatibility
between the python code and the underlying library version.
It might be worth posting the versions you are using of
python
sax
expat
etc
But, like I say, I'm guessing!
Alan g.
> >python -u xmlin.py
> Traceback (most recent call last):
> File "xmlin.py", line 83, in ?
> parser.parse(file)
> File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
> line 107, in parse
> self.reset()
> File "/usr/lib/python2.2/site-packages/_xmlplus/sax/expatreader.py",
> line 236, in reset
> self._parser = expat.ParserCreate(intern = self._interning)
> TypeError: 'intern' is an invalid keyword argument for this function
> >Exit code: 256