I’m having trouble with pyo as well. Using standalone psychopy (1.84.2) on Windows 10. I installed pyo and chose C:\Program Files (x86)\PsychoPy2
as the installation directory. This created a few folders in PsychoPy2\Lib\site-packages\
.
Here is the output from trying to import pyo from the PsychoPy shell:
>>> import pyo
Traceback (most recent call last):
File "<input>", line 1, in <module>
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyo.py", line 21, in <module>
import pyolib.analysis as analysis
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyolib\analysis.py", line 30, in <module>
from _core import *
File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\pyolib\_core.py", line 32, in <module>
from _pyo import *
ImportError: DLL load failed: The specified module could not be found.
There is a DLLs
folder in the PsychoPy2
directory, but nothing related to pyo is in there, it is full of mostly .pyd files and some .dll files. I guess .pyd files are the same as dlls, right? There is a _pyo.pyd
and also a _pyo64.pyd
in Lib\site-packages\
. Maybe those are in the wrong place and not being found by python?
Note that pygame works fine for me, I just would like to use the Microphone class.