Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with importing #13

Open
titoghose opened this issue Apr 18, 2019 · 1 comment
Open

Issue with importing #13

titoghose opened this issue Apr 18, 2019 · 1 comment

Comments

@titoghose
Copy link

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
Copy link
Owner

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

import example

to:

import .example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants