psychopy.org | Reference | Downloads | Github

Using non-alphabet input with Builder in MacOS

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

OS (e.g. Win10): MacOS 10.13
PsychoPy version (e.g. 1.84.x): 3.2.4
Standard Standalone? (y/n) y
**What are you trying to achieve?: get long string input using unicode languages (i.e. Arabic, Korean, etc)
**What did you try to make it work?: implemented the qlib to script. the script version works, but when I put the same script to builder, it stops after certain length of input.

What specifically went wrong when you tried that?:
I logged, and found the pyglet and getkey function make errors whenever non-alphabet key input happens. The error happens per every single key input.

Traceback (most recent call last):
  File "_ctypes/callbacks.c", line 234, in 'calling callback function'
  File "/Applications/PsychoPy3.2.4.app/Contents/Resources/lib/python3.6/pyglet/libs/darwin/cocoapy/runtime.py", line 1121, in objc_method
    result = f(py_self, *args)
  File "/Applications/PsychoPy3.2.4.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 164, in pygletKeyUp_
    symbol = getSymbol(nsevent)
  File "/Applications/PsychoPy3.2.4.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
    return charmap[chars[0].upper()]
KeyError: '\u3161'

Does builder programmed to stop after certain number of cumulated errors?

The working script and problematic pyexp builder file is uploaded with library below.