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 11:49PM

    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.

agen judi bola , sportbook, casino, togel, number game, singapore, tangkas, basket, slot, poker, dominoqq, agen bola. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 50.000 ,- bonus cashback hingga 10% , diskon togel hingga 66% bisa bermain di android dan IOS kapanpun dan dimana pun. poker , bandarq , aduq, domino qq , dominobet. Semua permainan bisa dimainkan hanya dengan 1 ID. minimal deposit 10.000 ,- bonus turnover 0.5% dan bonus referral 20%. Bonus - bonus yang dihadirkan bisa terbilang cukup tinggi dan memuaskan, anda hanya perlu memasang pada situs yang memberikan bursa pasaran terbaik yaitu http://45.77.173.118/ Bola168. Situs penyedia segala jenis permainan poker online kini semakin banyak ditemukan di Internet, salah satunya TahunQQ merupakan situs Agen Judi Domino66 Dan BandarQ Terpercaya yang mampu memberikan banyak provit bagi bettornya. Permainan Yang Di Sediakan Dewi365 Juga sangat banyak Dan menarik dan Peluang untuk memenangkan Taruhan Judi online ini juga sangat mudah . Mainkan Segera Taruhan Sportbook anda bersama Agen Judi Bola Bersama Dewi365 Kemenangan Anda Berapa pun akan Terbayarkan. Tersedia 9 macam permainan seru yang bisa kamu mainkan hanya di dalam 1 ID saja. Permainan seru yang tersedia seperti Poker, Domino QQ Dan juga BandarQ Online. Semuanya tersedia lengkap hanya di ABGQQ. Situs ABGQQ sangat mudah dimenangkan, kamu juga akan mendapatkan mega bonus dan setiap pemain berhak mendapatkan cashback mingguan. ABGQQ juga telah diakui sebagai Bandar Domino Online yang menjamin sistem FAIR PLAY disetiap permainan yang bisa dimainkan dengan deposit minimal hanya Rp.25.000. DEWI365 adalah Bandar Judi Bola Terpercaya & resmi dan terpercaya di indonesia. Situs judi bola ini menyediakan fasilitas bagi anda untuk dapat bermain memainkan permainan judi bola. Didalam situs ini memiliki berbagai permainan taruhan bola terlengkap seperti Sbobet, yang membuat DEWI365 menjadi situs judi bola terbaik dan terpercaya di Indonesia. Tentunya sebagai situs yang bertugas sebagai Bandar Poker Online pastinya akan berusaha untuk menjaga semua informasi dan keamanan yang terdapat di POKERQQ13. Kotakqq adalah situs Judi Poker Online Terpercayayang menyediakan 9 jenis permainan sakong online, dominoqq, domino99, bandarq, bandar ceme, aduq, poker online, bandar poker, balak66, perang baccarat, dan capsa susun. Dengan minimal deposit withdraw 15.000 Anda sudah bisa memainkan semua permaina pkv games di situs kami. Jackpot besar,Win rate tinggi, Fair play, PKV Games