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\", line 1185, in compileScript
  File "C:\Program Files\PsychoPy3\lib\site-packages\", 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, 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\", line 2518, in runFile
AttributeError: 'NoneType' object has no attribute 'addTask'

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


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