Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

Linking Tobii eyetracker to OpenSesame on Mac OS

edited December 2019 in OpenSesame

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

  • edited December 2019

    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:

    >>import pip
    >>pip._internal.main(['install', 'tobii-research'])
    Collecting tobii-research
    Downloading https://files.pythonhosted.org/packages/66/dc/
    cd8e7b794e5a5e2dcf5258716d63c273b72b1b71d833aa49603a5ab56938/
    tobii_research-1.7.0-cp27-cp27m-macosx_10_13_intel.whl (1.2MB)
    Could not install packages due to an EnvironmentError: [Errno 2] No such file or
    directory: '/private/var/folders/jz/khj5prc531n1vv9661s91tgh7y_24p/T/pip-reqtracker-dXcyuR/
    455b4ca65bc6d31e38f8612cf02727e96224d5de220688dafe42325a'
    

    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 the site-packages of one OpenSesame installation to another should probably work.

    Cheers!

    Sebastiaan

    PS. Welcome to the forum!

    Buy Me A Coffee

  • 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?

    Buy Me A Coffee

  • 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 :)

Sign In or Register to comment.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games