psychopy.org | 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 em_lastrun.py", line 402, in <module>
    dataOut=['n','all_mean','all_std', 'all_raw'])
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\data.py", line 654, in saveAsExcel
    matrixOnly=matrixOnly)
  File "C:\Program Files (x86)\PsychoPy2\lib\site-packages\psychopy\data.py", 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)