using Psychopy 2021.2.3 on a mac (Catalina).
It was working on my local machine, but encountered unhandled internal error trying to sync it (see below). I have just changed the size of everything from cm to ‘from experimental settings’.
I had encountered a weird thing that some of the keyboard objects would no longer accept ‘space’ whereas others would. In the ones that didn’t, 'space didn’t generate an error. Error was:
"Python syntax error in field ‘allowedKeys’: /space/
I need to get it online – help!!
UPDATE!!! it worked again if I entered ‘space’,‘space’ so I did that. But something is wrong here!
Cheers - Charlotte
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/keyboard/init.py”, line 383, in writeFrameCodeJS
File “”, line 1
‘space
^
SyntaxError: EOL while scanning string literal
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 1344, in onPavloviaSync
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/app/builder/builder.py”, line 793, in fileExport
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 74, in generateScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 247, in compileScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/scripts/psyexpCompile.py”, line 219, in _makeTarget
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/_experiment.py”, line 293, in writeScript
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/routines/_base.py”, line 531, in writeEachFrameCodeJS
File “/Applications/PsychoPy.app/Contents/Resources/lib/python3.6/psychopy/experiment/components/keyboard/init.py”, line 386, in writeFrameCodeJS
psychopy.experiment.utils.CodeGenerationException: key_resp_9: