I upgraded to Snow Leopard and have problems with Python/Cocoa projects. I know the templates are no longer there, but this has to do with an existing sample project i had done before and I had no problems compiling and running the app.
With 3.2, when I try to compile and run the project I get the following error messages.... Almost list it doesn't recognize that "main.py" is a python code...
Running…
Traceback (most recent call last):
File "/Users/albert/projects/CorePythonTest/build/Debug/CorePythonTest.app/Contents/Resources/main.py", line 10, in <module>
import objc
File "/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/__init__.py", line 22, in <module>
_update()
File "/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/__init__.py", line 19, in _update
import _objc
ImportError: dlopen(/System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so, 2): Symbol not found: _PyType_Modified
Referenced from: /System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so
Expected in: flat namespace
in /System/Library/Frameworks/Python.framework/Versions/Current/Extras/lib/python/PyObjC/objc/_objc.so
2009-10-06 11:20:43.255 CorePythonTest[4959:a0f] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '/Users/albert/projects/CorePythonTest/main.m:44 main() PyRun_SimpleFile failed with file '/Users/albert/projects/CorePythonTest/build/Debug/CorePythonTest.app/Contents/Resources/main.py'. See console for errors.'
*** Call stack at first throw:
(
0 CoreFoundation 0x9495b58a __raiseError + 410
1 libobjc.A.dylib 0x972eff49 objc_exception_throw + 56
2 CoreFoundation 0x9495b2b8 +[NSException raise:format:arguments:] + 136
3 CoreFoundation 0x9495b22a +[NSException raise:format:] + 58
4 CorePythonTest 0x00002a88 main + 1042
5 CorePythonTest 0x0000264a start + 54
)
sharedlibrary apply-load-rules all
(gdb)
Any help would be appreciated....
regards,
Albert