Python and an XML Error

Martin von Loewis loewis at informatik.hu-berlin.de
Mon Sep 17 04:27:55 EDT 2001


"Dennis Wilson" <lincwils at teleport.com> writes:

> When I try to use the xml.sax lin in python, I get the following error
> message.
> 
> FILE "/usr/lib/python2.1/xml/sax/__init__.py", line 88, in make_parser
>    raise SAXReaderNotAvailable("No Parsers found", None)
> 
> I understand what this means. There is no sax parser available. I am wonder
> what suggestion anyone has to which saxparser to install and any hints on
> the procedure would be welcome.

You should install the pyexpat extension, from Modules/pyexpat.c;
enable it it Modules/Setup.

Alternatively, install PyXML from sf.net/projects/pyxml; this will
give you the xmlproc parser in addition to the expat one.

Regards,
Martin




More information about the Python-list mailing list