Having trouble to import pyo.so

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): OS Catalina
PsychoPy version (e.g. 1.84.x): PsychoPy3
Standard Standalone? (y/n) If not then what?: yes
What are you trying to achieve?: record the subjects’ response and measure their reaction time

What did you try to make it work?: I have changed the hardware from pyo to PTB and other sound devices. It seems pyo is a must. In effect, I could not even run the demo “voicecapture”. The same error message will pop up. The question seems to be that I cannot import pyo into my pscyhopy environment. I have tried on several Mac laptops. The same problem appears. Has anyone met the same problem? It seems not to be an uncommon problem.

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.
Below is the error message:

importError: dlopen(/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo64.so, 2): Library not loaded: @loader_path/libportaudio.2.dylib
Referenced from: /Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo64.so
Reason: image not found

Experiment ended. #coder

I’m having the same problem, found in several different posts: