SAXReaderNotAvailble: No parsers found

josh logan dear.jay.logan at
Sun Aug 31 02:59:18 CEST 2008

> Vincent Yau <y... at> writes:
> > I am trying to use Python SAX API to parse XML files.  I do see
> > somewhere underneath my Python 2.1.1 installation (on Solaris).
> > But I got this error when invoking the xml.sax.make_parser() call.  Any
> > tip/help much appreciated.
> You should install Expat before building Python. Best, you edit
> Modules/Setup to build pyexpat explicitly.
> Regards,
> Martin

Fast-forward to 2008

I installed Python 3.0b2 on a Windows Vista laptop (after having
previously installed Python 2.5), and I am getting this same error:

Traceback (most recent call last):
  File "Programming\Python\", line 24, in <module>
  File "Programming\Python\", line 21, in test_parse
    xml.sax.parse(f, handler)
  File "C:\Python30\lib\xml\sax\", line 30, in parse
    parser = make_parser()
  File "C:\Python30\lib\xml\sax\", line 90, in make_parser
    raise SAXReaderNotAvailable("No parsers found", None)
xml.sax._exceptions.SAXReaderNotAvailable: No parsers found

I see a pyexpat.lib in the C:\Python30\libs folder.
I also see a pyexpat.pyd in the C:\Python30\DLLs folder.

It works in Python 2.5. I installed Python 3.0b2 as admin.
Does anyone know what is wrong and how to fix it?

More information about the Python-list mailing list