Open Ashwani270292 opened 3 years ago
Hi, I'm having the same problem. Did you ever figure out a solution?
Similar error here - anyone found a fix?
Staircase-based loops only became available for online use in the 2022 releases of PsychoPy. Have you tried with the latest version of PsychoPy (currently 2022.1.2)?
I am seeing the same error with StairHandler (rather thanMultiStairHandler) using PsychoPy 2022.1.2 (just upgraded)
Error content:
Traceback (most recent call last): File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 808, in fileExport File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 71, in generateScript File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 245, in compileScript File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/scripts/psyexpCompile.py”, line 217, in _makeTarget File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/_experiment.py”, line 336, in writeScript File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/flow.py”, line 343, in writeLoopHandlerJS File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/experiment/loops.py”, line 773, in writeMainCodeJS AttributeError: ‘StairHandler’ object has no attribute ‘writeLoopStartCodeJS’
While trying to convert an existing MultiStairCase experiment into online version, psychopy is showing error.
AttributeError: ‘MultiStairHandler’ object has no attribute ‘writeLoopStartCodeJS’
When I searched more I was able to find a file, loops.py, which is having the conversion logic, but it is missing
writeLoopStartCodeJS
inside MultiStairHandler.