Howdy, Stranger!

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

Supported by

Installing PyGaze on Mac OS X

edited November 2014 in PyGaze

This question was asked via the contact form on the PyGaze website. Because of it's benefit to others, here is the answer to How do I install PyGaze on OS X?

Hi [user],

Sorry to hear about the struggle! I'm not a Mac user myself (Linux and Windows only), and I am not familiar with iTerm. However, I do know OS X usually comes with one or more pre-installed (and heavily modified) versions of Python, which are sometimes erroneously picked up by the terminal and code editors. It's a good idea to check which version of Python your are running, and to check whether this is the one you have installed PyGaze and its dependencies in. Please note that most of PyGaze's dependencies only work or work best on the 32-bit version of Python 2.7, so that is most likely the version you would want to install.

If you haven't downloaded Python yet, I;'d recommend trying Anaconda, which is a Python distribution that comes pre-packaged with PIL, NumPy, SciPy, Matplotlib and a whole lot of other useful stuff. Its website says there should be a Mac version. You can find it here: https://store.continuum.io/cshop/anaconda/.

Additionally, you will have to install PyGame and PsychoPy, and their dependencies. For Mac, use the following links:
PyGame: http://pygame.org/ftp/pygame-1.9.1release-python.org-32bit-py2.7-macosx10.3.dmg
PsychoPy: http://sourceforge.net/projects/psychpy/files/PsychoPy/PsychoPy-1.78.01.zip/download
Pyglet (PsychoPy dependency): http://pyglet.googlecode.com/files/pyglet-1.1.4.dmg

Installing PyGame and Pyglet is very easy: simply run the installers. To install PsychoPy, unzip the folder and copy it to Python's site-packages directory. Then run the following, using a terminal:

python "path/to/file/setup.py" install

(Again, take care that your preferred installation of Python is used for this! Should be Anavonda, Python 2.7, 32-bit!)

Finally, to install PyGaze, download the latest package from GitHub: https://github.com/esdalmaijer/PyGaze/archive/master.zip. Unzip the archive, and (very important), copy the 'resources' folder into the 'pygaze' folder. Then copy the pygaze folder to the site-packages directory of your Python installation.

FYI: there is a webpage on the website: http://www.pygaze.org/installation/. However, I agree that installing a fully functional Python is a huge hassle, and can take quite a bit of time (especially on Macs, which are quite unfriendly to developers that do not tailor specifically to OS X). It's a lot easier on Linux, but that OS comes with its own problems. Additionally, there is a WinPython package for Windows that should work out of the box with PyGaze and all of its dependencies installed.

We haven't gone over how to install the package for your eye tracker of choice yet, but if you can tell me which brand you will be using, I should be able to point you in the right direction.

Comments

  • edited August 2017

    Hi thank you for this post! I downloaded a Mac OS version Opensesame and it looks like it comes with a pre-installed pygaze package. It has initialize, start recording, stop recording and three other plugins and the calibration part works in my experiment. Although I have put pygaze logger and data logger at the end of my experiment, there is no eye-tracking data recorded in the log file. My experiment is simply a two-player game and I want to see where they look to during the experiment. The eye tracker I am using are SMI and Eye-Tribe. I tried everything in this post but when I run python "path/to/file/setup.py" install it says python: can't open file 'path/to/file/setup.pyinstall': [Errno 2] No such file or directory. I also have pygaze downloaded and copied open sesame-plugins folders from pygaze to opensesame. I have copied the pygaze folder to the contents of python2.7. I have looked into other discussions but they seem to have no trouble getting data whatsoever so I am really stuck by where my problem comes from.
    I am looking for coordinates of the eye movement during the experiment but it would also be really helpful if you could recommend a software that could translate coordinates into graphic data.

    Thanks again!


  • Hi,

    Is the only problem that no eye data is written to file, or does non of the eyetracking work? I suppose, you selected the corrected eyetracker in pygaze_init?

    Do find out whether you can actually access the eyetracker, try to do something like following in an inline_script: print exp.pygaze_eyetracker.sample()

    Can you run the command and let us know what you see.

    Eduard

    Buy Me A Coffee

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