Python2.2 and expat
Trent Mick
trentm at ActiveState.com
Thu Mar 14 21:08:48 EST 2002
[Colin Fox wrote]
> Hello, everyone.
>
> I'm trying to build garnome, which requires Python2.2 + Python2.2-xml.
> I've got Python2.2 built, but for some reason it doesn't seem to build
> expat. And when I try to "import xml.parsers.expat" I get:
>
> >>> import xml.parsers.expat
> Traceback (most recent call last):
> File "<stdin>", line 1, in ?
> File "/usr/local/lib/python2.2/xml/parsers/expat.py", line 4, in ?
> from pyexpat import *
> ImportError: No module named pyexpat
>
> Where is pyexpat supposed to come from?
There is a section on building the pyexpat extension in
dist\src\PCbuild\readme.txt. Basically you need a separate build of expat in
the right place so that Python pyexpat build can find and use it.
Cheers,
Trent
--
Trent Mick
TrentM at ActiveState.com
More information about the Python-list
mailing list