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