If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): MacOS Mojave 10.14.6
PsychoPy version (e.g. 1.84.x): v2021.1.2
Standard Standalone? (y/n) If not then what?: Y
**What are you trying to achieve?: I am just trying to run my experiment to test the flow, something I haven’t had any issues with in the past. However, now when I hit run experiment, I immediately receive this error message.
"Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/keyboard/init.py”, line 238, in writeFrameCode
File “”, line 1, in
NameError: name ‘o’ is not defined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1165, in runFile
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/runner/runner.py”, line 635, in runLocal
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 73, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 242, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 221, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 212, in writeScript
**What did you try to make it work?: Quitting and restarting PsychoPy, restarting computer
**What specifically went wrong when you tried that?: I received the same error message