esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
670 stars 211 forks source link

PyGaze error in OpenSesame using GazePoint #172

Open 13Elena98 opened 1 year ago

13Elena98 commented 1 year ago

Hi there,

I’m working on an experiment with OpenSesame 3.3.14 running with Python 3.7 and GazePoint 6.9.0.

I have some problem with the PyGaze library. The experiment runs correctly for some trials but then slows down and I get the following message on the console:

Exception in thread PyGaze_OpenGazeConnection_incoming:
Traceback (most recent call last):
  File "C:\Program Files (x86)\OpenSesame\lib\threading.py", line 926, in _bootstrap_inner
    self.run()
  File "C:\Program Files (x86)\OpenSesame\lib\threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "C:\Program Files (x86)\OpenSesame\Lib\site-packages\pygaze\_eyetracker\opengaze.py", line 405, in _process_incoming
    if not messages[-1][-2:] == '/>':
IndexError: list index out of range

I had a similar issue a few months ago. At the following link there are all the information that I previously reported directly on the OpenSesame forum (@smathot kindly helped me to fix the problem): https://forum.cogsci.nl/discussion/8360/gazepoint-opensesame-lxml-etree-xmlsyntaxerror-extracontent#latest

Do you have any suggestions?

Thanks in advance!

Elena