Tobii eyetracker experiment GET_DEV_INTERFACE_ERROR error message

Hello,

OS: Win10
PsychoPy version: 2023.2.3
Standard Standalone? y
Eyetracking device; Tobii X3-120
What are you trying to achieve?:

I am trying to build an experiment in the PsychoPy Builder with the Tobii X3-120 eyetracker.
I am just at the very beginning and I have just put a calibration routine and an trial with an etRecord component.

What did you try to make it work?:

I don’t really know where to begin…

What specifically went wrong when you tried that?:

When I run the experiment, I get an error message (only when one of the eyetracking element is active).

Error during device creation ....
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 715, in createNewMonitoredDevice dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 852, in addDeviceToMonitor self.processDeviceConfigDictionary(dev_mod_pth, dev_cls_name, dev_conf,
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 672, in processDeviceConfigDictionary for dparam, dvalue in def_dev_conf.items():
AttributeError: 'str' object has no attribute 'items'

Error during device creation ....
Traceback (most recent call last):
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 715, in createNewMonitoredDevice dev_data = self.addDeviceToMonitor(dev_cls_name, dev_conf)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 852, in addDeviceToMonitor self.processDeviceConfigDictionary(dev_mod_pth, dev_cls_name, dev_conf,
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 672, in processDeviceConfigDictionary
    for dparam, dvalue in def_dev_conf.items():
AttributeError: 'str' object has no attribute 'items'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 649, in _addDevices self.createNewMonitoredDevice(dev_cls_name, dev_conf)
  File "C:\Program Files\PsychoPy\lib\site-packages\psychopy\iohub\server.py", line 728, in createNewMonitoredDevice raise ioHubError('Error during device creation ....')
psychopy.iohub.errors.ioHubError: ioHubError:
Args: ('Error during device creation ....',)

GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
Traceback (most recent call last):
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
  File "C:\Users\Tobii\Documents\Damien\MWOM\mwom_lastrun.py", line 143, in <module> calibration.run()
  File "C:\Users\Tobii\AppData\Roaming\psychopy3\versions\psychopy\hardware\eyetracker.py", line 197, in run
    self.last = self.eyetracker.runSetupProcedure(dict(self))
  File "C:\Users\Tobii\AppData\Roaming\psychopy3\versions\psychopy\iohub\client\__init__.py", line 153, in __getattr__ raise AttributeError(self, name)
AttributeError: (<psychopy.iohub.client.ioHubDeviceView object at 0x0000015BF82359A0>, 'runSetupProcedure')
################# Experiment ended with exit code 1 [pid:3808] #################

I think I understand there is a problem with iohub… But I don’t know what the problem is and how to address it. Could someone give me a clue?

Best regards,
Damien

If you look through the forum and github issues you’ll see this has been an issue with the shift in how plugin handles. For now, version 2022.2.5 is recommended for eye tracking. You can’t simply just change the run version because there are missing folders and python library compatibility issues, so you should downgrade your psychopy version.

Just be aware that with all the changes from 2022.2.x to 2023.x, I’d recommend recreating your script in v. 2022, otherwise you’ll probably get many errors and warning message. We had success with just copying the routines from the 2023.x script to a new one opened with v. 2022.2.5

2 Likes

Hi @josephorr1015,
Thanks a lot ! I missed the info. It works now.
Best regard,
Damien

1 Like