setSound: could not find a sound file named

452 views
Skip to first unread message

Adam Liter

unread,
Feb 16, 2015, 1:29:16 AM2/16/15
to psychop...@googlegroups.com
This is probably going to be one of the most useless bug reports ever, which is why I'm first reporting it here, rather than on GitHub.

I'm running the latest version of PsychoPy (1.83.03) on a Mac, and I'm having trouble with loading sound files in one experiment. As this is the very first routine in my experiment, nothing gets written to the .log file. The only potentially useful debugging information that I can share is from the PsychoPy output window when the experiment crashes:

 Running: /Users/<USERNAME>/Desktop/Feature Learning - Experiment Folder/VoicingStopHarmony_lastrun.py
saved data to u
'/Users/<USERNAME>/Desktop/Feature Learning - Experiment Folder/data/2_FeatureLearning_2015_Feb_16_0054.csv'
Traceback (most recent call last):
 
File "/Users/<USERNAME>/Desktop/Feature Learning - Experiment Folder/VoicingStopHarmony_lastrun.py", line 240, in <module>
    sound_1
.setSound(SOUND)
 
File "/Applications/PsychoPy2.app/Contents/Resources/lib/python2.7/psychopy/sound.py", line 146, in setSound
   
raise ValueError, "setSound: could not find a sound file named " + value
ValueError: setSound: could not find a sound file named "Recordings/budu.wav"

The thing is: the sound file that it is trying to find is there, and the Recordings directory is in the same directory as the .psyexp file.

Two further things that make this all the more mysterious (and thus more useless bug report): I have another PsychoPy experiment that has no problem running sound files with version 1.83.03. Furthermore, when I downgrade to version 1.82.00 and apply the fix noted in #813 the problem with this particular experiment goes away.

Adam Liter

unread,
Feb 16, 2015, 10:26:44 AM2/16/15
to psychop...@googlegroups.com
Okay, so I realized I was tricking myself into reading 1.81.03 as 1.83.03. There obviously is no version 1.83 yet. I think I was tricking myself into reading 1.81.03 as 1.83.03 because PsychoPy seems to be confused about what the latest version is. That being said, I still had trouble running one experiment with sound files while running 1.81.03 but not the other experiment.

Since upgrading to 1.82.00, the problem goes away, so perhaps it is a moot point, but I'm still curious what could have been going on if anyone has any ideas.

Jonathan Peirce

unread,
Feb 16, 2015, 10:45:47 AM2/16/15
to psychop...@googlegroups.com
Hi Adam,

Glad that fixed things although I'm also not sure why!

The thing about the versions is that I often release versions so that keen-beans can download them, but I don't typically update the latest version tag that the server reports for a few days. It allows a somewhat gradual release so that if there are any problems the keen-beans find them before the general user.

[keen-beans is not a technical term]

best wishes
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/psychopy-users/43cae6d9-f7e1-460b-a009-1565eb037172%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


-- 
Jonathan Peirce
http://www.peirce.org.uk


This message and any attachment are intended solely for the addressee
and may contain confidential information. If you have received this
message in error, please send it back to me, and immediately delete it. 

Please do not use, copy or disclose the information contained in this
message or in any attachment.  Any views or opinions expressed by the
author of this email do not necessarily reflect the views of the
University of Nottingham.

This message has been checked for viruses but the contents of an
attachment may still contain software viruses which could damage your
computer system, you are advised to perform your own checks. Email
communications with the University of Nottingham may be monitored as
permitted by UK legislation.

Adam Liter

unread,
Feb 16, 2015, 12:19:12 PM2/16/15
to psychop...@googlegroups.com
Hi Jon,

Thanks for the response! Yeah, I'm still really confused about what could have been going on. But anyway, it seems that this thread is probably pointless/useless. Is there any way to mark it as closed or something? I'm not too familiar with Google Groups.

Anyway, thanks again!

-Adam

Oliver Clark

unread,
May 28, 2015, 7:50:37 AM5/28/15
to psychop...@googlegroups.com
Hi,

I've been scouting the web for an answer to this error message, but have had no luck at all!  I am running PsychoPy 1.82.01 on Windows 7 and am getting the same error message as mentioned above:

raise ValueError, "setSound: could not find a sound file named " + value ValueError: setSound: could not find a sound file named Badge.wav.

Am I missing an essential update?  I've checked for this using the Tools option but I'm apparently up to date.

Any help would be really appreciated!

Best wishes,

Oli

Jonathan Peirce

unread,
May 28, 2015, 8:22:23 AM5/28/15
to psychop...@googlegroups.com
Usually this means that PsychoPy couldn't find the sound file, which usually means it's in a different location to the one you've provided. Check where the sound file is relative to your experiment file. Updating PsychoPy isn't likely to help.

cheers,
Jon
--
You received this message because you are subscribed to the Google Groups "psychopy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to psychopy-user...@googlegroups.com.
To post to this group, send email to psychop...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

-- 
Jonathan Peirce
Nottingham Visual Neuroscience

http://www.peirce.org.uk

Oliver Clark

unread,
Jun 1, 2015, 7:11:30 AM6/1/15
to psychop...@googlegroups.com
Thanks Jon,

I might be going mad, but I don't think I've had to specify a specific path for images before.  My sound files are now playing but only because I used a full path.  In any case, your prompt was very helpful!

Best wishes,

Oli
Reply all
Reply to author
Forward
0 new messages