URL of experiment: Pavlovia
Description of the problem: Error messages relating to sound component when creating html/export in version 2020.2.9
I’m currently trying to get a relatively simple letter knowledge experiment running but I have some issues in creating the html export in the psychopy3-version in which the experiment was built.
In the experiment I use .wav-Files that are randomly presented during practice and test trials. I have been trying to create an HTML-export in version 2020.2.9 but I only get an index.html-File no .js-Files, due to this error message:
Traceback (most recent call last):
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py“, line 1221, in onPavloviaSync
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py“, line 719, in fileExport
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py“, line 73, in generateScript
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py“, line 242, in compileScript
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py“, line 214, in _makeTarget
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py“, line 259, in writeScript
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/routine.py“, line 285, in writeRoutineBeginCodeJS
File „/Applications/psychopy_2020_2.9/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/sound/init.py“, line 138, in writeRoutineStartCodeJS
TypeError: str returned non-string (type NoneType)
My issues do not relate to the sound-file-format since the instruction sound-files work fine. The code line in file in init.py relates to a
stopValdefinition within the sound component. But I don’t understand why this would be relevant, since I don’t need a stopVal for sound in this experiment.
I’ve tried exporting an html file in an older version of the experiment 2020.1.3 → which works fine. But then I get issues with sound files hat should be fetched from the condition-files. So the error might have something to do with that, however - I cannot find a syntax error in my builder components. I’ve attached a pic of the sound component and correspondign loop below.
Do you find an error in my syntax?
Do you know what exactly the error message is referring to?