I downloaded the standalone version of PsychoPy and used HomeBrew to download portaudio and pyaudio using command line info below:
brew install portaudio
brew install pyaudio
homebrew has the files hidden deep in the Library/Cache but I added both of them to PsychoPy Preferences Path files. Adding those paths allowed me to finally get past
import pyaudio
in my script, but then it catches when it initializes pyaudio and throws the following error
File “/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/pyaudio/init.py”, line 111, in
import pyaudio._portaudio as pa
ModuleNotFoundError: No module named ‘pyaudio._portaudio’
I have a Mac Apple M1 running OS Monterey 12.1
portaudio v19.7
I’m at a loss for what to troubleshoot next…should I try to download a different version of python? not the standalone with dependencies?