I installed the new standalone PsychoPy 3.1.0 for 64 bits windows (Python 3.6-note that my OS is windows 10, and the computer is a dell xps15 laptop). I created a basic Stroop experiment to check if everything was working properly and got this error message:
WARNING Import Error: No module named 'psychtoolbox'. Using event module for keyboard component.
I then tried to run this code example from the psychopy.hardware.keyboard class:
from psychopy.hardware import keyboard from psychopy import core kb = keyboard.Keyboard() # during your trial kb.clock.reset() # when you want to start the timer from keys = kb.getKeys(['right', 'left', 'quit'], waitDuration=True) if 'quit' in keys: core.quit() for key in keys: print(key.name, key.rt, key.duration)
(the waitDuration argument doesn’t exist, so I supect it’s a typo and you guys meant waitForStart instead -I removed it)
The code doesn’t work and I get the same error message.
@jon @Michael it looks like PsychoPy reverts to the older event.getKeys() function which appears to be a bug because I am using python 3.6 on a 64 bits windows. Unless I missed something, I don’t see any psychtoolbox module in the PsychoPy folder. That might be the issue…
Thanks for the help,