I ran the following code:
import pygame
import os
music_file = os.path.join(os.getcwd(), "midi.mid")
print(os.path.exists(music_file))
pygame.mixer.music.load(music_file)
The output is:
True
---------------------------------------------------------------------------
error Traceback (most recent call last)
<ipython-input-10-cd8bc226cd05> in <module>()
4 music_file = os.path.join(os.getcwd(), "midi.mid")
5 print(os.path.exists(music_file))
----> 6 pygame.mixer.music.load(music_file)
error: /etc/timidity.cfg: No such file or directory
Why?Is it a bug of pygame? I want to play midi.