OS Win10
PsychoPy version The last successfully run experiment used psychopy 2021.2.3 according to its data file. The current version downloaded in the system information says 2022.1.2, though we have never manually updated the experiment. Manually telling psychopy to use 2021.2.3 seems to reduce the number of error messages but does not resolve the problem.
Standard Standalone? Yes
What are you trying to achieve?: Last Spring we were using a psychopy experiment that was partially made in builder and has its own custom code that we used successfully for several experimental sessions. The last session was run around 5/22 and we have not touched it since. However, upon trying to run the same files now in 10/22, the experiment crashes before you can even set the global experimental settings.
What did you try to make it work?: I have tried to manually make psychopy use the same version as was in the last recorded data file. This seemed to reduce the number of error messages but did not resolve the issue. We used this same experimental file over several (7+) months without issue so I am unsure if this is a version problem or something new.
What specifically went wrong when you tried that?:
Here is the runner error code:
Generating PsychoPy script...
## Running: C:\Users\username\Dropbox\Lab\F32-TL1\Psycho_Py\GASI_Control_lastrun.py ##
54.6728 EXP Imported Conditions.xlsx as conditions, 2 conditions, 3 params
54.6789 WARNING Monitor specification not found. Creating a temporary one...
54.7471 EXP Imported Conditions.xlsx as conditions, 2 conditions, 3 params
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
10.4634 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['sounddevice', 'PTB', 'pyo', 'pygame'] (in that order).
Traceback (most recent call last):
File "C:\Users\username\Dropbox\Lab\F32-TL1\Psycho_Py\GASI_Control_lastrun.py", line 40, in <module>
expInfo = {'participant': '', 'session': '', 'Sides': [LR, RL], 'Initials': ''}
NameError: name 'LR' is not defined
################ Experiment ended with exit code 1 [pid:33000] #################
86.0604 EXP Imported Conditions.xlsx as conditions, 2 conditions, 3 params
86.0742 WARNING Monitor specification not found. Creating a temporary one...
The exit code 1 always stays the same, but the pid is always different. The " name ‘LR’ is not defined’ " part seems to be the final crash but the experiment info popup, which normally appears when we run the program to define the variable ‘Sides,’ does not show up. I also can’t remember if it always tried to call the lastrun.py file or not. When I’m trying to run the program it should be initiating a new run, not calling the previous run.
Any help identifying this issue would be appreciated.