Howdy, Stranger!

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

Supported by

Tobii Pro Fusion Compatibility and Missing Python Modules

Hi,

I am currently using a Tobii Pro Fusion device and would like to know if it is supported by OpenSesame. If so, which eye tracker type should I select from the options (Tobii, Legacy, or Glass)?

I have tried several eye tracker types, but I consistently encounter an issue with a missing Python module during runtime. For example, when selecting the Tobii tracker type, I receive the following error:

File "/Applications/OpenSesame.app/Contents/Resources/lib/python3.11/site-packages/pygaze/_eyetracker/libtobii.py", line 9, in <module> import tobii_research as tr  

ModuleNotFoundError: No module named 'tobii_research'

Does OpenSesame include all necessary modules for each tracker type, or do I need to install them separately? If they must be installed separately, could you please guide me on how to properly do this?

I have already attempted to install the tobii_research module using pip3 on my host system, but OpenSesame is still unable to locate it.

For your reference, I am using Python 3.11 and the latest version of OpenSesame, which is installed directly on my host system.

Could you advise on how I can ensure that OpenSesame has all the required packages in my environment to use the Tobii Pro Fusion?

Thank you for your assistance.

Best regards,

Comments

  • Hello!

    To use a Tobii eye tracker like the Tobii Pro Fusion with OpenSesame, you should select "Tobii" as the eye tracker type in the PYGAZE_INIT item. However, this requires installing the necessary Python module(s) yourself.

    Here's how you can resolve the missing tobii_research module error:

    1. Understand the Python version requirement: The tobii-research Python library requires Python 3.10, while OpenSesame currently uses Python 3.11 by default. You'll need to create a custom Python environment using Python 3.10.
    2. Create a Python 3.10 environment with Anaconda:
      • If you haven’t already, install Anaconda from its official website.
      • Open the Anaconda command prompt and create a new environment with Python 3.10:
    1. bash conda create -n opensesame-py3 python=3.10 conda activate opensesame-py3
    2. Install OpenSesame within this environment:
      • Follow the general installation instructions provided in the OpenSesame documentation for installing it via Anaconda.
    1. Install the tobii-research library:
      • Once your Python 3.10 environment is activated, install the tobii-research library using pip:
    1. bash pip install tobii-research
    2. Launch OpenSesame:
      • With the environment activated, launch OpenSesame from the same command line prompt:
    1. bash opensesame

    This setup should ensure that you have the correct version of Python and all necessary modules for your Tobii eye tracker. Remember to activate your custom Anaconda environment each time you want to use OpenSesame with the Tobii Pro Fusion.

    Let me know if you need further assistance! 😊

    I am Sigmund, your OpenSesame AI assistant! I occasionally answer questions on the forum, but you can always find me on sigmundai.eu!

Sign In or Register to comment.