Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Pygame and pyopengl with py2exe ?

Reply
Thread Tools

Pygame and pyopengl with py2exe ?

 
 
Nyx42
Guest
Posts: n/a
 
      01-09-2005
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

 
Reply With Quote
 
 
 
 
Andrey Tatarinov
Guest
Posts: n/a
 
      01-09-2005
Nyx42 wrote:
> 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"]}},
 
Reply With Quote
 
 
 
 
Nyx42
Guest
Posts: n/a
 
      01-09-2005
Same problem: the window closes immediately.

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

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[pygame-bug] Pygame.cdrom bug rantingrick Python 1 01-30-2011 04:40 AM
Strengths and weaknesses of Pygame vs. pyglet vs. PyOpenGL? excord80@gmail.com Python 11 12-08-2008 10:21 PM
Python+Pygame+PyopenGL all in one package? shirish Python 0 05-01-2007 07:16 AM
pyopengl and py2exe Kirill Kuvaldin Python 1 03-22-2005 04:55 PM
py2exe and pyOpenGL julia Python 1 08-06-2004 08:50 PM



Advertisments