Pygame and pyopengl with py2exe ?

N

Nyx42

Hi,
I have 2 programs which run without problems, but after building them with
py2exe, they don't work (program opens the window and closed it
immediately)

First program (uses only pygame):
screen = pygame.display.set_mode((W_WIDTH_F, W_HEIGHT))
This line refuses to be compiled correctly. Why ?

Second program (pygame + pyopenGL):
Py2exe can't import OpenGL.GL and OpenGL.GLU :(
 
A

Andrey Tatarinov

Nyx42 said:
Second program (pygame + pyopenGL):
Py2exe can't import OpenGL.GL and OpenGL.GLU :(

about that, may be names of imports are generated in runtime, so you can
try to specify them directly

options = {"py2exe": {"packages": ["OpenGL.GL","OpenGL.GLU"]}},
 
N

Nyx42

Same problem: the window closes immediately.

For the first program, I precise that the "pygame window" opens also.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,045
Latest member
DRCM

Latest Threads

Top