Howdy, Stranger!

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

Supported by

[open] Tobii EyeTracker TX300 PyGaze

edited November 2014 in OpenSesame

Hello everybody,

I tried to make the Tobii EyeTracker TX300 work with Open Sesame but I have some problems. Perhaps you can help me. When I use a pygaze_init I receive this error:

Unexpected error
line: 55
exception message: No module named tobii.eye_tracking_io.basic
exception type: ImportError

Traceback (also in debug window):
File "dist\libqtopensesame\misc\process.py", line 139, in run
File "dist\libopensesame\experiment.py", line 344, in run
File "dist\libopensesame\sequence.py", line 47, in run
File "C:\Program Files (x86)\OpenSesame\plugins\pygaze_init\pygaze_init.py", line 198, in run
File "dist\pygaze\eyetracker.py", line 86, in init
File "dist\pygaze_eyetracker\libtobii.py", line 55, in
ImportError: No module named tobii.eye_tracking_io.basic

I worked with EPrime before and just started to use Open Sesame, so I am kind of a beginner.

Thank you for your help in advance
Anna

Comments

  • edited 1:03AM

    Hi Anna,

    The error you receive is due to the fact that we did not include the Tobii SDK in the standalone OpenSesame package. You could opt for downloading the portable package, which does include the Tobii SDK.

    See under WinPython on this page

    Good luck!

  • edited 1:03AM

    Hi Edwin,

    thank you for your help!
    But I am a little confused. If I download the portable package, there is no pygaze plugin at all.
    I found the basic.py file in the tobii.eye_tracking_io folder (under python, how confusing!) and tried to copy it to the right location (/pygaze/_eyetraker) but that did not work either. Open Sesame still gives the same error. Perhaps I copied it to the wrong location or the whole idea was stupid.

    So, what did I do wrong? :(

  • edited 1:03AM

    There should be two packages, pygaze and tobii. These should be two separate folders in WinPython-OpenSesame-0.27.3\python-2.7.3\Lib\site-packages. If this is the case, you do not have to copy anything anywhere.

    If you find anything else, please report back, and we will sort out where to go from there.

  • edited 1:03AM

    This is the case.
    I was confused that I do not have the pygaze plugin when I start the portable version (means: no pygaze items for drag and drop).
    But now I think you mean I have to use Inline Scripts and then it should work? Is that right?
    Sorry for my stupid questions, I am a beginner.

  • edited 1:03AM

    Ah, all right, that's very good! This means all of the basic libraries are there. Note that these are Python libraries, which are written in the same programming language as OpenSesame is. We use Python to run OpenSesame, which is why you need to have those libraries in Python.

    However, the plug-ins are specific to OpenSesame. So if you want to use the PyGaze plug-ins, you will have to add those to OpenSesame's plugins folder. In the WinPython package, you can find it at the following location:

    WinPython-OpenSesame-2.8.3\OpenSesame\opensesame-2.8.3\plugins

    You can find the PyGaze plug-ins online (click here to download). After downloading, unzip the archive. Then copy the contents of opensesame_plugins to the OpenSesame plug-ins folder. NOTE: you do not have to copy the folder artwork, but you will need all of the others.

    Additionally, OpenSesame does indeed allow you to use Python directly, via inline_script items. This means you can use PyGaze directly via those. However, the plug-ins provide roughly the same functionality and are easier to use. Since you mention you are a beginner, I would advise using the plug-ins first.

    Good luck!

  • edited December 2014

    Thank you very much for your help!
    The plugin kind of works and the old error is gone. Instead, I have a new error :(

    Unexpected error
    line: 6
    exception message: DLL load failed: %1 ist keine zulssige Win32-Anwendung.
    exception type: ImportError
    
    Traceback (also in debug window):
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\OpenSesame\opensesame-2.8.3\libqtopensesame\misc\process.py", line 139, in run
        exp.run()
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\OpenSesame\opensesame-2.8.3\libopensesame\experiment.py", line 294, in run
        self.items[self.start].run()
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\OpenSesame\opensesame-2.8.3\libopensesame\sequence.py", line 57, in run
        self.experiment.items[item].run()
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\OpenSesame\opensesame-2.8.3\plugins\pygaze_init\pygaze_init.py", line 198, in run
        u'eyelink_pupil_size_mode'))
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\python-2.7.3\lib\site-packages\pygaze\eyetracker.py", line 86, in __init__
        from pygaze._eyetracker.libtobii import TobiiTracker
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\python-2.7.3\lib\site-packages\pygaze\_eyetracker\libtobii.py", line 55, in <module>
        from tobii.eye_tracking_io.basic import EyetrackerException
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\python-2.7.3\lib\site-packages\tobii\eye_tracking_io\__init__.py", line 5, in <module>
        from tobii.eye_tracking_io._native import tetio, BoundHandler
      File "C:\Users\ewadmin\Downloads\WinPython-OpenSesame-2.8.3\python-2.7.3\lib\site-packages\tobii\eye_tracking_io\_native\__init__.py", line 6, in <module>
        import _tetiopy27
    ImportError: DLL load failed: %1 ist keine zulssige Win32-Anwendung.
    
  • edited 1:03AM

    Thanks for posting the full error!

    Two comments, which aren't very optimistic, I'm afraid:

    1) The problem seems to be in a Tobii library, where a wildcard isn't filled out with the proper value. This seems to lead to the library not being able to find a library it's looking to import.

    2) The problem is in the Tobii library, and I don't have a Tobii device around, so I can't debug it.

    I'll have a look around the Dept., maybe I can find a Tobii somewhere and test the plug-ins.

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