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 setup.py script which i called via cmd followed by py2exe
setup.py
Expand|Select|Wrap|Line Numbers
  1. from distutils.core import setup
  2. import py2exe
  3.  
  4. setup(console=['SKPD.py'])
  5.  
But after that when i try to run the program from the dist folder i get the error:
Import Error: No module named colordict
Program(SKPD.py)
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
  6.  
  7. while True:
  8.     for event in pygame.event.get():
  9.         if event.type == pygame.QUIT:
  10.             sys.exit()
  11.  
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.