Errors in pygaze examples code
Hi,
I took pygaze examples code and trying to see the outputs. But I am ending up with errors
https://github.com/esdalmaijer/PyGaze/tree/master/examples/slideshow
The "experiment.py" code from the above link with python 2.7.5 32-bit gives the error as,
Participant name: "sindhu"
Traceback (most recent call last):
File "E:\pygaze\PyGaze-master\examples\slideshow\experiment.py", line 25, in
disp = Display()
File "C:\Python27\lib\site-packages\pygaze\display.py", line 45, in init
self.class.init(self, **args)
File "C:\Python27\lib\site-packages\pygaze_display\psychopydisplay.py", line 70, in __init__
screen=self.screennr, units='pix')
File "C:\Python27\lib\site-packages\psychopy\visual\window.py", line 237, in __init__
self.scrWidthCM = self.monitor.getWidth()
AttributeError: 'NoneType' object has no attribute 'getWidth'
The same code experiment.py with python 2.7.15 32-bit gives the error as,
Participant name: "sindhu"
pygame 1.9.4
Hello from the pygame community. https://www.pygame.org/contribute.html
Traceback (most recent call last):
File "E:\pygaze\PyGaze-master\examples\slideshow\experiment.py", line 30, in
tracker = EyeTracker(disp)
File "C:\Anaconda2\lib\site-packages\pygaze\eyetracker.py", line 64, in init
from pygaze._eyetracker.libeyelink import libeyelink
File "C:\Anaconda2\lib\site-packages\pygaze_eyetracker\libeyelink.py", line 29, in
from pygaze._eyetracker.eyelinkgraphics import EyelinkGraphics
File "C:\Anaconda2\lib\site-packages\pygaze_eyetracker\eyelinkgraphics.py", line 44, in
custom_display = pylink.EyeLinkCustomDisplay
AttributeError: 'module' object has no attribute 'EyeLinkCustomDisplay'
I don’t have any hardware and eyetracker. I just want to see the output of Heatmaps, fixations and scanpaths. How it can be possible? How these errors can be rectified?
Thanks & Regards,
Shri
Comments
Hi All,
Please kindly reply me. I don't have any eyetracker and I want to see the outputs for heatmaps and fixations. Explain me the steps to get the output and do help me with my errors.
Thanks&Regards,
Shri
Hi Shri,
From your output, it's clear that you are trying to run the "slideshow" experiment script with the
TRACKERTYPE
set toeyelink
. This will not work, because you say you do not have an EyeLink, and because (as the error message indicates) you have not installed the librarypylink
(which would be required for working with an EyeLink tracker.Finally, you are also using the wrong software. What you are running is an experiment script, but what you say you want to do is use PyGaze Analyser functionality. For this, I would like to refer you to your other question, where you have been pointed to example gaze data files.
Regards,
Edwin
PS. In both this and one of your other questions, you have posted a question on 2 January, and followed this up with a request to urgently reply on 3 January. Everyone here volunteers there time next to at least a fulltime job, which makes it unlikely that we respond very quickly.