[Pythonmac-SIG] PyObjC vs "old school" embedding

Bob Ippolito bob at redivi.com
Wed Jun 1 01:26:21 CEST 2005


On May 31, 2005, at 4:13 PM, David Reed wrote:

>
> On May 31, 2005, at 6:54 PM, Bob Ippolito wrote:
>
>
>>
>> On May 31, 2005, at 2:27 PM, David Reed wrote:
>>
>>
>>
>>>
>>> On May 31, 2005, at 4:51 PM, Bob Ippolito wrote:
>>>
>>>
>>>
>>>
>>>>
>>>> On May 31, 2005, at 1:17 PM, gandreas at gandreas.com wrote:
>>>>
>>>>
>>>>
>>>>
>>>>> (* - I've downloaded and installed PyObjC 1.3.6 twice but for some
>>>>> reason it doesn't want to use it:
>>>>>
>>>>> gandreas% /Library/Frameworks/Python.framework/Versions/Current/ 
>>>>> bin/
>>>>> python2.4
>>>>> Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
>>>>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
>>>>> Type "help", "copyright", "credits" or "license" for more
>>>>> information.
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>> import objc
>>>>>>>> objc.__version__
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>> '1.3.5'
>>>>>
>>>>>
>>>>>
>>>>>
>>>>>>>> objc.__file__
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>> '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/
>>>>> site-packages/PyObjC/objc/__init__.pyc'
>>>>> )
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>>> Anyone else have this problem?
>>>>
>>>>
>>>
>>>
>>> I just downloaded and installed 1.3.6 and also have that problem.
>>>
>>> $ python2.4
>>> Python 2.4.1 (#2, Mar 31 2005, 00:05:10)
>>> [GCC 3.3 20030304 (Apple Computer, Inc. build 1666)] on darwin
>>> Type "help", "copyright", "credits" or "license" for more  
>>> information.
>>>
>>>
>>>
>>>>>> import objc
>>>>>> objc.__version__
>>>>>>
>>>>>>
>>>>>>
>>> '1.3.5'
>>>
>>>
>>>
>>>>>> objc.__file__
>>>>>>
>>>>>>
>>>>>>
>>> '/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/ 
>>> site-
>>> packages/PyObjC/objc/__init__.pyc'
>>>
>>>
>>
>> Did you have a previous installation of PyObjC 1.3.5?  Which  
>> package did you install?  The one from pythonmac.org, or  
>> sourceforge?  What is the name of the package that you installed?
>
>
> I did have an earlier version of pyobjc but I don't think it was  
> 1.3.5. I recently got a desktop and had OS X transfer all the files  
> from my laptop so it should be what is there. The laptop reports  
> version 1.3 so that should be the earlier version that was  
> installed on my desktop.
>
> Are you certain the version number just isn't wrong in the file?
>
> I installed pyobjc-1.3.6-py2.4-macosx10.4.mpkg
>
> I'm not certain where I started, but it did come from sf.net.
>
> http://prdownloads.sourceforge.net/pyobjc/pyobjc-1.3.6-py2.4- 
> macosx10.4.zip?download

I can verify that the _objc.so extension in that package indeed  
incorrectly versioned.

Because the package was named correctly, the only explanation for  
this is that it was built from an earlier svn revision where the  
version was still marked as 1.3.5.  The header that defines the  
version was then trivially changed to reflect the new version, but no  
source was changed so distutils didn't rebuild of that extension.   
What you've installed *is* 1.3.6 in every way except for what it  
reports (because no functional changes were made to any headers).

I'll put up new 10.4 installers later today, but again -- no big deal.

-bob



More information about the Pythonmac-SIG mailing list