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
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 )
Does someone know how to fix this?
Please, I have tryied googling but cannot find any answer.
setup.py
Code:
from distutils.core import setup import py2exe setup(console=['SKPD.py'])
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()
Please, I have tryied googling but cannot find any answer.