Error when connecting to Tobii eyetracker

OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 2022.1.1
Standard Standalone? (y/n) : Yes

Hi all,

I’m working on an eyetracking project with Psychopy and Tobii. I inserted the Eyetracker Record and Region of Interest components into my own project in the same way as eyetracking demo does. The demo works but my program reported the error message:

GET_DEV_INTERFACE_ERROR: _getRPCInterface returned: None
1.0482     WARNING     We strongly recommend you activate the PTB sound engine in PsychoPy prefs as the preferred audio engine. Its timing is vastly superior. Your prefs are currently set to use ['pyo'] (in that order).
pygame 2.1.0 (SDL 2.0.16, Python 3.8.10)
  File "C:\Users\utente\Desktop\ADAM\ADAM_eyetracker_lastrun.py", line 525, in <module>
    etRecord_2.status = STARTED
  File "C:\Users\utente\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\hardware\eyetracker.py", line 31, in status
    self.tracker.clearEvents()
  File "C:\Users\utente\AppData\Local\Programs\PsychoPy\lib\site-packages\psychopy\iohub\client\__init__.py", line 153, in __getattr__
    raise AttributeError(self, name)
AttributeError: (<psychopy.iohub.client.ioHubDeviceView object at 0x0000022FCBA06D30>, 'clearEvents')
################# Experiment ended with exit code 1 [pid:9444] #################

Does anyone know what the problem could be?

Thank you!!