[Pythonmac-SIG] Problem with CoreGraphics and py2app

João Leão joaoleao at gmx.net
Mon Jun 2 13:59:51 CEST 2008


Hi list

Is anyone having trouble building applications from CoreGraphics  
scripts?
Details here:

> Hi
>
> I'm running Mac OS X 10.5.2 on a G4 MacBook and I didn't install any  
> addons in what concerns Python.
> I was happy to see that apple is now including PyObjc and py2app.
>
> I tried to build applications with py2app from my old CoreGraphics  
> scripts (made on 10.4 / python2.3) that used to work ok. py2app  
> actually creates the application but when I run it, it unexpectedly  
> quits. The Console spits this:
> 5/23/08 7:12:19 PM [0x0-0x85085].org.pythonmac.unspecified.Test[647]  
> Fatal Python error: Interpreter not initialized (version mismatch?)
> 5/23/08 7:12:36 PM com.apple.launchd[66]  
> ([0x0-0x85085].org.pythonmac.unspecified.Test[647]) Exited  
> abnormally: Abort trap
>
> To exclude some error in my script, I tried this with one the Apple  
> supplied examples under /Developer/Examples/Quartz/Python/.
> I ran py2app with the following "setup.py" (I chose the example  
> "circle.py"):
> ###
> from distutils.core import setup
> import py2app
>
> setup(
>    name='Test',
>    app=["circle.py"],
> )
> ###
>
> Incidentally, I discovered that my system isn't finding py2applet too:
> ibook-joao:Desktop joao$ py2applet --make-setup circle.py
> -bash: py2applet: command not found
>
> Finally, py2app seems to work ok with other scripts that don't use  
> CoreGraphics.
>
> Thanks.
> João

P.S. Meanwhile I updated to 10.5.3. The behavior is the same.


More information about the Pythonmac-SIG mailing list