Integrating Gazepoint Eyetracker

Hi,

I am relatively new to PsychoPy and have created an experiment where I would like to collect eyetracking data. I am using the Gazepoint GP3 w/ biometrics bundle(finger module). I have installed the plugin for Gazepoint and have designated GazePoint as my eyetracker in experiment settings. I have also added the calibration and validation eyetracking components, respectively, at the beginning of my experiment. I have start and stop recording components included during and after my task as well. The problem is I keep getting this error code and am unsure what to do.

tracker = self.eyetracker.getIOHubDeviceClass(full=True)
AttributeError: ‘NoneType’ object has no attribute ‘getIOHubDeviceClass’

If anyone has any suggestions, I would greatly appreciate them.

Much thanks,
Will

It’s failing to initialize the eye-tracker in the first place. Are you doing this in builder or entirely in code? If it’s in builder, can you share the PsyExp file?

I’m doing this all in builder. The experiment is done mostly with code, however. Here is the exp file.
PinEntry (1).psyexp (393.3 KB)

Its not in the exp file I posted here to the forum, but I also tried inputting this code that I found on the PsychoPy page at the beginning of the exp, before the calibration and validation routines.

from psychopy.iohub import launchHubServer
from psychopy.core import getTime, wait

iohub_config = {‘eyetracker.hw.gazepoint.gp3.EyeTracker’:
{‘name’: ‘tracker’, ‘device_timer’: {‘interval’: 0.005}}}

io = launchHubServer(**iohub_config)

tracker = io.devices.tracker

r = tracker.runSetupProcedure()

However I still received a similar error code AttributeError: ‘ioHubDevices’ object has no attribute ‘tracker’

Do you have the GazePoint software running at the same time? On my setup I need to run the GazePoint viewer before running the PsychoPy experiment or it won’t connect.

From what I can see that’s the most likely issue, since otherwise your experiment and code seem properly configured. You also shouldn’t need this extra code component if you’re using the builder settings for this eye-tracker, it should start with that code anyway.

I do have the GazePoint control and analysis running when I attempt to get it to work.

Then this is going to be finicky. What version of PsychoPy are you using, exactly? And when you get the error message you posted in the first post, does it give you a file name and line number?

I am using 2024.2.1. I am going to attach a screenshot of the error message.

Ah that helps a lot. Do you have the GazePoint plugin installed? Go to Tools → Plugins and look for GazePoint. If you already do, then this should be reported on the PsychoPy github as a bug, but if not, then this should work I think.

I do have the plugin installed. I will go to github and report this as a bug. Thank you!