[Pythonmac-SIG] expat.py broken in Python 2.5

Stewart Midwinter stewart at midwinter.ca
Sun Mar 30 17:53:11 CEST 2008


In the lastest python 2.5 build for Macintosh, the pyexpat module binary is
not available to Mac users with Intel processors. If you try to import it,
you get an error saying that the binary is for PPC architecture only.   This
is a bug introduced in Python 2.5, since it does not exist in Python 2.4.

How can we go about fixing this?

  File
"/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_xmlplus/parsers/expat.py",
line 4, in <module>
    from pyexpat import *
ImportError:
dlopen(/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_xmlplus/parsers/pyexpat.so,
2): no suitable image found.  Did find:

/Library/Frameworks/Python.framework/Versions/2.5/lib/python2.5/site-packages/_xmlplus/parsers/pyexpat.so:
mach-o, but wrong architecture

thanks
S
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/pythonmac-sig/attachments/20080330/d1d4bdd3/attachment.htm 


More information about the Pythonmac-SIG mailing list