py2exe and pyOpenGL

julia juliagoolia at
Fri Aug 6 19:42:51 CEST 2004


I'm having trouble turning a python program with pyOpenGL into an exe
with py2exe.  I was wondering if you could help.

Basically I have a like this:

from distutils.core import setup
import py2exe
# end

(Note that my program works just fine)

And when I do:

python py2exe --excludes=OpenGL

There is an error message that says:

The following modules appear to be missing
['OpenGL.GL', 'OpenGL.GLUT', 'dotblas', etc....

But I figured this was OK because of the excludes.  So then I put the
OpenGL dir into the dist directory and when I try to run the exe I get
an ImportError:

No module named OpenGL.GL

Any idea where I'm going wrong?

Thanks so much for your time,

More information about the Python-list mailing list