[Pythonmac-SIG] Module Import Problem

Mike smartmike1 at gmail.com
Tue May 11 17:47:14 CEST 2010


----- Original Message ----- 
From: "Ronald Oussoren" <ronaldoussoren at mac.com>
To: "Mike" <smartmike1 at gmail.com>
Cc: <pythonmac-sig at python.org>
Sent: Tuesday, May 11, 2010 4:04 AM
Subject: Re: [Pythonmac-SIG] Module Import Problem



On 9 May, 2010, at 22:21, Mike wrote:

>
> ----- Original Message ----- From: "Ronald Oussoren" 
> <ronaldoussoren at mac.com>
> To: "Mike" <smartmike1 at gmail.com>
> Cc: <pythonmac-sig at python.org>
> Sent: Monday, May 03, 2010 1:09 AM
> Subject: Re: [Pythonmac-SIG] Module Import Problem
>
>
>
> On 2 May, 2010, at 20:16, Mike wrote:
>
>> I built the latest PyObjC from source and got the same error.
>
> What is 'the latest'?  It should be possible to use "easy_install 
> http://pypi.python.org/packages/source/p/pyobjc-core/pyobjc-core-2.2.tar.gz" 
> to install pyobjc-core, then "easy_install pyobjc==2.2" to install the 
> rest.
>
> Ronald
>
> I followed your suggestion and installed pyobjc-core. Now my program runs,
> but the window pops up for a second then closes. I'm using Wx for my gui.
> Also, pygame does not play any sounds, I tried this separately from the
> program itself, it loads sounds and does not play them. Sorry I don't have
> anymore information, but the program just closes without any errors, works
> fine on Windows and Linux.

You may get an unexpected exception. The easiest way to look for them is to 
start the binary from the command-line, if your application is named 
'Foo.app' you can start it using '/path/to/Foo.app/Contents/MacOS/Foo'. That 
will behave the same as double-clicking on the app icon, except that you'll 
be able to see the stdout/stderr streams from the program.

Ronald

I haven't built it to an app yet. I'm still running from source, from the 
command line, and there is no traceback. Could this be a problem with 
WXPython? I noticed something on their site that it requires a special Mac 
build of Python, but since I installed the mac build of Python from 
python.org I didn't think this would be a concern.

Mike 



More information about the Pythonmac-SIG mailing list