esdalmaijer / PyGaze

an open-source, cross-platform toolbox for minimal-effort programming of eye tracking experiments
www.pygaze.org
GNU General Public License v3.0
671 stars 211 forks source link

simple_tracker_experiment.py not working #87

Closed muhammadkhan closed 6 years ago

muhammadkhan commented 7 years ago

I'm trying to run simple_tracker_experiment.py provided on the website but I'm always getting this error:

Traceback (most recent call last): File "simple_tracker_experiment.py", line 7, in <module> from pygaze import libscreen File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/pygaze/libscreen.py", line 22, in <module> from screen import Screen ImportError: cannot import name 'Screen'

I'm pretty sure I've installed all dependencies, even the Python 3 versions. Why am I still getting this?

srinivasj7 commented 7 years ago

I guess we are supposed to use python2.7, not python3. I just solved that problem using python2.7

ghost commented 5 years ago

I use python3.6 and I solved it using this command sudo apt-get install python3-tk

You can't name your file "turtle.py", because if you do and then you try to import turtle, python tries to import the file you made rather than the turtle module. Give your file a name that you will not import.

aribeller commented 5 years ago

Just want to clarify a point. I'm taking from @esdalmaijer's endorsement of @srinivasj7's comment that pygaze is implemented only for python2 and not python3?