• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
xcode 3.2 and Python problems
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

xcode 3.2 and Python problems


  • Subject: xcode 3.2 and Python problems
  • From: albert jordan Mobility <email@hidden>
  • Date: Tue, 06 Oct 2009 11:23:46 -0700


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
 _______________________________________________
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

  • Follow-Ups:
    • Re: xcode 3.2 and Python problems
      • From: Peter O'Gorman <email@hidden>
  • Prev by Date: Re: Comparison of promoted ~unsigned
  • Next by Date: How to work on case-sensitive projects?
  • Previous by thread: Re: No Carbon project template after updating OS + SDK
  • Next by thread: Re: xcode 3.2 and Python problems
  • Index(es):
    • Date
    • Thread