I’m running PsychoPy 2023.2.2 Standalone on Windows.
For some reason, PsychoPy is not able to find particular modules or variables imported/defined in the Before Experiment section while running later code.
I have explicit import statements (e.g., from psychopy import data) and the variable definitions should be global by default.
For instance, the variable ‘currentd’ is defined in this snippet of Before Experiment code, but PsychoPy returns an UnboundLocalError when it comes across the variable in subsequent code, implying that it’s not recognized as a global variable.
The same is true when trying to use the data module. I end up needing to reimport it with later code.
Thanks in advance for any assistance!