Tobii eye-tracking with Psychopy 3?

I’ve previously been eye-tracking using E-Prime and Matlab, but am excited about moving over to PsychoPy. I’m using Psychopy 3 on a work computer which is connected to a tobii eye-tracker. I’m getting stuck quite early on though, as when I follow the instructions here (https://github.com/janfreyberg/tobii-psychopy) I am directed here (http://developer.tobiipro.com/python/python-getting-started.html), which says I need to run “pip install tobii_research” and I get the following error:

“Could not find a version that satisfies the requirement tobii_research (from versions: )
No matching distribution found for tobii_research”

I’ve also tried pip install tobii-research (i.e. using a hyphen rather than underscore) with the same result. I notice that on (https://pypi.org/project/tobii-research/) it seems that the version of python expected seems to be 3.5 and 2.7, rather than 3.6 (which is what is needed for Psychopy 3) - could this be part of the problem?

I’ve had experience in the past having multiple versions of python on the same machine, so I’d rather avoid it if possible.

Thanks in advance,

Ant

1 Like

Hi Ant,
Your concern is right, tobii-research only supports Python 3.5 :frowning:
I eventually built my experiment on Python 3.5 to use the Tobii Pro SDK with PsychoPy v1.90.3.
It works without problems. Since PsychoPy3 is still under development, I haven’t tested the scripts thoroughly but I think it would be fine on Python 3.5.
To use a different version of Python, I recommend Anaconda on Windows machines. You can find instructions in here to start on.
Here is what I do to use tobii-research with PsychoPy:

  1. Create a virtual environment with Python 3.5
  2. Manually download all the dependencies for PsychoPy, preferably with conda if you use Anaconda distribution of Python.
  3. Download and unzip the version of PsychoPy that you want to use from github releases and install it using pip install .
  4. Install tobii-research via PyPi: pip install tobii_research

Best,
Yuhan

2 Likes