I'm new to this list (and lists in general) so please advise if I break any
rules. I'm running OS X 10.5.6 and XCode 3. I've been advised to leave
system's python installation alone and since I need to install packages,
I've installed Python 2.6.2 which went in the
~/Library/Frameworks/Python.framework directory.  I've also installed some
packages there. While I can run Python scripts without a problem from Idle
and Terminal, I'm having problems with XCode. I tried to build a Python -
Cocoa application and did a Build and Go. I got the following error in the
Console:

*Traceback (most recent call last):*

*  File "main.py", line 10, in <module>*

*    import objc*

*ImportError: No module named objc*

*2009-05-02 10:16:34.369 pyTest[1422:10b] *** Terminating app due to
uncaught exception 'NSInternalInconsistencyException', reason:
'/Developer/Eric/pyTest/main.m:44 main() PyRun_SimpleFile failed with file
'/Developer/Eric/pyTest/build/Debug/pyTest.app/Contents/Resources/main.py'.
See console for errors.'*

*2009-05-02 10:16:34.372 pyTest[1422:10b] Stack: (*

*    2533839115,*

*    2439867963,*

*    2533838571,*

*    2533838634*


I'm assuming that the new version of Python is being used and that pyobjc
isn't installed. Is the remedy to install pyobjc into the Python 2.6.2
installation? or are there other dependancies? Will "easy_install pyobjc" in
terminal install the correct version (in the correct python)? Lastly, while
I've a bit of experience in Python, I have little in XCode and Objective-C.
I've worked through some tutorials, but I've not found a decent yet basic
tutorial for doing a Python Cocoa application in XCode 3. Apple's tutorial
is for XCode 2 and enough seems to have changed that I have trouble
following it. All I really want to do now is create a simple UI, and receive
a string from a text field and send result text to another text field or
label.


Thanks,


Eric
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to