Update: we tried using an earlier, working backup of the psyexp file on another computer. This seemed to work for some time and we were able to create a new working Gitlab project with this experiment. But this morning, opening the same file locally produces the following:
No routine flow; but a select few routines are saved up top. I am now thinking think this is a problem with the builder file, so I am changing the category of this post.
I can attempt to run this file, and I get the following output. Note that it says I’m running v2021.1.2 but also alerts me that the experiment was built in 2020.1.2
Welcome to PsychoPy3!
v2021.1.2
34.0700 INFO Loaded monitor calibration from ['2020_04_14 14:15']
Alert 4052:Experiment was built in a past version of PsychoPy (2020.1.2), saving it in this version may add parameters which cannot be parsed.
For further info see https://psychopy.org/alerts/4052.html
34.6082 WARNING IPython failed as shell, using pyshell (IPython v0.12 can fail on wx)
Failed to load /Users/_______________/MA1.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py", line 650, in fileOpen
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 646, in loadFromXML
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 379, in _getXMLparam
File "<string>", line 1, in <module>
NameError: name 'slider' is not defined
Failed to load /Users/_______________/MA1.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/runner/runner.py", line 912, in loadExperiment
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 646, in loadFromXML
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 379, in _getXMLparam
File "<string>", line 1, in <module>
NameError: name 'slider' is not defined
63.1999 INFO Investigating repo at /Users/_______________/miso1
Failed to load /Users/_______________/MA1.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/runner/runner.py", line 912, in loadExperiment
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 646, in loadFromXML
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 379, in _getXMLparam
File "<string>", line 1, in <module>
NameError: name 'slider' is not defined
Failed to load /Users/_______________/MA1.psyexp. Please send the following to the PsychoPy user list
Traceback (most recent call last):
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/runner/runner.py", line 912, in loadExperiment
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 646, in loadFromXML
File "/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py", line 379, in _getXMLparam
File "<string>", line 1, in <module>
NameError: name 'slider' is not defined
Generating PsychoPy script...
## Running: /Users/_______________/MA1_lastrun.py ##
2021-03-03 10:31:46.922 python[50895:897564] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
##### Experiment ended. #####
I thought this might be because we had copied a routine from another experiment, which may not have been in 2021.1.2. However, we’ve tried re-coding the experiment in the new version and still get the popup saying the JS file has been modified outside of Psychopy, though the experiment runs.
I’m still not 100% sure I’ve diagnosed the problem, so I’d welcome any further insights.