Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update code to not load gi for .wav files in Linux #213
File "/home/pybokeh/envs/gamedev/lib/python3.6/site-packages/arcade/sound.py", line 133, in _playsound_unix
ModuleNotFoundError: No module named gi
Crashed and then I get ModuleNotFoundError: No module named gi
Play a .wav sound without crashing
Steps to reproduce/example code:
python -m arcade.examples.asteroid_smasher
I get the same error that you do. Installing the below system packages and the python package got it working for me.
Let me know if this works for you so I can update the documentation. Also it appears to freeze the game when the sound is being played, I am unsure if this is the behavior on other platforms as well.