Key duration is always None in 2022 psychopy

PsychoPy version: 2022.1.3
operating system: Windows 10 Pro 21H2 version

I have a problem similar to this one, an experiment that was running locally without problems on 2021 version of PsychoPy, now works incorrectly on 2022.1.3 (Windows). In that experiment I use the following:

keys = kb.getKeys(keyList=['f', 'j', 'space'], waitRelease=False,
                  clear=False)

to allow the participant to change dot position. However now every key.duration is None even for keys that were released.

Maybe related, I get “loaded more than 1 DLL” warning when I start the experiment:

C:\Program Files\PsychoPy\lib\site-packages\numpy\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
Hello from the pygame community. https://www.pygame.org/contribute.html
1.4849     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).
6.5197     WARNING     User requested fullscreen with size [1536  864], but screen is actually [3840, 1080]. Using actual size
C:\Program Files\PsychoPy\lib\site-packages\numpy\_distributor_init.py:30: UserWarning: loaded more than 1 DLL from .libs:
C:\Program Files\PsychoPy\lib\site-packages\numpy\.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy\.libs\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-win_amd64.dll
  warnings.warn("loaded more than 1 DLL from .libs:"
C:\Program Files\PsychoPy\lib\site-packages\numpy\.libs\libopenblas.PYQHXLVVQ7VESDPUVUADXEVJOBGHJPAY.gfortran-win_amd64.dll
C:\Program Files\PsychoPy\lib\site-packages\numpy\.libs\libopenblas.XWYDX2IKJW2NMTWSFYNGFUWKQU3LYTCZ.gfortran-win_amd64.dll
  warnings.warn("loaded more than 1 DLL from .libs:"
1.0360     WARNING     Monitor specification not found. Creating a temporary one...
ioHub Server Process Completed With Code:  0
################# Experiment ended with exit code 0 [pid:5656] #################

I also get this error when opening PsychoPy GUI (this started just after uninstalling 2021 version and installing the 2022):
new_version_sucks

I says “could not find point of entry for procedure ?PyWinObject…@Z in library C:\Users…”.
I find it weird that it mentiones anaconda python distribution, I installed psychoPy from the standalone installer…

Update1: the minimal example of the procedure works well on 2021.2.3. I will try the 2022 version on another computer later today.
Update2: fortunatelly, it works online when using .getEvents() and checking KeyEvent.status for 'KEY_DOWN' and 'KEY_UP'

Hey mmagnuski,

I had a similar problem. What solved mine was to adjust the experiment settings and switch ‘Keyboard Backend’ under ‘Input’ to ‘PsychToolbox’ (from ‘ioHub’):
grafik

Best regards
Jasper

1 Like