There is a sound file error

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

MacOS Catalina 10.15.2
PsychoPy3

Running: /Users/giuliasfriso/Desktop/priming/experimentdemo_lastrun.py

2020-03-13 23:18:39.345 python[94708:1813681] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Traceback (most recent call last):
File “/Users/giuliasfriso/Desktop/priming/experimentdemo_lastrun.py”, line 124, in
sound_1.setSound(frasi, secs=5, hamming=True)
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_ptb.py”, line 413, in setSound
_SoundBase.setSound(self, value, secs, octave, hamming, log)
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/_base.py”, line 193, in setSound
raise ValueError(msg + value)
ValueError: setSound: could not find a sound file named boat sail under bridge.WAV

Experiment ended.

Hi everybody,

I’m trying to make a priming experiment with sounds and images for my dissertation.
I created an excel file with all the items and then in the builder I created a new trial inserting the sound and image stimuli and then a loop browsing the excel file.

After running the experiment, PsychoPy constantly tell me that it cannot find a sound file.

Can anyone help me?

[I beg you pardon for my English, but I’m not English :smiley:]

.

Can you please share a screenshot of your excel file and what you wrote inside the sound and image component, please?

Yes, of course!

Thank you!

Are all those files in the same file as the whole experiment? or are they within another file? -if so, you would need an slash before the name file (e.g., Audio/bounce_pass.WAV). Also, I would save the audios with no spaces, and check that the file types are correctly written, and in the right image/audio component, just in case.

1 Like

OK! I’ll try!
thank you for the help!
I’ll let you know!

1 Like

OK! Now it works! thanks a lot!

I have another issue. I have to record the response in my experiment, hence I need to use the microphone. So I add the microphone response to the routine but Psychopy tell me that there’s another error. Can you help me? Because I don’t know if I have to make a folder for the recording or anything else. This is the feedback:

Welcome to PsychoPy3!
v2020.1.1
2793.6452 WARNING IPython failed as shell, using pyshell (IPython v0.12 can fail on wx)
3036.9535 INFO Loaded monitor calibration from [‘2020_03_04 13:00’]
Generating PsychoPy script…

Running: /Users/giuliasfriso/Desktop/pyschopy/experiment_lastrun.py

2020-03-15 16:38:32.613 python[17373:194609] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
Traceback (most recent call last):
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_pyo.py”, line 25, in
import pyo
File “pyo/init.pyc”, line 28, in
File “pyo/lib/analysis.pyc”, line 32, in
File “pyo/lib/_core.pyc”, line 58, in
File “pyo/_pyo.pyc”, line 14, in
File “pyo/_pyo.pyc”, line 10, in __load
File “imp.pyc”, line 342, in load_dynamic
ImportError: dlopen(/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo.so, 2): Library not loaded: @loader_path/libportaudio.2.dylib
Referenced from: /Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo.so
Reason: image not found

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Users/giuliasfriso/Desktop/pyschopy/experiment_lastrun.py”, line 18, in
from psychopy import sound, gui, visual, core, data, event, logging, clock, microphone
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/microphone.py”, line 45, in
from psychopy.sound import backend_pyo
File “/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/psychopy/sound/backend_pyo.py”, line 29, in
raise exceptions.DependencyError(repr(err))
psychopy.exceptions.DependencyError: ImportError(‘dlopen(/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo.so, 2): Library not loaded: @loader_path/libportaudio.2.dylib\n Referenced from: /Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/lib-dynload/pyo/_pyo.so\n Reason: image not found’,)

Experiment ended.

Sorry, I have never used the microphone component. You should check in the forum for solutions or open a new topic. Also, if this thread is solved, mark it as “solution” so it can be closed.

1 Like

hello,I try to write the name like "audio/sound”。but it still show that can not found this file.