954,525 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

py2exe fails with pyOpenGL 3.0.1a2

Hello,
I am trying to compile a working opengl project into an executable for windows. I ran into several import issues in the python imaging library, Numeric, and OpenGL. I managed to resolve all but the OpenGL ones. There is quite a bit of conflicting info on the subject out there and I've tried about everything I've found. I've tried the method of using exclude="OpenGL" and putting the OpenGL folder in my dist directory. I got the following errors when running py2exe:

The following modules appear to be missing:
['OpenGL.GL', 'OpenGL.GLU','OpenGL.GLUT','OpenGL.platform']

I get an executable but nothing happens when I run it. Has anyone else had success with a similar project?

vextorspace
Newbie Poster
16 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

How are you importing OpenGL in your program?

vegaseat
DaniWeb's Hypocrite
Moderator
5,989 posts since Oct 2004
Reputation Points: 1,345
Solved Threads: 1,417
 
How are you importing OpenGL in your program?

It is a large project by several engineers but a typical import is

import OpenGL

one package that is only used once and gets some missing package declarations is OpenGL.platform:

from OpenGL.platform import win32


which results in a message saying OpenGL.platform.win32 is a missing module.

Any help you can give would be most... helpful?

Thank you,
--Douglas

vextorspace
Newbie Poster
16 posts since Sep 2009
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: