[Tutor] SAXReaderNotAvailable - problems using xml.dom in python2.1.3

Craig Davey craig@eigentone-solo-collective.net
Sat Apr 26 16:25:02 2003


Greetings

I'm quite new to python so I apologize if I've overlooked the obvious. 
I've just installed python2.1.3 on Mac OS 10.2 and have run into a 
problem demonstrated by the following:

--- snip/ ------------
 >>> import xml.dom.minidom
 >>> dom = xml.dom.minidom.parseString('<t>a little text for show</t>')
Traceback (most recent call last):
   File "<stdin>", line 1, in ?
   File "/opt/PYTHON/PYTHON2.1.3/lib/python2.1/xml/dom/minidom.py", line 
915, in parseString
     return _doparse(pulldom.parseString, args, kwargs)
   File "/opt/PYTHON/PYTHON2.1.3/lib/python2.1/xml/dom/minidom.py", line 
901, in _doparse
     events = apply(func, args, kwargs)
   File "/opt/PYTHON/PYTHON2.1.3/lib/python2.1/xml/dom/pulldom.py", line 
301, in parseString
     parser = xml.sax.make_parser()
   File "/opt/PYTHON/PYTHON2.1.3/lib/python2.1/xml/sax/__init__.py", 
line 88, in make_parser
     raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found
--- /snip ------------

I'm coming at this from a mostly ECMAScript and Lingo background so I'm 
afraid most of these errors are lost on me. I do understand that 
without some way to parse xml into a dom I'm going to have a hard time 
working with xml in python. Any pointers on how to resolve this problem 
are most appreciated, I really do not know where to start.

- Craig Davey