I just installed psychopy 1.84.2 on two (as far as I can tell) identical computers running windows 7. On machine 1 it looks okay after first testing, on machine 2 I receive the error message that pyo is not installed.
builder -> Demos -> word_naming says:
AttributeError: No audio API found. Try installing pyo 0.6.8+, or pygame 1.8+
coder -> 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: Das angegebene Modul wurde nicht gefunden.
Any idea whatâs wrong with this installation? I tried it several times, no success.
I had a similar problem / same error message. After googling previous psychopy mails, I found the solution below and it seems to be working. I am using the Builder and the solution is achieved in the Coder view. I compiled the script of the psyexp file and then deleted the sound component from the line where it is imported (from psychopy import âŚ). Then I run the experiment from the Coder view and it works.
I am not using any audio stimuli so this solution worked for me but it may not be the ideal way if one has audio stimuli.
Hi Jon,
thanks for your help, but I donât understand your suggestion.
In the psychopy preferences I find âaudio libraryâ and âaudio driverâ. If the âaudio backendâ in your post is âaudio libraryâ in the preferences, then I see the options âpyoâ and âpygameâ. That corresponds to the documentation at http://www.psychopy.org/general/prefs.html. What is pysoundcard?
I tried to swap pyo and pygame -> no success.
I tried to permute âPrimary Soundâ, âASIOâ and âAudigyâ -> no success.
I always receive the error message saying I shall install pyo or gygame. But pyo is installed after a fresh installation of the StandalonePsychopy-1.84.2-win32.
pysoundcard is an additional library that has been added recently, as an alternative to pyo and pygame. You can put it first in that list in your preferences to give it a shot and see if it works for you.
simply adding âpysoundcardâ to the list of audio libraries in the preferences dialog gives an error message âRuntimeError: Invalid deviceâ when trying to play a sound.
Looks like pysoudncard canât talk to your soundcard. Maybe the same is true of pyo and that makes PsychoPy think that it hasnât been installed.
Could the issue be to do with the sound card on the computer? Maybe check what it is, can you update its drivers? Is it playing sounds?!
The issue isnât with PsychoPy per se (itâs to do with your computer and portaudio accessing the sound card) and Iâm afraid I donât know enough to help you.
Hello, this discussion is more than one year old, I know, but the problem is solved and I want to let all others with the same problem know this:
The OS is Windows 10 64bit. Nevertheless, it is necessary to manually install the Microsoft Visual C++ 2010 x86 Redistributable, i. e. the 32bit version of the visual c++ library. After that install everything works fine.