I’ve found a couple of instances of this error on the forum, e.g.
My best suggestion would be to reinstall PsychoPy (the latest version).