esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
670 stars 211 forks source link

Drift correction error when using Tobii device #129

Closed ImhChr closed 5 years ago

ImhChr commented 5 years ago

Hi Edwin,

For some reason, the pygaze drift correct item doesn't seem to work for the Tobii device that I'm using. I ran the same script for both the Gazepoint as well as the Tobii 4C, but the drift correction only works as intended for the former (the SMI and the EyeLink are next on the menu BTW, wish me luck).

I receive the following error:

Traceback: File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libqtopensesame\misc\process.py", line 157, in run exp.run() File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\experiment.py", line 456, in run self.items.execute(self.var.start) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 102, in execute self.prepare(name) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare self[name].prepare() File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 124, in prepare self.experiment.items.prepare(_item) File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 142, in prepare self[name].prepare() File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\pygaze_drift_correct\pygaze_drift_correct.py", line 76, in prepare self.experiment.pygaze_eyetracker.set_draw_drift_correction_target_func( File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item.py", line 237, in getattr raise AttributeError(u'%s not found' % var) AttributeError: pygaze_eyetracker not found

I inspected the pygaze_drift_correction.py script, but nothing appears to be out of the ordinary there, so I assume the error might be deeply buried in one of the tobii-specific scripts somewhere. Do you happen to know where I should start my investigation or do you have any suspicions what the culprit may be?

Thanks in advance!

ImhChr commented 5 years ago

Never mind, it was an error within my OpenSesame script ^^