Howdy, Stranger!

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

Supported by

[open] No module named "pygaze"

edited March 2015 in PyGaze


I'm new to the forum and new to using both python and pygaze. I'm trying to set up our experiment room with pygaze connecting some psychopy experiments to an Eyewink 1000.

Forgive me if this is an amateur question, but I can't even seem to run the demos. I'm trying to run "shooting_game" and I keep getting the error message

File "/Users/michael/Desktop/pygaze/examples/shooting_game/", line 8, in
from pygaze import libtime
ImportError: No module named pygaze"

I'm confused. Why can't it read the module for pygaze if I gave it the right directory?


  • edited 9:30AM

    Hi Michael,

    If you're running OpenSesame on Windows, you have to put the plugins also in the OpenSesame folder under documents (not only in the installation directory under C).

    See this link. Does this clear things up, or has the issue another reason?


  • edited 9:30AM

    Hi Michael,

    From your error message, I get the feeling you might not have actually put the pygaze folder in the right place. This should either go in your Python installation's site-packages folder, or should be placed in the same folder as the script you are trying to run.

    It does not have to be in the Documents folder.

    Good luck!

  • edited 9:30AM

    Hi Eduard,

    I'm actually running off of mac and I'm not using openseasame. I'm just trying to run the pygaze demos from terminal and getting back the same error. I've tried moving pygaze around in different anaconda folders but there seems to be no easy solution.

    Also is there a pip download for pygaze? That would help quite a bit.

  • edited March 2015

    There is no pip download, although I will look into creating one.

    The pygaze directory (mind you, that's the one directly containing all the libraries - this one) should be in the site-packages directory of the installation (which should also be present in the Mac version of Anaconda).

    Alternatively, you could add the very same pygaze directory to the directory that contains your experiment script. An example below:

    - pygaze (this folder:

    So that in you can directly import pygaze, as such:

    # import the entire library
    import pygaze
    # import classes directly from submodules
    from pygaze.display import Display

    Good luck!

  • edited 9:30AM


    I'm working off of two computers now trying to get either one to run the pygaze simple_eyetrackerexperiment. I'm still having this issue on one of the machines.

    On my laptop I'm at least able to get the simple_experiment to run. I did that by moving the pygaze folder to the python2.7 site-packages inside psychopy and running the example experiments from inside the site-packages and inside psychopy.
    However, when I run the eyetracker experiments I can't open a TCP/IP link with our eyelink and I get a runtime error. (I'll open a different thread about this.)

    On the desktop I've tried moving the pygaze folder to the python2.7 site packages in psychopy as I did with the laptop and that doesn't appear to work and I get this same "no module named pygaze" error.

    I've tried troubleshooting by moving the example experiment to my desktop and placing the pygaze folder in the same folder as the experiment (as was outlined in an above comment) and I'm still getting the same "no module named pygaze" error.

    Any ideas?

    Apologies for the frustration, it's been weeks/months of trying to get pygaze to work on one of two machines and it's been an uphill battle every step of the way.

  • edited 9:30AM

    Currently in the process of handling this personally, as it seems to be an issue of where what is installed. This is rather unclear on OSX, unfortunately.

Sign In or Register to comment.