[Pyobjc-dev] Fwd: PyObjC and NSOpenGLView
Brought to you by:
ronaldoussoren
From: Tobias W. <t.w...@im...> - 2010-01-04 23:47:04
|
Sorry for the forwarded message below, have just realised I responded to Ronald only and failed to cc the list. Has anyone else successfully run the OpenGL example on Snow Leopard? Toby Begin forwarded message: > From: Tobias Wood <tw...@im...> > Date: 3 January 2010 20:00:48 GMT > To: Ronald Oussoren <ron...@ma...> > Subject: Re: [Pyobjc-dev] PyObjC and NSOpenGLView > > Thanks for the prompt reply. > > On 3 Jan 2010, at 17:26, Ronald Oussoren wrote: >> >> I don't use NSOpenGLView myself, maybe someone else knows the answer. Does the OpenGL example work for you? <http://pyobjc.sourceforge.net/examples/pyobjc-framework-Cocoa/OpenGL/OpenGLDemo/index.html> >> > > Unfortunately not. After doing "python setup.py py2app -A" from within the demo directory, running the resulting app in /dist fails with: > > 03/01/2010 19:51:40 [0x0-0x53053].org.pythonmac.unspecified.OpenGLDemo[539] File "/Users/Tobias/Downloads/PyObjCExample-OpenGLDemo/dist/OpenGLDemo.app/Contents/Resources/__boot__.py", line 46, in _run > 03/01/2010 19:51:40 [0x0-0x53053].org.pythonmac.unspecified.OpenGLDemo[539] target, wasChanged = alias.ResolveAlias(None) > 03/01/2010 19:51:40 [0x0-0x53053].org.pythonmac.unspecified.OpenGLDemo[539] AttributeError: 'Carbon.File.Alias' object has no attribute 'ResolveAlias' > 03/01/2010 19:51:41 OpenGLDemo[539] OpenGLDemo Error > 03/01/2010 19:51:41 OpenGLDemo[539] OpenGLDemo Error > An unexpected error has occurred during execution of the main script > > AttributeError: 'Carbon.File.Alias' object has no attribute 'ResolveAlias' > 03/01/2010 19:51:47 com.apple.launchd.peruser.501[89] ([0x0-0x53053].org.pythonmac.unspecified.OpenGLDemo[539]) Exited with exit code: 255 > > Apologies, I should have mentioned that I'm running Snow Leopard (Which I think will be why Carbon fails) using the system Python (2.6). > > Toby |