Last friday I performed an update from Tiger to Leopard and also installed Xcode 3. As I'd like to experiment with python/objc, I started a 'Cocoa-Python Application' from the project templates. But whatever I do, I keep getting the following error:
So it seems that it can't find (py)objc. That's strange because I thought that it would come with Leopard. I don't know what to do anymore, because a custom installation doesn't seem to work either. Does anyone have a solution for this problem?
[Session started at 2007-10-29 23:26:49 +0100.]
Traceback (most recent call last):
File "/Users/Dan/PythonTest/build/Release/PythonTest.app/Contents/Resources/main.py", line 2, in <module>
import objc
ImportError: No module named objc
2007-10-29 23:26:49.107 PythonTest[2735:10b] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/Dan/PythonTest/main.m:44 main() PyRun_SimpleFile failed with file '/Users/Dan/PythonTest/build/Release/PythonTest.app/Contents/Resources/main.py'. See console for errors.'
2007-10-29 23:26:49.108 PythonTest[2735:10b] Stack: (
2517521003,
2482397339,
2517520459,
2517520522
)
Loading program into debugger
GNU gdb 6.3.50-20050815 (Apple version gdb-768) (Tue Oct 2 04:07:49 UTC 2007)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i386-apple-darwin".Program loaded.
sharedlibrary apply-load-rules all
Attaching to program: `/Users/Dan/PythonTest/build/Release/PythonTest.app/Contents/MacOS/PythonTest', process 2735.
(gdb)
So it seems that it can't find (py)objc. That's strange because I thought that it would come with Leopard. I don't know what to do anymore, because a custom installation doesn't seem to work either. Does anyone have a solution for this problem?