# Having trouble to import pyo.so

**URL:** <https://discourse.psychopy.org/t/having-trouble-to-import-pyo-so/11471>\
**Category:** Builder\
**Created:** [March 13, 2020, 3:06pm UTC](https://discourse.psychopy.org/t/having-trouble-to-import-pyo-so/11471 "2020-03-13T15:06:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wendyli159](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/wendyli159/32/7253_2.png) [@Wendyli159](https://discourse.psychopy.org/u/Wendyli159)\
**Post date:** [March 13, 2020, 3:06pm UTC](https://discourse.psychopy.org/t/having-trouble-to-import-pyo-so/11471/1 "2020-03-13T15:06:03Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![djangraw](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.psychopy.org/djangraw/32/3257_2.png) [@djangraw](https://discourse.psychopy.org/u/djangraw)\
**Post date:** [March 24, 2020, 12:38pm UTC](https://discourse.psychopy.org/t/having-trouble-to-import-pyo-so/11471/2 "2020-03-24T12:38:36Z")

</div>

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

> [@Unable to run demo "voiceCapture" on Psychopy 3.2.3](https://discourse.psychopy.org/t/unable-to-run-demo-voicecapture-on-psychopy-3-2-3/9319/3):
>
> Trying the same demo on a PC (Windows 10 Pro) It run smoothly once, but then upon being re-run (several times) it started to generate this apparently infinite loop: Rebooting the PC did not help… Thanks again

> [@How to record a speech in psychopy? My microphone does not work](https://discourse.psychopy.org/t/how-to-record-a-speech-in-psychopy-my-microphone-does-not-work/9547):
>
> If this template helps then use it. If not then just delete and start from scratch. OS (e.g. Win10): iOS system PsychoPy version (e.g. 1.84.x): Psychopy 3 Standard Standalone? (y/n) If not then what?: What are you trying to achieve?: I want to record sounds as input What did you try to make it work?: I’ve tried to insert the microphone in a routine ( a screen asking the participant to describe a image) What specifically went wrong when you tried that?: I get the following error: Genera…

> [@Libraries error running experiment](https://discourse.psychopy.org/t/libraries-error-running-experiment/10233):
>
> Hi, I am setting up a new task on the Builder and encountered the following error (see below). I tried on a different Mac (on which I usually run Psychopy) and I get the same error, but it seems to run ok on a Windows. Interestingly, it was running ok for a while until the error suddenly appeared. It does not seem to be related to any of the routines I added towards the end, as it persists even when I delete them all and simply keep a single routine with a text message. I’d very much appreciate…

> [@Sound Input not working](https://discourse.psychopy.org/t/sound-input-not-working/9135):
>
> If this template helps then use it. If not then just delete and start from scratch. OS Mac OSX El Capitan PsychoPy version PsychoPy3 Standard Standalone? (y/n) If not then what?: Y What are you trying to achieve?: Audio input from participant What did you try to make it work?: add response type, audio input What specifically went wrong when you tried that?: Include pasted full error message if possible. “That didn’t work” is not enough information. I’m trying to get 3minutes of audio in…
