Python2.2 and expat
Gerhard Häring
gerhard at bigfoot.de
Thu Mar 14 22:06:32 EST 2002
Trent Mick wrote in comp.lang.python:
> [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.
His path didn't look like he's using Windows.
Gerhard, picking nits
--
mail: gerhard <at> bigfoot <dot> de registered Linux user #64239
web: http://www.cs.fhm.edu/~ifw00065/ OpenPGP public key id 86AB43C0
public key fingerprint: DEC1 1D02 5743 1159 CD20 A4B6 7B22 6575 86AB 43C0
reduce(lambda x,y:x+y,map(lambda x:chr(ord(x)^42),tuple('zS^BED\nX_FOY\x0b')))
More information about the Python-list
mailing list