esdalmaijer / PyGazeAnalyser

Analysis and high-level plotting toolbox for eye-tracking data
GNU General Public License v3.0
146 stars 89 forks source link

Issue with importing #13

Open titoghose opened 5 years ago

titoghose commented 5 years ago

When I try to import idfreader, an error always shows up:

ModuleNotFoundError: No module named 'detectors'

This is because idfreader imports functions from the file detectors but cant find its location.

Currently I have copied the pygazeanalyser folder from github into my dist-packages folder for Python 3. Is there a formal way to install it so that the path to all the files of pygazeanalyser is recognised?

esdalmaijer commented 5 years ago

In Python 3 local imports work differently. Throughout the library, change the imports from:

import example

to:

import .example