Skip to content

Installing EyeScript on Ubuntu

Titus von der Malsburg edited this page Feb 6, 2014 · 7 revisions

First, download the zip file containing the complete content of the EyeScript repository.

Visionegg

  • Have a working GCC on your system.
  • Install Python stuff: sudo apt-get install python-pygame python-opengl python-setuptools python-dev libglu1-mesa-dev freeglut3-dev mesa-common-dev
  • Download the latest version of Visionegg.
  • Unpack archive and enter Visionegg directory.
  • Build: python setup.py build
  • Install: sudo python setup.py install
  • Test: python setup.py test
  • Run demo: python demo/multi_stim.py
  • If it doesn't work, you may have to install python sudo apt-get install libgl1-mesa-swrast (specially Ubuntu 12.04 Nvidia drivers)

Vsionegg needs a patch to be able to handle non-western scripts properly. Visionegg's original Text.py has to be replaced by PangoText.py which provides the Python class for displaying Unicode text in the appropriate characters. PangoText.py can be found in the directory Resources in the zip file. (Right now this file has to be modified and a font has to be hard-coded.)

  • Patch: sudo cp PangoText.py /usr/local/lib/python2.6/dist-packages/visionegg-1.2.1-py2.6-linux-i686.egg/VisionEgg/Text.py (The path might differ on your machine.)
  • Test: python displayUnicode.py (You should see text in all kinds of scripts.)

Pylink

Pylink is a library that allows Python programs to communicate with EyeLink eyetrackers. Install either pylink or pylink stub. The latter can be used when you want to develop and test experiments on a computer that is not connected to an eye tracker. Pylink can be obtained from SR Research's support forum.

Pylink stub

  • Enter the Resources directory from the zip file.
  • Install: sudo cp -r pylink-stub /usr/lib/python2.6/pylink
  • Test (in Python): import pylink

EyeScript

  • Enter the EyeLink directory from the zip file.
  • Install: sudo cp -r EyeScript /usr/lib/python2.6/EyeScript (the path to your Python install may differ on your machine)

Clone this wiki locally