[Pythonmac-SIG] Using setup.py/distutils on Intel Macs

Daniel Lord daniellord at mac.com
Mon Apr 17 07:29:24 CEST 2006


On Apr 16, 2006, at 17:54, steve wrote:
> When I start using the module I usually run into "ImportError:
> Inappropriate file type for dynamic loading". Is there any  
> workarounds?

That error is ( in my experience) typical to receive when loading a  
PPC format library on the i386 platform.
There might be a Universal PIL somewhere out there in the aether--try  
'googling'. If you want to try and do it yourself,
the workaround would start with compiling PIL for Intel i386 I would  
guess. I am no expert but try setting ensuring CFLAGS uses -arch 1386  
instead of -arch ppc as a start.
BUt there may be other issue. Hopefully not such as embedded endian  
issues since PIl is first written for Intel Win32 anyway. there could  
be other subtleties though.
There are others around here far more knowledgeable than I--just  
answering because they have not so far.
Daniel


More information about the Pythonmac-SIG mailing list