2012-05-25 52 views
1

我試圖做一個小節目的朋友,它需要運行一個.wav文件 它工作得很好,當我在python運行它,但是當我在py2exe編譯它,它給了我這個 - >Pygame.mixer模塊缺失?

phone.exe:23: 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 "phone.py", line 23, in <module> 
    File "pygame\__init__.pyc", line 70, in __getattr__ 
NotImplementedError: mixer module not available 

回答

5

pygame.mixer依賴於libSDL_mixer。確保它可用。

+0

在Debian,你可以使用'apt-get的安裝libsdl-mixer1.2'安裝libSDL_mixer。 – Kayla