Experiment runs on pavlovia but returns an error locally

Personally I would always try to update old code to the latest stable version (either 2020.2.10 or 2021.2.3).

This post suggests that if you want to run it as an old version, you might need to downgrade your version of Python.