Hi! I tried to install it, but got Command "python setup.py egg_info" failed with error code 1 in /tmp/pip-install-bflc3vlb/pygame/ after executing pip3 install -r requirements.txt is there a way to fix it?
I got similar error while running pip3 install -r requirements.txt, however, when sudo apt install python3-pygame did the trick, it looks that I still need to do pip3 install pyaudio to run Oscillofun.sh. Finally I am stuck with the invalid output device error:
ALSA lib pcm_dmix.c:1018:(snd_pcm_dmix_open) unable to create IPC semaphore
Traceback (most recent call last):
File "oscillofun.py", line 52, in <module>
File "/home/cpi/.local/lib/python3.7/site-packages/pyaudio.py", line 750, in open
stream = Stream(self, *args, **kwargs)
File "/home/cpi/.local/lib/python3.7/site-packages/pyaudio.py", line 441, in __init__
self._stream = pa.open(**arguments)
OSError: [Errno -9996] Invalid output device (no default output device)
check your audio default device, more information can be found in StackOverflow. Because I can not catch your bug( It’s probably not my code problem), I can not test those for you, so I have no idea if those actions can fix your bug.
I tried the test in the StackOverflow in my GameShell, my reslut is:
If you can not get default audio device after run pa.get_default_input_device_info(), It means that your linux or driver have some problem, or pyaudio has some bug, you can follow the instruction in the answer to try to fix that.