By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,363 Members | 1,291 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,363 IT Pros & Developers. It's quick & easy.

Pygame program to executable error color dict?

P: 4
I started to make a game using pygame.init() and wanted to test if it worked as an executable using py2exe so I made the an script which i called via cmd followed by py2exe
Expand|Select|Wrap|Line Numbers
  1. from distutils.core import setup
  2. import py2exe
  4. setup(console=[''])
But after that when i try to run the program from the dist folder i get the error:
Import Error: No module named colordict
Expand|Select|Wrap|Line Numbers
  1. import pygame, os, sys
  2. pygame.init()
  3. screen = pygame.display.set_mode([640,480])
  4. class playerClass():
  5.     pass
  7. while True:
  8.     for event in pygame.event.get():
  9.         if event.type == pygame.QUIT:
  10.             sys.exit()
Does someone know how to fix this?
Please, I have tryied googling but cannot find any answer.
Mar 4 '12 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.