have anyone resolved this problem yet?
I experience exactly the same issue. I've tried to reinstall xCode after removing the older python and it did not work (but maybe I forgot to delete some other aliases?)
any suggestions?

Thanks,

Olivier



On Jan 26, 2008, at 10:13 PM, kapsi@mac.com wrote:

I did the experiment of santosh (importing sys and printing version in main.py), and I had a correct answer:

[Session started at 2008-01-27 09:04:46 +0600.]
2.5.1 (r251:54869, Apr 18 2007, 22:08:04) 
[GCC 4.0.1 (Apple Computer, Inc. build 5367)]
Traceback (most recent call last):
  File "/Users/tdarrigrand/Documents/Python/Tutorial PyObjC/Tut/In Control/build/Debug/In Control.app/Contents/Resources/main.py", line 13, in <module>
    import objc
ImportError: No module named objc

It seems I get the correct version of python, but Xcode still doesn't find the module objc. :(

Le 27 janv. 08 à 01:43, John Skidgel a écrit :

I had a similar problem when I  upgraded from Tiger to Leopard. fine. Not sure if this helps, but this is what I recall:
I had an older install of Python and when I upgraded, an alias to the older custom install of Python was still in /Developer/Library/Frameworks (I think that was the path). I removed the alias and the _older_ Python, ran the unistall for developer tools, re-installed the developer tools, and then everything worked ok. 

On Jan 26, 2008, at 11:32 AM, santosh wrote:

I put in the following lines in main.py

import sys
print sys.version

The debugger console now shows:

[Session started at 2008-01-26 11:17:03 -0800.]
2.4.4 (#1, Oct 18 2006, 10:34:39) 
[GCC 4.0.1 (Apple Computer, Inc. build 5341)]
Traceback (most recent call last):
  File "/Users/oompag/Documents/coolshadow/MacGUI/test/aatest/build/Debug/aatest.app/Contents/Resources/main.py", line 12, in ?
    import objc
ImportError: No module named objc

hmmm ...
it is running python 2.4.4 from Xcode.

typing python at  the terminal I get:
Python 2.5.1 (r251:54863, Oct  9 2007, 20:39:46) 
[GCC 4.0.1 (Apple Inc. build 5465)] on darwin

Santosh



On Jan 25, 2008, at 11:04 PM, Bill Bumgarner wrote:

On Jan 25, 2008, at 9:10 PM, kapsi@mac.com wrote:
Following my previous message "Terminating app due to uncaught exception" , I read the experience of santosh (2008-01-23), and I guess mine is similar. More precisely, after Building and running the application, the Xcode window says "GDB program loaded" in the lower bar status. And in the Debugger window appears the message "Terminating app due to uncaught exception". Looking at the Debugger Console window, it looks like :

Traceback (most recent call last):
  File "~/Documents/Python/MySimpleClass/build/Release/MySimpleClass.app/Contents/Resources/main.py", line 10, in <module>
    import objc
ImportError: No module named objc

Is there a problem in installing PyObjC ? The module objc seems not to be available to the application. What can I do ?

Do you have a custom install of Python floating around?  Or a custom install of PyObjC?

b.bum
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/_______________________________________________
Pyobjc-dev mailing list
Pyobjc-dev@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyobjc-dev

Olivier Fedrigo, Ph.D.
Biology Dpt. and Institute for Genome Sciences & Policy
Duke University
4235 French Family Science
Durham, NC 27708-0338

 

T.  919.668.7634 
F.  919.660.7293