[open] pyaudio error in inline script
HI all,
Can you help me correct my experiment?
I'm getting the following message when my experiment runs.
Error while executing inline script phase: run item: _inline_script line: 442 exception message: exception type: IOError Traceback (also in debug window): File "dist\libopensesame\inline_script.py", line 154, in run File "", line 45, in File "pyaudio.pyo", line 747, in open File "pyaudio.pyo", line 442, in __init__ IOError: [Errno Device unavailable] -9985
I dont know what the problem is.
Help Please!
Thanks.
Comments
According to the error message, you seem to be experiencing a problem in line 442 of an inline_script item called _inline_script. This problem originates from your use of the pyaudio module. It seems the device you are trying to use does not exist. These kind of things can happen e.g. when you use incorrect port numbers.
Without further information we cannot provide any further help. Further information that would be useful is the specific inline_script (although with at least 442 lines, I hope a snippet of your code will suffice).
Good luck!
Thank you for replying, Edwin
This is the full inline_script that I used.
I'm still experiencing problems.
Help please.
Thanks guys!
Couple of questions:
1) Is this the entire inline_script named "_inline_script"? Why did the previous error state an error in line 442? (clearly, this script is shorter: could it be that you have some leftover script in the unused items?)
2) Are you sure there is a microphone attached? If yes: is the mic not accessed by any other piece of software? This seems to be a silly question, but your script looks fine, and your error indicates that there is no available device. So double-checking this is important!
BTW: I just tested your code (using OpenSesame 2.8.0 on Ubuntu 12.04), and it runs fine. This means that it's likely not a problem with your script, but with your setup.