pygame.error: mixer not initialized
in OpenSesame
Hello,
I'm running my script with sound files, but I run into this error:
Traceback: File "/usr/lib/python3/dist-packages/libopensesame/sampler.py", line 85, in prepare self.sampler = openexp_sampler(self.experiment, sample) File "/usr/lib/python3/dist-packages/openexp/sampler.py", line 43, in Sampler return cls(experiment, *arglist, **kwdict) File "/usr/lib/python3/dist-packages/openexp/_sampler/legacy.py", line 91, in __init__ self.sound = mixer.Sound(src) pygame.error: mixer not initialized
I'm guessing it must have something to do with the installation of plugins but I can't figure it out. The same script was working on the same laptop using Windows, and I decided to move it to Ubuntu (same laptop, separate SSDs, dual boot) to get more precise timing. Outside of Open Sesame the sound is working. The path to the sound is also correct and anyway it similarly doesn't work if I add the wavfile to the pool.
Do you have any suggestions what it could be?
Thanks very much!
Comments
Hi,
would it be possible that pygame is not installed? Or an outdated version? Which version of Opensesame do you run? Which Ubuntu version? Can you try to import pygame in the debug window and run
pygame.init()?Thanks,
Eduard