PychoPy3 Error in Builder

Hello guys!

I currently create an experiment using the PsychoPy builder.
I tested the architecture of my experiment in a mock-up version - with shorter and less stimuli - and everything went well.
Now that I have built the actual experiment with the right kind of stimuli I get the following error massage:

“Traceback (most recent call last):
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\builder\”, line 1192, in runFile
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\app\runner\”, line 689, in runLocal
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\”, line 74, in generateScript
compileScript(infile=exp, version=None, outfile=filename)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\”, line 247, in compileScript
_makeTarget(thisExp, outfile, targetOutput)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\scripts\”, line 226, in makeTarget
script = thisExp.writeScript(outfile, target=targetOutput)
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\”, line 232, in writeScript
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\”, line 224, in writeBody
File “C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\”, line 329, in writeInitCode
File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\experiment\components\sound_init
.py”, line 94, in writeInitCode
elif float(inits[‘stopVal’].val) > 2:
ValueError: could not convert string to float:"

In order to provide you with as much information as possible I attach the .psyexp data and the used excel sheets in a single folder.

Thanks for helping me out!

Tomko :slight_smile:

asqr.xlsx (15.2 KB)
blocks.xlsx (8.6 KB)
fb.xlsx (10.0 KB)
mw_free.xlsx (10.0 KB)
mw_instr.xlsx (10.0 KB)
resting_state_instructions.psyexp (88.1 KB)
ton.xlsx (10.0 KB)

I - okay my co-worker - found the error. There was a space added, where none belonged.

Thank you either way!

Hello Tomko,

without stimuli, nobody will be able to test the experiment. It might be better to upload a toy-version that replicates the error or give access to your repository.

But given that mock-up version ran and you full-blown experiment did not ran, there is probably an error in newly added material/routines aso. as you have already figured yourself.:wink:

Does the experiment crash directly, in a certain routine, after a number of trials, randomly?

Best wishes Jens

Hello Jens,

It actually crashed directly.
I wasn’t even able to compile the code.

Luckily, I already found the issue. There was a space added, where none belonged.
After removing the space everything seemed to have gone back to normal.

Thanks eitherway!

Tomko :slight_smile: