Home > other >  After the installer package, pygame. Mixer. Music. The load (123. Mp3), is always an error
After the installer package, pygame. Mixer. Music. The load (123. Mp3), is always an error

Time:09-26

After the installer package exe, execution is always an error, how to solve? The following figure,

Remove the load statements of background music pygame. Mixer. Music. The load (123. Mp3) can run normally, and pygame. Mixer. The sound (11. Wav), but no problem,
The operating system is Windows 7 64 - bit
Python3.7.6
Installer3.6
The code is as follows:
Def run_game () :
# initialization pygame, Settings and screen objects
Pygame. The init ()
Pygame. Mixer. The init ()
-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Copyright statement: this article to CSDN blogger (lgjhorse) of the original articles, follow BY CC 4.0 - SA the copyright agreement, reproduced and this statement, please attach the original source link
The original link: https://blog.csdn.net/lgjhorse/article/details/104798218

CodePudding user response:

123. You packaged in mp3

CodePudding user response:

123. The MP3 player to play in
  • Related