NameError: name X not defined

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Win 11
PsychoPy version (e.g. 2024.2.4 Py 3.8): 2024.2.4
Standard Standalone Installation? (y/n) If not then what?: Y
Do you want it to also run online? (y/n) N
What are you trying to achieve?:
I am trying to pilot run my PsychoPy experiment: In my “FirstDot” polygon component, I have the position set to “$(Dot1X, Dot1Y)”.

Dot1X and Dot1Y are the second and third columns of my csv file that runs in my trials loop.

However, I repeatedly get the error "NameError: name “Dot1X” is not defined, even although it is. I am at a loss, as it is definitely in my loop:

Help!!

What did you try to make it work?: I have tried everything from this forum, and other online help pages, and nothing works - I have retyped the excel file, re-uploaded it to PsychoPy, re-typed the variable names, changed the variables names, restarted my laptop - you name it i’ve tried it.

I really need help - I am at a loss!


Position should be set to update every repeat.

Thank you very much! I had just noticed this and corrected the error.