glcanvas assertion failure

One of my apps sort-of works on Windows. But, when I package it for
release with gui2exe/py2exe it fails to create its OpenGL canvas. The
error I see is:
  File "wx\glcanvas.pyc", line 104, in __init__
  wx._core.PyAssertionError: C++ assertion "parent" failed at ..\..\src
\msw\glcanvas.cpp(327) in wxGLCanvas::Create(): can't create wxWindow
without parent

This is in the context of an __init__ function for a
wx.glcanvas.GLCanvas function; the specific function call which fails
is:
          wx.glcanvas.GLCanvas.__init__(
            self, parent, id, pos, size, style, name, attribList,
palette)

I can put more time into creating a small example, but before I do I'm
asking: has anyone seen this before? Is there some obvious thing I can
fix?

Is there any way that the parent could be None?

···

On 10/27/09 11:55 AM, R Fritz wrote:

One of my apps sort-of works on Windows. But, when I package it for
release with gui2exe/py2exe it fails to create its OpenGL canvas. The
error I see is:
   File "wx\glcanvas.pyc", line 104, in __init__
   wx._core.PyAssertionError: C++ assertion "parent" failed at ..\..\src
\msw\glcanvas.cpp(327) in wxGLCanvas::Create(): can't create wxWindow
without parent

This is in the context of an __init__ function for a
wx.glcanvas.GLCanvas function; the specific function call which fails
is:
           wx.glcanvas.GLCanvas.__init__(
             self, parent, id, pos, size, style, name, attribList,
palette)

I can put more time into creating a small example, but before I do I'm
asking: has anyone seen this before? Is there some obvious thing I can
fix?

--
Robin Dunn
Software Craftsman

Is there any way that the parent could be None?

It is amazing how much better the package works when I include the XRC
file.

D'oh!

Randolph