psychopy / psychojs

PsychoJS is the online counterpart of the PsychoPy Python library
MIT License
163 stars 67 forks source link

Host a MultiStairCase Experiment online #463

Open Ashwani270292 opened 3 years ago

Ashwani270292 commented 3 years ago

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
jamesferwerda commented 2 years ago

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

alexeijoel commented 2 years ago

Similar error here - anyone found a fix?

m-macaskill commented 2 years ago

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

alexeijoel commented 2 years ago

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’