Tobii AttributeError no attribute 'set_project'
Hello,
I'm relatively new to Pygaze and would like to use PyGaze with Tobii Pro Glasses 2. OpenSesame successfully connects to the glasses, but I am getting the error message "exception message: TobiiGlassesTracker instance has no attribute 'set_project'" (full output code is below). Could you please help me?
Thanks! 😊
Python 2.7.13
* Type "help()", "copyright()", "credits()" or "license()" for more information.
* Use the "print([msg])" function in inline_script items to print to this debug window.
* Inspect inline_script variables when an experiment is finished.
In [1]: [2020-03-05 09:41:53,641:process:152:INFO] Starting experiment as ExperimentProcess-2
Expyriment 0.9.1b2-11-gc100ee8 (Python 2.7.13)
Scripts\safelaunch-opensesame.py
[2020-03-05 09:41:58,295:legacy:185:INFO] sampling freq = 48000, buffer size = 1024
[2020-03-05 09:41:58,907:experiment:450:INFO] experiment started
[2020-03-05 09:41:58,908:experiment:454:INFO] disabling garbage collection
[2020-03-05 09:42:01,210:xpyriment:79:WARNING] Canvas.show() took 175.0 ms
function not supported yet
[DEBUG]: Connecting to the Tobii Pro Glasses 2 ...
[DEBUG]: Tobii Pro Glasses 2 ... successful connected!
[2020-03-05 09:42:22,627:experiment:538:INFO] enabling garbage collection
Unexpected error
item-stack: experiment[run].pygaze_init[run]
exception type: AttributeError
exception message: TobiiGlassesTracker instance has no attribute 'set_project'
time: Thu Mar 05 09:42:19 2020
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 103, in execute
self.run(name)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\sequence.py", line 51, in run
self.experiment.items.run(_item)
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\libopensesame\item_store.py", line 122, in run
self[name].run()
File "C:\Program Files (x86)\OpenSesame\share\opensesame_plugins\pygaze_init\pygaze_init.py", line 227, in run
self.experiment.pygaze_eyetracker.calibrate()
File "C:\Program Files (x86)\OpenSesame\lib\site-packages\pygaze\_eyetracker\libtobiiglasses.py", line 340, in calibrate
self.current_project_id = self.set_project()
AttributeError: TobiiGlassesTracker instance has no attribute 'set_project'
Comments
Hi Ruth,
I can't help you directly, but maybe you should contact Davide de Tommaso. As is stated on the Pygaze website, he seems to be the expert on Opensesame support of the TobiGlasses (see https://www.pygaze.org/2017/09/pygaze-supports-tobii-pro-sdk/)
Good luck,
Eduard