psychopy.org | Reference | Downloads | Github

Error on Mac Big Sur 11.3

If this template helps then use it. If not then just delete and start from scratch.

OS (e.g. Win10): Big Sur 11.3
PsychoPy version (e.g. 1.84.x): 2021.1.4
Standard Standalone? (y/n) If not then what?: Standard Standalone
What are you trying to achieve?: Run one routine with only text

What did you try to make it work?: Uninstall and install again, tried with pictures and other stimuli, tried other versions of Psychopy 3

What specifically went wrong when you tried that?:
Include pasted full error message if possible. “That didn’t work” is not enough information.

I’m trying to run a simple routine with just a text to see if it works. When I try to run the test this error shows up. It will still run it but nothing is shown on the screen.

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.
INTERNAL PSYCHTOOLBOX ERROR
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.
0.3412 WARNING We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use [‘sounddevice’, ‘PTB’, ‘pyo’, ‘pygame’] (in that order).
4.1631 WARNING User requested fullscreen with size [1024 768], but screen is actually [1280, 800]. Using actual size
2021-05-17 14:45:16.570 python[14650:570817] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/5b/55s7g6yd45g87rnk35_qtpjw0000gn/T/org.opensciencetools.psychopy.savedState
Traceback (most recent call last):
File “/Users/Laida/Desktop/Psychopy/untitled_lastrun.py”, line 143, in
if endExpNow or defaultKeyboard.getKeys(keyList=[“escape”]):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/hardware/keyboard.py”, line 223, in getKeys
name = event.getKeys(keyList, modifiers=False, timeStamped=False)
NameError: name ‘event’ is not defined

1 Like

Is this your issue?

1 Like

It must have been! Thanks!