OS (e.g. Win10): Mac OS Catalina 10.15.5
PsychoPy version (e.g. 1.84.x): 2020.1.2
Standard Standalone? (y/n) If not then what?: y
What are you trying to achieve?: Getting typed responses to pictures. In the task participants will complete a picture naming task. I’m using a custom code segment to display the written response on screen, so participants can see what they are typing. Since Swedish is the target language ä, ö, å should be included in the allowed keys. I (and the participants) are using Finnish/Swedish keyboards.
What did you try to make it work?: I’ve tried to map an alternative keyboard as instructed Accents in Text Input.
What specifically went wrong when you tried that?:
Nothing happens when ä/ö/å is clicked. The experiment does not crash from pressing the keys, but the following appears:
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 158, in pygletKeyDown_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xc4'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 164, in pygletKeyUp_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xc4'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 158, in pygletKeyDown_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xc5'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 164, in pygletKeyUp_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xc5'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 158, in pygletKeyDown_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xd6'
Traceback (most recent call last):
File "_ctypes/callbacks.c", line 234, in 'calling callback function'
File "/Applications/PsychoPy3.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.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 164, in pygletKeyUp_
symbol = getSymbol(nsevent)
File "/Applications/PsychoPy3.app/Contents/Resources/lib/python3.6/pyglet/window/cocoa/pyglet_view.py", line 52, in getSymbol
return charmap[chars[0].upper()]
KeyError: '\xd6'
##### Experiment ended. #####
I am completely new to PsychoPy, python and coding in general so any tips and tricks are much appreciated.
I also have one further question. As due to the pandemic, the experiment is going to be conducted through Pavlovia, so even if I manage to fix this, is the problem going to sustain once participants are completing the task on their own devices? (= is it worth fixing or should I come up with some alternative solution?)
Thanks!