py2exe and pyOpenGL

Larry Bates lbates at
Fri Aug 6 22:50:26 CEST 2004

Just guessing: py2exe moves everything
into local directory (or .zip file in
latest version) which would modify the
sys.path to only look there.  I think
you will need to modify the system path
so it can find OpenGL directory.

Larry Bats
Syscon, Inc.

"julia" <juliagoolia at> wrote in message
news:defcda14.0408060942.21cea29f at
> 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 like this:
> #
> from distutils.core import setup
> import py2exe
> setup(console=[""])
> # 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,
> Julia

More information about the Python-list mailing list