Sorry – I wasn’t clear on your error so I focussed on
Here are two links you should follow:
https://psychopy.org/online/resources.html