psychojs icon indicating copy to clipboard operation
psychojs copied to clipboard

Host a MultiStairCase Experiment online

Open Ashwani270292 opened this issue 4 years ago • 4 comments

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. Screenshot 2021-09-22 at 1 47 58 PM

Ashwani270292 avatar Sep 22 '21 08:09 Ashwani270292

Hi, I'm having the same problem. Did you ever figure out a solution?

jamesferwerda avatar Jan 20 '22 19:01 jamesferwerda

Similar error here - anyone found a fix?

alexeijoel avatar Mar 30 '22 01:03 alexeijoel

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)?

m-macaskill avatar Mar 30 '22 02:03 m-macaskill

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’

alexeijoel avatar Mar 30 '22 03:03 alexeijoel