pyaudio won't work on Mac, I get 'Python.h' file not found
in OpenSesame
Hi all,
I am trying to use a script involving PyAudio that used to work on a previous Mac. On my new computer (High Sierra) when I try to install PyAudio through the console, it generates an error message: 'Python.h' file not found
A bit of googling suggests that this is because it needs PortAudio, but I can't seem to install that through the console (perhaps because it's a C library rather than Python???).
Any suggestions on how to get PyAudio working on OpenSesame would be very welcome.
Thanks,
Mark
Comments
Hi @mark ,
Perhaps @Daniel could be of help here?
Cheers,
Lotje
Did you like my answer? Feel free to

How did you install pyaudio? And what python version are you using (and version of OpenSesame). To my knowledge, everything you need should be included in OpenSesame. The newer versions of pip and conda also install everything that is needed to run pyaudio.
Hi,
Thanks! I installed PyAudio through the console - following instructions I found on the forum discussion of voice keys:
I'm running OpenSesame 3.3.10 and the console shows the following:
Jupyter QtConsole 5.0.2 Python 3.7.9 | packaged by conda-forge | (default, Dec 9 2020, 20:58:55)
I think this might have to do with Mac OS having new security requirements for "signing" dependent packages. I don't really know what that means, but I've been googling this problem (not just for OpenSesame) and some people have suggested something along those lines.
Thanks,
Mark