Pygame program to executable error color dict?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Trolkar8
    New Member
    • Nov 2011
    • 4

    Pygame program to executable error color dict?

    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
    Code:
    from distutils.core import setup
    import py2exe
    
    setup(console=['SKPD.py'])
    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 )
    Code:
    import pygame, os, sys
    pygame.init()
    screen = pygame.display.set_mode([640,480])
    class playerClass():
        pass
        
    while True:
        for event in pygame.event.get():
            if event.type == pygame.QUIT:
                sys.exit()
    Does someone know how to fix this?
    Please, I have tryied googling but cannot find any answer.
Working...