esdalmaijer / webcam-eyetracker

Webcam-based pupil-tracker, complete with GUI to perform calibrations.
http://www.pygaze.org/2015/06/webcam-eye-tracker/
GNU General Public License v3.0
294 stars 105 forks source link

'str' object has no attribute 'decode' #7

Closed bemoregt closed 6 years ago

bemoregt commented 6 years ago

Hi, @mxgxw @esdalmaijer @jeffesquivels

I met this error when run example.py.

kraken-2:PyOpenCV dti$ python3 example.py Traceback (most recent call last): File "example.py", line 9, in from pygazetracker.webcam import WebCamTracker File "/Users/dti/webcam-eyetracker/PyOpenCV/pygazetracker/init.py", line 22, in _DIR = os.path.abspath(os.path.dirname(file)).decode(u'utf-8') AttributeError: 'str' object has no attribute 'decode' kraken-2:PyOpenCV dti$

What's wrong with me?

Thanks in advance~

esdalmaijer commented 6 years ago

You're trying to run a Python 2 script using Python 3. Sorry, I've not had a chance to update to 3 yet, shame on me!