PsychoPy version: v2023.2.2
What are you trying to achieve?:
The allowed keyboard responses are related to the condition shown. Thus, I want the allowed keys to set per repeat and call the allowed responses from my conditions file.
What did you try to make it work?:
I have ensured (to the best of my ability) the spreadsheet is in the right format and the column names are correctly labeled. I’ve read a lot of the previous forum posts on this same error, but none of the solutions (e.g., formatting the allotted keys correctly, fixing column names, using .xlsx instead of .csv) have worked.
What specifically went wrong when you tried that?:
When I try to run the experiment, it gives me the following error after loading the instruction routine: “if not type(posKeys) in [list, tuple, np.ndarray]:
UnboundLocalError: local variable ‘posKeys’ referenced before assignment”
Any advice is greatly appreciated! I’ve been troubleshooting for a week, but decided it was finally time to ask for help.