Re: Python Xcode project cannot find objc
Re: Python Xcode project cannot find objc
- Subject: Re: Python Xcode project cannot find objc
- From: Mark Dancer <email@hidden>
- Date: Sat, 10 Jan 2009 01:15:21 +1000
On 9 Jan 2009, at 23:36, email@hidden wrote:
On Jan 9, 2009, at 6:33 AM, 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.
Many thanks Dave.
Mark Dancer
email@hidden _______________________________________________
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