Experiment runs on pavlovia but returns an error locally

OS : Win 10
PsychoPy version : 3.2.2
What are you trying to achieve?: I am trying to modify an experiment locally that I forked from pavlovia running on version 3.2.2.

What did you try to make it work?: When i pilot the experiment on pavlovia it runs with no errors, but when I try to run it locally (making sure to set the version to 3.2.2) it returns an error.

What specifically went wrong when you tried that?: I pressed “run experiment”, the participant information screen appeared correctly, and then after moving on from this screen the experiment ended, and the following error message was present:

 File "C:\Program Files\PsychoPy\lib\site-packages\psychtoolbox\hid.py", line 145, in _create_queue
    None, 0, num_slots, flags, win_handle)
TypeError: Incorrect argument type supplied
##### Experiment ended. #####

Judging from the error message, I’m guesisng the error is from the code at line 145, pasted here:

    def _create_queue(self, num_slots=10000, flags=0, win_handle=0):
        PsychHID('KbQueueCreate', self.device_number,
                 None, 0, num_slots, flags, win_handle)
        # [deviceNumber][, keyFlags=all][, numValuators=0][, numSlots=10000]
        # [, flags=0][, windowHandle=0])

Anyone know what might be going wrong here? I’m new to psychopy, so apologies if this is something obvious.

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.