py2exe and pyOpenGL
lbates at swamisoft.com
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.
"julia" <juliagoolia at eml.cc> wrote in message
news:defcda14.0408060942.21cea29f at posting.google.com...
> 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
> # 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,
More information about the Python-list