Python Forum
pygame.error: /etc/timidity.cfg: No such file or directory - Printable Version

+- Python Forum (https://python-forum.io)
+-- Forum: Python Coding (https://python-forum.io/forum-7.html)
+--- Forum: General Coding Help (https://python-forum.io/forum-8.html)
+--- Thread: pygame.error: /etc/timidity.cfg: No such file or directory (/thread-20621.html)



pygame.error: /etc/timidity.cfg: No such file or directory - lsepolis123 - Aug-22-2019

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$


Insert query in python script - logeshwaran - Aug-22-2019

how to move python script to mysql table


RE: pygame.error: /etc/timidity.cfg: No such file or directory - metulburr - Aug-22-2019

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


RE: pygame.error: /etc/timidity.cfg: No such file or directory - lsepolis123 - Aug-23-2019

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