Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[solved] All pygaze examples doesn't work for different reasons. UPDATE: Same underlying issue

rrrrrr
edited September 2015 in PyGaze

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

  • rrrrrr
    edited 1:50PM

    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.

  • edited September 2015

    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:

    Thank you for your advise. I have good news. I succeeded to use Pygaze in Mac. I found that we should install the EyeLink Developer's Kit (https://www.sr-support.com/showthread.php?15-EyeLink-Developers-Kit-for-Mac-OS-X-(Mac-OS-X-Display-Software)). This will be installed in '/Application/'. We can chose the suitable version of pylink for our Python (e.g. pylink2.7) from '/Application/Eyelink/pylink/'. After the choice, we should copy it to the directory we usually use (in my case, opt/local/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7). Don't forget to rename it from 'pylink2.7' to 'pylink', and create the path between your Python and the directory includes pylink.

    Thanks for figuring this out!

    Edwin

Sign In or Register to comment.