Problems using Py2exe and pyOpenGL

Thomas Heller thomas.heller at ion-tof.com
Thu Apr 26 08:58:59 EDT 2001


[Posted and mailed]
"Thomas Paviot" <thomas.paviot at wanadoo.fr> wrote in message news:9c911s$jtg$1 at wanadoo.fr...
> Hello,
>
> I'm trying to freeze wiht Py2exe 0.2.5 a program using wxPython and
> PyOpenGL.
> Although it works fine with wxPython, py2exe doesn't freeze pyopengl.
> The opengll dll's and pyopengl .pyd are not copied in the DIST directory and
> the
> lauch of .exe file produces an error message like:
>
> >File "imputil.pyo", line 294, in _load_tail
> >    ImportError: No module named OpenGL.dynload._opengl
>
> I tried to modify my sys.path, sys.modules, and the command line
> of the py2exe script but it doesn't work.
py2exe cannot track that OpenGL/dynload modifies the __path__.

The easiest solution would be to copy everything (the .pyd's)
from OpenGL\dynload\win32 into OpenGL\dynload.
With this change py2exe can successfully build the demo\da\dots.py
example.

Thomas (Heller)





More information about the Python-list mailing list