Re: Python Xcode project cannot find objc
Re: Python Xcode project cannot find objc
- Subject: Re: Python Xcode project cannot find objc
- From: Jeffrey Oleander <email@hidden>
- Date: Sun, 11 Jan 2009 08:36:21 -0800 (PST)
> On Fri, 2009/01/09, Mark Dancer <email@hidden> wrote:
> From: Mark Dancer <email@hidden>
> Subject: Re: Python Xcode project cannot find objc
> To: email@hidden
> Date: Friday, 2009 January 09, 9:15
>> On 2009 Jan 09, at 23:36, email@hidden wrote:
>>> On 2009 Jan 09, at 06:33, Mark Dancer wrote:
>>> My understanding is that objc is park of PyObjC,
>>> which I understand is now installed as part of
>>> Xcode (and has been since Xcode 3.0?).
>>> My Xcode install was vanilla (default install to
>>> the default locations), so I’m scratching my head
>>> as to where I’ve gone wrong. Any suggestions?
>> You most likely have multiple copies of Python
>> installed on your machine and the one Xcode is
>> finding is not the one in /usr/bin/python (which
>> on Leopard is a symbolic link to
>> /System/Library/Frameworks/Python.framework/Versions/2.5/bin/python)
>> To double-check your system is ok, you could type
>> in a Terminal:
>>
>> /usr/bin/python
>>
>> and then in the Python shell:
>>
>> import objc
>>
>> That should not give an error. If it does, you have
>> problems with your system.
>>
>> Dave
> You nailed it!
>
> I had copies of Python at
> System/Library/Frameworks/Python.framework/Versions/2.5,
> which included /Extras/lib/python/PyObjC/objc, and also at
> Library/Frameworks/Python.framework/Versions/2.5, which did
> not.
>
> /usr/bin/python was pointing at the former, but that
> wasn't the one being used. I deleted
> Library/Frameworks/Python.framework and it now works fine.
Seeing the post, I checked my 10.3.9 system and found
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/python
/System/Library/Frameworks/Python.framework/Versions/2.3/bin/python/python2.3
/System/Library/Frameworks/Python.framework/Versions/current/bin/python
/System/Library/Frameworks/Python.framework/Versions/current/bin/python/python2.3
but get the error when I test it as described above.
"ImportError: No module named objc"
The only thing in /Library/Frameworks/
appears to be StuffIt.framework
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden