Problem running the experiment

Hi, I just downloaded PsychoPy and I am currently learning the basics and trying to build simple experiments. However, every time I run experiments, I get to the grey screen of the trials but nothing else appears and I get this error code:
Traceback (most recent call last):
File « /Applications/ », line 120, in whileRunningFile
File « /Applications/ », line 510, in onProcessEnded
File « /Applications/ », line 133, in onProcessEnded
AttributeError: ‘NoneType’ object has no attribute ‘stdOut’

Can anyone help me?
Thank you

378.2032 INFO Loaded monitor calibration from [‘2020_09_14 10:16’]
PsychHID-ERROR: Could not enumerate and attach to all HID devices (HIDBuildDeviceList(0,0) failed)!
PsychHID-ERROR: One reason could be that some HID devices are already exclusively claimed by some 3rd party device drivers
PsychHID-ERROR: or applications. I will now retry to only claim control of a hopefully safe subset of devices like standard
PsychHID-ERROR: keyboards, mice, gamepads and supported USB-DAQ devices and other vendor defined devices and hope this goes better…
PsychHID-INFO: That worked. A subset of regular mouse, keyboard etc. input devices and maybe some vendor defined devices will be available at least.
error: PsychError_system
general description: Error reported by a system call
specific description: Failed to create event queue for detecting key press.
module name: PsychHID
subfunction call: KbQueueCreate
file name: ./PsychSourceGL/Source/OSX/PsychHID/PsychHIDStandardInterfaces.c
function name: PsychHIDOSKbQueueCreate
line number: 956
PsychHID:KbQueueCreate: See error message printed above.
2020-09-16 14:50:47.154 python[4139:299371] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to (null)
HIDBuildMultiDeviceList: Couldn’t open IOHIDManager.Traceback (most recent call last):
File “/Users/samuelpare/Documents/PhD/Psychophysique/psychopy/”, line 138, in
if endExpNow or defaultKeyboard.getKeys(keyList=[“escape”]):
File “/Applications/”, line 221, in getKeys
name = event.getKeys(keyList, modifiers=False, timeStamped=False)
NameError: name ‘event’ is not defined

Experiment ended.

Here is an other code that I get from psychopy