File "cap-touch.py", line 169, in <module> sounds[key] = pygame.mixer.Sound(sound) pygame.error: Unable to open file '/opt/sonic-pi/etc/samples/drum_tom_hi_hard.wav' code example
Example: unable to open file pygame.mixer
import os
os.getcwd() # Log this line.
soundObj = pygame.mixer.Sound('beeps.wav')