Problem with audio and Opensesame
Hi. I'm woriking on Ubuntu Mate 15.10. I don't why Opensesame is not working. Error message says that:
File "/usr/lib/pymodules/python2.7/libqtopensesame/misc/process.py", line 140, in run exp.run() File "/usr/lib/pymodules/python2.7/libopensesame/experiment.py", line 386, in run self.init_display() File "/usr/lib/pymodules/python2.7/libopensesame/experiment.py", line 730, in init_display canvas.init_display(self) File "/usr/lib/pymodules/python2.7/openexp/canvas.py", line 65, in init_display cls.init_display(experiment) File "/usr/lib/pymodules/python2.7/openexp/_canvas/xpyriment.py", line 278, in init_display exp = control.initialize() File "/usr/lib/pymodules/python2.7/expyriment/control/_experiment_control.py", line 407, in initialize mixer.init() error: No available audio device
I've tried to remove, purge and install Opensesame but it still doesn't work.
Someome know waht could be happening?
Thanks : )
Comments
Hi Guido,
In some (rare) cases, the audio device is not recognized, either because there really is no audio device, or because of some hardware incompatibility. There's nothing you can do about this, I'm afraid--a working audio device is required, even if you don't actually use audio.
In general though, when this happens, there's something funky with the computer or the operating system. Does sound playback work at all on this system?
Cheers,
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!
Hey,
I had the very same problem and found a simple workaround. By starting opensesame with root permissions ("sudo opensesame"), the audio device somehow is recognized and the error does not occur.
Does this help?
Hi,
I have the same problem on Windows 7. The computer I use has a sound card and I also tested whether it can play sound, so neither the hardver nor the software has a problem. The interesting part is that the error comes up only when speaker is not plugged in. When I plug it in, problem goes.
It would be good if I don't need to plug in a speaker for running an OpenSesame experiement when the experiment does not contain any sound. The experiment I create is used by others too, so it causes inconveniences to have this requirement.
Maybe this mixer.init() method can be called conditionally when there is any sound related item in an experiment or if it does not work would be good to have an option to set it manually.
Best Regards,
Tamás
Looks like a permission/group problem, you could try to add yourself to the audio group.
Check your subscriptions to groups:
groupsDoes it contain 'audio'?
Add yourself to the audio group:
sudo adduser [username] audioReplace [username] with your own username and logout/login.
Edit just noticed that the linux part of this thread is pretty old, no idea how to solve it in windows
Hi,
I tested whether it's some permission issue also on Windows 7. I run OpenSesame as administrator, but the problem still remains, so I guess it's not because of that OpenSesame does not have the right permissions.
Best Regards,
Tamás
Thank you all. I've updated all pip libraries and problem ended