[open] Error with Tobii eye tracker
I've started to have a play with our Tobii eye tracker (X2-60) with Opensesame, using the PyGaze plugin. I've copied the relevant files from the SDK to the Opensesame directory. I then had to edit libtobii.py (which I downloaded from Github) to allow import of Image and ImageDraw fromPIL as this wasn't importing properly.
With it seemingly working, I tried running the pyGaze template, which works fine until just after calibration, when I encounter a division by zero error. Error message thus:
Unexpected error item-stack: experiment[run].pygaze_init[run] exception message: integer division or modulo by zero time: Wed Jun 01 15:49:14 2016 exception type: ZeroDivisionError Traceback: <snip> File "C:\Program Files (x86)\OpenSesame\plugins\pygaze_init\pygaze_init.py", line 212, in run File "C:\Program Files (x86)\OpenSesame\pygaze\_eyetracker\libtobii.py", line 323, in calibrate ZeroDivisionError: integer division or modulo by zero
Looking at line 323 in libtobii.py, I am guessing
len(Xvar) is zero. Does anyone have any idea why this might be occurring, or what
Xvar represents? This is using Opensesame 3.0.7, on a Windows7 laptop. Any advice or suggestions gratefully appreciated.
Thanks a million in advance!