| Reference | Downloads | Github

Syntax error in key presses

pyo version 0.8.0 (uses single precision)
Traceback (most recent call last):
  File "C:\Users\uu\Desktop\TimePM\Time Based PM", line 402, in <module>
    dataOut=['n','all_mean','all_std', 'all_raw'])
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\", line 654, in saveAsExcel
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\", line 1131, in _createOutputArray
    tup = eval(strVersion)  # convert back to a tuple
  File "<string>", line 1
    ['q'], ['q'], , ['w', 'q'], ['q'], ['q']
SyntaxError: invalid syntax

My guess (but you’ve given us very little to go on!) is that you’ve included something like “allowed keys” with these values? But your allowed keys has a syntax error (two commas with nothing in between them)