Re: [Pyobjc-dev] Cocoa-Python Application on Leopard
Brought to you by:
ronaldoussoren
|
From: <ka...@ma...> - 2008-01-27 03:13:35
|
I did the experiment of santosh (importing sys and printing version in =20=
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 doesn't =20=
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/build/=20=
>> 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 I =20=
>>>> guess mine is similar. More precisely, after Building and running =20=
>>>> the application, the Xcode window says "GDB program loaded" in =20
>>>> the lower bar status. And in the Debugger window appears the =20
>>>> message "Terminating app due to uncaught exception". Looking at =20
>>>> 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 <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
>
|