If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): MacOS Sonoma 14.5
PsychoPy version (e.g. 1.84.x): 2024.1.5
Standard Standalone? (y/n) If not then what?: yes
I started coding a new experiment in a fresh install of PsychoPy 2024.1.5
When editing a routine in the builder view, I received the error below and the .psyexp file becomes unusable. As seen in the screenshot, it fails to render the last two routines of the experiment in the experiment timeline. I have not been able to find a way to prevent this from happening, as it’s already happened once earlier today so I had to re-write it. How can I prevent this from happening?
Update: I think I figured out what was triggering this error. If you remove all components while editing a routine, it will throw this error and make the experiment file unusable. This happened even if I removed all components but did not yet exit editing the routine. It seems specific to version 2024.1.5, since I was later editing another experiment file that uses 2023.2.3 without the same error occuring when removing all components.
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 3843, in OnMouse
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 1691, in setCurrentRoutine
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 4153, in draw
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.8/psychopy/app/builder/builder.py”, line 4358, in drawFlowRoutine
TypeError: must be real number, not NoneType