Error in function KbQueueCreate; Incorrect argument type supplied

what version of psychtoolbox is installed? From your env:

import psychtoolbox as ptb
ptb.__version__

Just incase an old version got installed somehow.

Has any of the keyboard hardware changed since it stopped working? Wondering if this could be some hardware specific issue because the error seems to be very low level.

Also just wondernig if you needed to downgrade to 2021.1.1 or if you could have just kept using the latest version.

Could you also send a minimal example that causes the problem for you, or do any of the provided Coder or Builder demos also fail for you?

Thanks very much.