[XML-SIG] Win32 0.5.2: No parsers found

Lars Marius Garshol larsga@garshol.priv.no
11 Oct 1999 15:21:15 +0200

* gtk@well.com
| C:\Program Files\Python\xml\demo\quotes>python qtfmt.py sample.xml
| Traceback (innermost last):
|   File "qtfmt.py", line 372, in ?
|     p=saxexts.XMLParserFactory.make_parser("xml.sax.drivers.drv_pyexpat")
|   File "C:\Program Files\Python\xml\sax\saxexts.py", line 65, in make_parser
|     raise saxlib.SAXException("No parsers found",None)
| xml.sax.saxlib.SAXException: No parsers found

The first thing to note here is that this demo seems to be hard-wired
to use Expat. Try doing this:

from xml.sax.drivers import drv_pyexpat

in the Python interpreter and see what happens. If it can't find
"pyexpat" then Expat isn't installed correctly.

Then you can try:

from xml.sax import saxexts
print saxexts.make_parser().get_parser_name()
If this prints a parser name, this is your default parser and you do
have a parser installed.

| Making sure that Python and Python\DLLs is on my PATH doesn't appear
| to help.

The PYTHONPATH and the Python registry settings are what matters, not
the PATH variable.

--Lars M.