[Pythonmac-SIG] django webapp using CoreGraphics complains about "wrong architecture"
Geert Dekkers
geert at nznl.com
Thu Sep 17 13:07:02 CEST 2009
Would this then mean that PIL would also fail complaining about "wrong
architecture" when running under 64-bit Apache?
Geert
>
>
> From: VanL <van.lindberg at gmail.com>
> Date: 16 September 2009 7:54:39 PM
> To: pythonmac-sig at python.org
> Subject: Re: [Pythonmac-SIG] django webapp using CoreGraphics
> complains about "wrong architecture"
>
>
> David Warde-Farley wrote:
>
>> My best guess (as I've never poked around in the guts of PIL) is
>> that there is a pure Python version that is slow-as-molasses and
>> then a sped up C version which is used if possible (_imaging.so).
>> PIL invoked from Apache will thus probably use the slow-as-molasses
>> version as the import of _imaging will silently fail somewhere in
>> the Python code but be caught by an exception handler.
>
> PIL is lazy. It will give you back an image object that will be
> filled in when you look inside it. Thus, the pure Python create
> image works, but the lazy hook bombs when you try to actually do
> something with the image.
>
> Thanks,
>
> Van
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pythonmac-sig/attachments/20090917/26b637cd/attachment.htm>
More information about the Pythonmac-SIG
mailing list