Re: [Pyobjc-dev] Cocoa-Python Application on Leopard
Brought to you by:
ronaldoussoren
|
From: Olivier F. <ofe...@du...> - 2008-01-28 18:38:19
|
have anyone resolved this problem yet? I experience exactly the same issue. I've tried to reinstall xCode =20 after removing the older python and it did not work (but maybe I =20 forgot to delete some other aliases?) any suggestions? Thanks, Olivier On Jan 26, 2008, at 10:13 PM, ka...@ma... wrote: > I did the experiment of santosh (importing sys and printing version =20= > 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 =20 > Control/build/Debug/In Control.app/Contents/Resources/main.py", line =20= > 13, in <module> > import objc > ImportError: No module named objc > > It seems I get the correct version of python, but Xcode still =20 > doesn't find the module objc. :( > > Le 27 janv. 08 =E0 01:43, John Skidgel a =E9crit : > >> I had a similar problem when I upgraded from Tiger to Leopard. =20 >> 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 =20 >> the older custom install of Python was still in /Developer/Library/=20= >> Frameworks (I think that was the path). I removed the alias and the =20= >> _older_ Python, ran the unistall for developer tools, re-installed =20= >> 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/=20 >>> 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, ka...@ma... wrote: >>>>> Following my previous message "Terminating app due to uncaught =20 >>>>> exception" , I read the experience of santosh (2008-01-23), and =20= >>>>> I guess mine is similar. More precisely, after Building and =20 >>>>> running the application, the Xcode window says "GDB program =20 >>>>> loaded" in the lower bar status. And in the Debugger window =20 >>>>> appears the message "Terminating app due to uncaught exception". =20= >>>>> Looking at the Debugger Console window, it looks like : >>>>> >>>>> Traceback (most recent call last): >>>>> File "~/Documents/Python/MySimpleClass/build/Release/=20 >>>>> MySimpleClass.app/Contents/Resources/main.py", line 10, in =20 >>>>> <module> >>>>> import objc >>>>> ImportError: No module named objc >>>>> >>>>> Is there a problem in installing PyObjC ? The module objc seems =20= >>>>> not to be available to the application. What can I do ? >>>> >>>> Do you have a custom install of Python floating around? Or a =20 >>>> 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 >>>> Pyo...@li... >>>> 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 >>> Pyo...@li... >>> 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 > Pyo...@li... > 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 www.acpub.duke.edu/~ofedrigo/ |