Experiment works well on psychopy but doesn't work online

URL of experiment: https://run.pavlovia.org/YiftachA/habipos

Description of the problem:
Project name: HABIPOS; Project ID: 88796

Hi, I’ll be forever grateful if you could help me :slight_smile:

The project runs well on my computer (mac) but doesn’t work at all on pavlovia.
in the project I added a code quit similar to the one entered here:

At first, it said “the experiment is initializing”, but it never went past the loading stage.
I downloaded the new version of Psychopy in the hope it will work things out, but it still doesn’t work now I get this massage:

Traceback (most recent call last):
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/_base.py”, line 435, in writeParamUpdate
TypeError: str returned non-string (type NoneType)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1240, in onPavloviaRun
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 719, in fileExport
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 73, in generateScript
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 242, in compileScript
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 214, in _makeTarget
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 259, in writeScript
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/routine.py”, line 287, in writeRoutineBeginCodeJS
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/_base.py”, line 202, in writeRoutineStartCodeJS
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/_base.py”, line 405, in writeParamUpdatesJS
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/_base.py”, line 399, in writeParamUpdates
File “/Applications/PsychoPy 2.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/_base.py”, line 439, in writeParamUpdate
TypeError: Value of parameter image of component iname_block1 could not be converted to JS. Value is $imagesb[$number1]

**I tried to set $imagesb[$number1] differently (e.g. without using a variable, such as $imagesb[1]), but it still doesn’t work.

Thanks in advance :slight_smile:

In a code component you shouldn’t have a $
In a normal component you should have only one $ (to tell PsychoPy it’s code)

1 Like