If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): macOS Big Sur 11.2.3 PsychoPy version (e.g. 1.84.x): v2021.1.3 Standard Standalone? (y/n) If not then what?: Yes What are you trying to achieve?:
I have images and text that I’ve made clickable objects so that when they are clicked the routine ends and the experiments advances. This was working fine a couple of weeks ago, but now it crashes and says “object is not iterable”. This happens with both images and text that I’ve made clickable.
What did you try to make it work?:
Disabling the components makes it work, but obviously not the goal…It also works online just fine, it’s only a local problem.
What specifically went wrong when you tried that?:
Experiment crashes with the following error:
‘[object name]’ object is not iterable.
Happens on any routine that has a clickable stimuli.
Include pasted full error message if possible. “That didn’t work” is not enough information.
No, there’s no code on this first routine (although the error happens in every routine with a clickable stim). Here is the code (line 574 is where the errors shows up). Thanks for the quick response!
Putting square brackets round the OBJECT NAME seems to work on Psychopy Builder, but not on the web (i.e., an error “TypeError: obj.contains is not a function” occurs). On the other hand, not putting square brackets seems to work on the web but not Psychopy Builder (i.e., an error “‘[object name]’ object is not iterable” occurs).