PyXML-0.7.1, python-2.2.1, and Redhat 7.3

Jonathan Hogg jonathan at onegoodidea.com
Tue Jul 30 04:36:47 EDT 2002


On 30/7/2002 2:05, in article 3D45E665.3C34CDF at alcyone.com, "Erik Max
Francis" <max at alcyone.com> wrote:

> Looks like a typo to me.

That may well be so, but that would result in a parser well-formedness (what
a great word) error. The traceback appears to be pointing to something else:

> Traceback (most recent call last):
> File "<pyshell#8>", line 1, in ?
>   doc = PyXMLReader.fromString(xmlText)
> File "/usr/lib/python2.2/site-packages/_xmlplus/dom/ext/reader/__init__.py",
> line 63, in fromString
>   return self.fromStream(stream, ownerDoc)
> File "/usr/lib/python2.2/site-packages/_xmlplus/dom/ext/reader/Sax2.py",
> line 373, in fromStream
>   self.parser.parse(s)
> 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

Is this some weird mismatch in expat module version?

Jonathan




More information about the Python-list mailing list