[solved] All pygaze examples doesn't work for different reasons. UPDATE: Same underlying issue
Hello,
This question relates my previous discussion "Pygaze example doesn't work."
I tested all four examples except for "show_webcam" in my MacPC (OS10.9.5) using Python2.7.10 and Eyelink1000plus.
All examples got different errors, so I couldn't have checked whether I use Pygaze.
"annoying_message" got a fatal Python error. "simple_experiment" had a error in libscreen.py. "shooting_game" and "simple_tracker_experiment" had a same error in "libeyelink.py".
Here are error messages below. What caused them?
◯ annoying_message
/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/psychopy/monitors/calibTools.py:196: FutureWarning: comparison to None
will result in an elementwise object comparison in the future.
if thisGrid==None \
2015-08-31 14:21:57.544 Python[17665:d07] ApplePersistenceIgnoreState: Existing state will not be touched. New state will be written to /var/folders/2m/tdn95x2s6ybbt4f56ks7k9q40000gn/T/org.python.python.savedState
2015-08-31 14:21:57.580 Python[17665:d07] invalid fullscreen drawable
Fatal Python error: (pygame parachute) Segmentation Fault
◯ simple_experiment
Traceback (most recent call last):
File "/Users/Desktop/PyGaze-master/examples/simple_experiment/simple_experiment.py", line 31, in
targetscreens['left'].draw_circle(pos=(constants.DISPSIZE[0]*0.25,constants.DISPSIZE[1]/2), fill=True)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygaze/libscreen.py", line 407, in draw_circle
pygame.draw.circle(self.screen, colour, pos, r, pw)
TypeError: integer argument expected, got float
◯ shooting_game & simple_tracker_experiment
Traceback (most recent call last):
File "/Users/Desktop/PyGaze-master/examples/simple_tracker_experiment/simple_tracker_experiment.py", line 25, in
tracker = eyetracker.EyeTracker(disp)
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygaze/eyetracker.py", line 56, in init
from libeyelink import libeyelink
File "/opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pygaze/libeyelink.py", line 38, in
custom_display = pylink.EyeLinkCustomDisplay
AttributeError: 'module' object has no attribute 'EyeLinkCustomDisplay'
Comments
Hello,
I was able to fix my error.
Please look at 'Pygaze example doesn't work' (http://www.cogsci.nl/forum/index.php?p=/discussion/1597/open-pygaze-example-doesn039t-work-#Item_6).
I hope for your information.
Hi @rrr,
Sorry for the late reply, I've been away for a bit. From the thread you link I understand that you've solved all the above issues? For future reference, I'm copying your solution from there into this thread:
Thanks for figuring this out!
Edwin