[Pythonmac-SIG] PIL (1.1.6) working with py2app on intel macs?

Dav Clark dav at alum.mit.edu
Fri Jul 27 05:27:53 CEST 2007


For what it's worth, I tried with the same script using the new 2.4.4  
universal python and 1.1.5 pythonmac version of PIL.  And that  
works.  So, I'm not going to fuss with it anymore for my own sake,  
but would be happy to try to track down the bug if some maintainer  
type is interested.

It would be nice to have a smaller app size...

Dav Clark
917-544-8408



On Jul 26, 2007, at 1:58 AM, Ronald Oussoren wrote:

>
> On 26 Jul, 2007, at 6:42, Dav Clark wrote:
>
>> OK - last thing...
>>
>> I figured out that the missing .so files were (at least largely) from
>> the standard python lib-dynload directory.  I tried copying the files
>> from
>>
>> /System/Library/Frameworks/Python.framework/Versions/2.3/lib/ 
>> python2.3/lib-dynload/*
>>
>> to
>>
>> Contents/Resources/lib/python2.3/lib-dynload/
>>
>> This also did not work.
>
> That was to be expected. py2app won't copy the Python interpreter  
> or stdlibrary from /System/Library/Python but will store a  
> reference to those. That's because /System/Library/Python is part  
> of the system install and hence present on all macs. Furthermore  
> copying parts of the system into your application bundle is not  
> quite permitted by the OSX license.
>
> I haven't had time to look at your problem yet. Does the problem  
> occur in a small application that just uses PIL to load a JPG image  
> or only in larger programs?  If the latter, could you supply a  
> project that reproduces this problem?
>
> Ronald
>
>>
>>
>> Cheers,
>> Dav
>>
>> On Thu, 26 Jul 2007 00:26:03 -0400, "Dav Clark" <dav at alum.mit.edu>  
>> said:
>>> I'll add to the below - on the Intel version, I have _only_  
>>> _imaging.so
>>> and _imagingtk.so.  On my (working) PPC version, there are heaps  
>>> of .so
>>> libs in the lib-dynload dir.
>>>
>>> Thanks,
>>> DC
>>>
>>> On Thu, 26 Jul 2007 00:16:54 -0400, "Dav Clark"  
>>> <dav at alum.mit.edu> said:
>>>> Hi there,
>>>>
>>>> I have a properly working copy of PIL 1.1.6 - I used this generic
>>>> recipe:
>>>>
>>>> http://wiki.python.org/moin/MacPython/ 
>>>> UniversalLibrariesAndExtensions
>>>>
>>>> I can load jpegs and see them in preview with im.show().
>>>>
>>>> I installed py2app via easy_install, and also by downloading the  
>>>> tarball
>>>> and installing... I see old posts about rebuilding the  
>>>> bootstrap, but no
>>>> idea if this is still current, and if so what the bootstrap even  
>>>> _is_,
>>>> let alone how to build it.
>>>>
>>>> But when I run an 'app', I still get the ol':
>>>>
>>>> ImportError: The _imaging C module is not installed
>>>>
>>>> Under Contents/Resources/lib/python2.3/lib-dynload/, I see both a
>>>> _imaging.so AND a PIL/_imaging.so (among other things).
>>>>
>>>> I am using the system python2.3.
>>>>
>>>> Is anyone successful with this configuration?  Any help would be
>>>> appreciated!
>>>>
>>>> Dav Clark
>>> -- 
>>> Dav Clark
>>> www.eCult.org
>>> 917-544-8408
>>>
>> -- 
>> Dav Clark
>> www.eCult.org
>> 917-544-8408
>>
>> _______________________________________________
>> Pythonmac-SIG maillist  -  Pythonmac-SIG at python.org
>> http://mail.python.org/mailman/listinfo/pythonmac-sig
>



More information about the Pythonmac-SIG mailing list