py2exe and pyOpenGL

julia juliagoolia at eml.cc
Fri Aug 6 13:42:51 EDT 2004


Hi,

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 setup.py like this:

# setup.py
from distutils.core import setup
import py2exe
setup(console=["gltest.py"])
# end setup.py

(Note that my program gltest.py works just fine)

And when I do:

python setup.py 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,
Julia



More information about the Python-list mailing list