Error on compile

Hello guys,

I’m trying to compile (the script) of an old working experiment on the new version 2020.2.3 and, as I ask for the code, psychopy returns the following error:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\builder\builder.py", line 1185, in compileScript
    if self.app.prefs.general['useRunner']:
  File "C:\Program Files\PsychoPy3\lib\site-packages\configobj.py", line 554, in __getitem__
    val = dict.__getitem__(self, key)
KeyError: 'useRunner'

By the way, running it from Builder, experiment still runs fine (my other problem is managing it to Pavlovia. It is already in it (at https://run.pavlovia.org/felipeviegas/emotion-and-sleep-deprivation/html/), but couldn’t run it online…stuck at initialising the experiment, but that is for some other topic)

Other info below:
OS (e.g. Win10): Windows 10
PsychoPy version (e.g. 1.84.x): 2020.2.3
Standard Standalone? (y/n) yes
What are you trying to achieve?: Compile code for the experiment on builder
What did you try to make it work?: Just used the “Compile to script” button

Thanks a lot!

Fast update:

I can open the old .py file, made on the older version from Psychopy, but it won’t run. Error:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy3\lib\site-packages\psychopy\app\coder\coder.py", line 2518, in runFile
    self.app.runner.addTask(fileName=fullPath)
AttributeError: 'NoneType' object has no attribute 'addTask'

Again, it runs from Builder. No idea what has changed…

Thanks!

I think your problem has been solved on this thread: New version of Psychopy doesn't compile script

Hello, Lukas. It was indeed. Thank you very much!

Best regards