Linking Tobii eyetracker to OpenSesame on Mac OS
Hi OpenSesame team!
We're currently setting up some OpenSesame experiments using a Tobii eyetracker, to test how babies make predictions and respond to rewarding stimuli. We are having issues with setting up the tobii-research python package in OpenSesame. The research computer is a new Mac OS Catalina version 10.15, with the latest Opensesame version 3.2.
We first tried to use the Python package manager, but immediately got a box pop-up with the error below:
Extension error item-stack: exception type: URLError exception message: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)> time: Mon Dec 2 16:19:45 2019 Traceback: File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/libqtopensesame/extensions/_base_extension.py", line 322, in _activate self.activate() File "/Applications/OpenSesame.app/Contents/Resources/share/ opensesame_extensions/package_manager/package_manager.py", line 39, in activate self.init() File "/Applications/OpenSesame.app/Contents/Resources/share/ opensesame_extensions/package_manager/package_manager.py", line 18, in init self._qpipwidget = QPipWidget() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/qtpip/_qpipwidget.py", line 35, in __init__ self.pm = PackageManager() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/qtpip/_packagemanager.py", line 30, in __init__ self._cheeseshop = pypi.CheeseShop() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/yolk/pypi.py", line 105, in __init__ self.get_cache() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/yolk/pypi.py", line 120, in get_cache self.fetch_pkg_list(True) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/yolk/pypi.py", line 159, in fetch_pkg_list package_list = self.list_packages() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/yolk/pypi.py", line 179, in list_packages return self.xmlrpc.list_packages() File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ xmlrpclib.py", line 1243, in __call__ return self.__send(self.__name, args) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ xmlrpclib.py", line 1602, in __request verbose=self.__verbose File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/sitepackages/yolk/pypi.py", line 66, in request fhandle = opener.open(request) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ urllib2.py", line 429, in open response = self._open(req, data) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ urllib2.py", line 447, in _open '_open', req) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ urllib2.py", line 407, in _call_chain result = func(*args) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ urllib2.py", line 1241, in https_open context=self._context) File "/Applications/OpenSesame.app/Contents/Resources/lib/python2.7/ urllib2.py", line 1198, in do_open raise URLError(err) URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:726)>
Comments
We then tried to install tobii-research directly from https://pypi.org/project/tobii-research/ in the OpenSesame debug window, using internal pip commands described here: https://osdoc.cogsci.nl/3.2/manual/environment/. We got the following Environment error:
Have you happened to come across this error before? We checked and there is indeed no folder 'pip-reqtracker-dXcyuR' in this path.
We would be very grateful for some help on either of these issues, whatever is easiest to get Tobii linked up!
Best wishes,
Bronagh
P.S We will also be including fNIRS data collection along with this, so might come back to discuss that at some point, but think we will just start that piloting with the old "pushing the buttons at the same time" technique :)
UPDATE: As a workaround, I got the internal pip function working on a different Mac (Mac Pro 10.13.6 High Sierra) and also with the previous OpenSesame release (3.2.7). From that it seems that the only place the tobii files reside is in: /Applications/OpenSesame.app/Contents/Resources/lib/python2.7/site-packages (as expected for a python package...), but perhaps you could confirm at some stage if you know whether there are any dependencies in other folders that I might not be aware of.
Cheers,
Bronagh
Hi Bronagh,
The Python package manager is not very reliable, so let's forget about the first error for now. In any case, this is unrelated to the second error. Here, I suspect that the problem is a Mac OS-specific issue with the
tobii_research
package itself. But since I don't have a Mac, it's difficult to say more about it. @Daniel Does this error look familiar to you?As an ugly workaround (but I guess you did that already?) copying the
tobii_research
folder from thesite-packages
of one OpenSesame installation to another should probably work.Cheers!
Sebastiaan
PS. Welcome to the forum!
Check out SigmundAI.eu for our OpenSesame AI assistant!
Thanks Sebastiaan! I missed that I would not get a notification on a response to this post :) I went ahead and copied the folder for now. I get the feeling I'll be in touch more in the coming couple of months, although the issues will likely be related to MacOs and the media player, so will probably be directed towards Daniel...
Have fun at NVP if you're going this year!
Bronagh
Have fun at NVP if you're going this year!
I am! You?
Check out SigmundAI.eu for our OpenSesame AI assistant!
Not this time unfortunately :( I'm caught up with a few too many things to do before the year is out. It's my first time not going since 2013, I'll miss it!
Enjoy the disco-bowling and the catch-ups :)