[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Pygame and py2exe problem



Hi, 

I'm having trouble using py2exe with pygame. I have read and followed the
Windows Executables tutorial from the pygame documentation (and used the
pygame2exe.py script included), but the problem is when I try to execute
the .exe file that was created I get the following error message: "Could
not get Script info" and the application quits. Is there anyone that have
had similar problems?

This is a small pygame program that causes this problem:

import pygame
from pygame.locals import *

pygame.init()
screen = pygame.display.set_mode((640,480))
pygame.display.set_caption('PygameTest')
done = False
while not done:
	pygame.event.pump()
	for event in pygame.event.get():
		if event.type in [QUIT, KEYDOWN]:
			done = True
pygame.quit()

I have modified this line of the pygame2exe.py script to use the filename
of my test application (PygameTest.py):
script = "aliens.py"

I'm using Python 2.3, pygame 1.5.6, py2exe 0.4.2 and Windows XP.

/Tomas