Installing PyGaze on Mac OS X
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?
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:
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.