PyXML-0.7.1, python-2.2.1, and Redhat 7.3
Steve Drake
sdrake at knology.net
Mon Jul 29 20:43:51 EDT 2002
I am having a problem using PyXML with tutorial code that I got at
http://www.ibm.com/developerWorks. Although this code works on
Windows with python-2.2.1, and works on RH 7.3 with python-1.5.2, I
get an error when attempting to use python-2.2.1 on RH 7.3. I tried
installing python-2.2.1 and PyXML-0.7.1 from source, but I get the
same error as when using rpm packages. Any help will be
appreciated...
Python 2.2.1 (#1, Jul 15 2002, 10:55:56)
[GCC 2.96 20000731 (Red Hat Linux 7.3 2.96-110)] on linux2
Type "copyright", "credits" or "license" for more information.
IDLE 0.8 -- press F1 for help
>>> from xml.dom.ext.reader.Sax2 import Reader
>>> PyXMLReader = Reader()
>>> xmlText="""<?xml version="1.0"?>
<docRoot>
<docElement name="1">
<docElement name="2">Text</docElement>
</docElement
</docRoot>"""
>>> doc = PyXMLReader.fromString(xmlText)
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
More information about the Python-list
mailing list