xml.parsers.expat
Martin von Loewis
loewis at informatik.hu-berlin.de
Tue May 1 16:22:50 EDT 2001
"Richard Townsend" <richard at NOstarfighterSPAM.freeuk.com> writes:
> I can't get the example program in section 13.4.3 of the Python Library
> Reference to work. It gives:
>
> ImportError: No module named parsers.expat
>
> I have tried it using Python 2.0 on Windows, Linux and HPUX and get the same
> error.
Most likely, pyexpat has not been compiled on Linux and HPUX. I'm
surprised it fails on Windows, though - where did you get your Python
binary from?
> On Linux and HPUX, I have modified the Modules/Setup file to link in the
> expat library, but it didn't make any difference.
Just modifying it certainly won't help - you have to rebuild and
reinstall Python, it it can't hurt to verify that pyexpat has been build.
Does a simple "import pyexpat" succeed?
> Should this example work with Python 2.0 ?
Certainly.
Regards,
Martin
More information about the Python-list
mailing list