how do i get xml.sax.make_parser() to work on solaris and cygwin python

andrew ayinger1 at pacbell.net
Thu Mar 14 22:53:19 EST 2002


hi.

following the basic sax tutorial, i can get an xml parser to work fine
on win32 like so:

	xmlparser = make_parser()
	xmlparser.setContentHandler(myHandler())
	xmlparser.parse(xmlFile)



but, when i run under cygwin or solaris, i get this error:

>>> p = make_parser()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/local/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


it looks like neither cygwin nor solaris python installation includes
expat libraries.  any idea how i can get this working?

i am using python 2.1/2.2.


thanks,
andrew



More information about the Python-list mailing list