Pygame.mixer module missing?

守給你的承諾、 提交于 2019-12-07 18:58:11

问题


I am trying to make a small program for a friend and it needs to run a .wav file it works fine when i run it in python but when i compile it in py2exe it gives me this -->

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

回答1:


This might help: an example py2exe project : http://www.pygame.org/wiki/Pygame2exe




回答2:


pygame.mixer is dependent on libSDL_mixer. Make sure that it is available.



来源:https://stackoverflow.com/questions/10761581/pygame-mixer-module-missing

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!