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