0

I am trying to flatten down 4 .py files and 2 .wav files into an exe.

I have py2exe, python 1.6 and pygame for python 1.6 installed. Here is my setup file.

from distutils.core import setup
import py2exe
import pygame
import snake
import food
import sys
sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT")
setup(console=['snakegame.py']) 

To compile I type "python setup.py py2exe"

When I try to run my exe in the dist folder, I am greeted with

C:\Users\Mattias\Desktop\Snake\dist>snakegame.exe
snakegame.exe:43: RuntimeWarning: use mixer: DLL load failed: The specified module could not be found.
(ImportError: DLL load failed: The specified module could not be found.)
Traceback (most recent call last):
File "snakegame.py", line 43, in <module>
File "pygame\__init__.pyc", line 70, in __getattr__
NotImplementedError: mixer module not available
(ImportError: DLL load failed: The specified module could not be found.)
Zooty
  • 101
  • 1
  • 5

1 Answers1

0

You should really upgrade from python 1.6 to 2.7.3,That should solve the problem.

Marko Scekic
  • 105
  • 6