<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Would this then mean that PIL would also fail complaining about "wrong architecture" when running under 64-bit Apache?<div><br></div><div>Geert<br><div><br></div><div><div><blockquote type="cite"><font class="Apple-style-span" color="#000000"><br></font><br><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>From: </b></span><span style="font-family:'Helvetica'; font-size:medium;">VanL <<a href="mailto:van.lindberg@gmail.com">van.lindberg@gmail.com</a>><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Date: </b></span><span style="font-family:'Helvetica'; font-size:medium;">16 September 2009 7:54:39 PM<br></span></
p: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>To: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><a href="mailto:pythonmac-sig@python.org">pythonmac-sig@python.org</a><br></span></div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px;"><span style="font-family:'Helvetica'; font-size:medium; color:rgba(0, 0, 0, 0.5);"><b>Subject: </b></span><span style="font-family:'Helvetica'; font-size:medium;"><b>Re: [Pythonmac-SIG] django webapp using CoreGraphics complains about "wrong architecture"</b><br></span></div><br><br>David Warde-Farley wrote:<br><br><blockquote type="cite">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-mola
t of _imaging will silently fail somewhere in the Python code but be caught by an exception handler.<br></blockquote><br>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.<br><br>Thanks,<br><br>Van<br><br><br></blockquote></div><br></div></div></body></html>