[Python-au] py2exe and OpenGL

Darryl Ross spam at afoyi.com
Thu Dec 29 03:48:35 CET 2005


Hi All,

Having some problems bundling OpenGL using py2exe.

I've followed the instructions at
http://pyopengl.sourceforge.net/documentation/py2exe.html but I get the
following error when I run it:

> Traceback (most recent call last):
>   File "opengl_sample1.py", line 3, in ?
>     from OpenGL.GLUT import *
> ImportError: No module named OpenGL.GLUT

The directory structure in the dist folder looks like:

> C:\downloads\wxPython\sample\dist>tree
> Folder PATH listing
> Volume serial number is 0000DCA7 D8EF:5615
> C:.
> └───OpenGL
>     ├───GL
>     │   └───WIN
>     ├───GLU
>     │   ├───EXT
>     │   └───SGI
>     ├───Tk
>     │   └───win32-tk8.3
>     └───WGL
>         ├───ARB
>         ├───EXT
>         └───_3DFX

As you can see, there is no OpenGL.GLUT folder, but there is the
following in the OpenGL folder:

>  22/12/2001  10:33 AM            77,824 GLUT.pyd
>  19/08/1998  02:55 AM           169,984 glut32.dll

Has anyone got this working before? Is there a better forum to ask this in?

TIA
Darryl


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 208 bytes
Desc: OpenPGP digital signature
Url : http://starship.python.net/pipermail/python-au/attachments/20051229/e88addf7/signature.pgp


More information about the python-au mailing list