I’m having a basic problem importing pyaudio in the coder interface. I’m using the pydub library to shift the pitch of a pulse train, with the goal of shifting the pitch while a stream is playing in response to user input.
My error message comes specifically when I load pyaudio. I have it working if I run the code in the Terminal. But When I run it in PsychoPy I get the following:
Traceback (most recent call last):
File “[…]/PSY_AUGtest.py”, line 3, in (module)
import pyaudio
ModuleNotFoundError: No module named ‘pyaudio’
When I comment out that line the code doesn’t yield any errors.
I have added the path to pyaudio in my psychophy preferences.
System and version info: running Mac OS 10.14.3, and just updated my Psychopy installation to v3.1.5, which didn’t change things one way or the other.
My python installation is 3.7 (in case that is relevant – meaning when I run my code in Terminal, outside of Psychopy).
Any suggestions would be most welcome!
-Jon