Python Forum

Full Version: pygame.error: /etc/timidity.cfg: No such file or directory
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
run a script game in pygame in Zorin OS Linux system 32-bit

THIS Tetris game tetromino.py works with background sound midi files, splash screen startup after installing pygame but after pressing a button to START GAME getting an error... how make midi playable...?
Tried to run from CLI...

leonidas@leonidas-PCV-RZ20C-UC:~/Downloads/makinggames$ python3 tetromino.py
pygame 1.9.6
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "tetromino.py", line 506, in <module>
main()
File "tetromino.py", line 172, in main
pygame.mixer.music.load('tetrisc.mid')
pygame.error: /etc/timidity.cfg: No such file or directory
leonidas@leonidas-PCV-RZ20C-UC:~/Downloads/makinggames$
how to move python script to mysql table
That python script may require and extra dependency. You might be missing the timidity package. Although you would have to install it under whatever package manager Zorin uses.

http://timidity.sourceforge.net/#info
Since Zorin OS based on Ubuntu
I used
sudo apt install timidity # success Linux Zorin OS

now the Python 3 game plays midi ok

all ok