Howdy, Stranger!

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

Supported by

"No module named lxml.etree" error in controlling GP3

Hi Everyone

I'm trying to control Gaze Point 3 with Pygaze (WinPython-PyGaze-0.6.0) and the latest version of GazePoint Controller on Win10 (64bit).

The problem is...

When I try to run "SlideShow" example, "No module named lxml.etree" error is thrown.

I re-installed lxml and freetype-py to no avail.

Could anyone tell me how to fix this problem?

The full error message is pasted below.

Best regards

Hiro

FreeType import Failed: Freetype library not found

Traceback (most recent call last):

 File "experiment.py", line 30, in <module>

  tracker = EyeTracker(disp)

 File "C:\Users\DoiH\Desktop\WinPython-PyGaze-0.6.0\python-2.7.3\lib\site-packages\pygaze\eyetracker.py", line 118, in __init__

  from pygaze._eyetracker.libopengaze import OpenGazeTracker

 File "C:\Users\DoiH\Desktop\WinPython-PyGaze-0.6.0\python-2.7.3\lib\site-packages\pygaze\_eyetracker\libopengaze.py", line 41, in <module>

  from opengaze import OpenGazeTracker as OpenGaze

 File "C:\Users\DoiH\Desktop\WinPython-PyGaze-0.6.0\python-2.7.3\lib\site-packages\pygaze\_eyetracker\opengaze.py", line 14, in <module>

  import lxml.etree

ImportError: No module named lxml.etree

0.8818 WARNING     Movie2 stim could not be imported and won't be available

1.0676 WARNING     TextBox stim could not be imported and won't be available.

1.0677 WARNING     TextBox Font Manager Found No Fonts.

1.0680 WARNING     Monitor specification not found. Creating a temporary one...

1.0683 WARNING     User requested fullscreen with size [1024 768], but screen is actually [1280, 720]. Using actual size

Comments

  • Solved.

    Sorry for bothering you all.

    Best

    Hiro

    Thanked by 1Edwin
  • edited June 13

    For future reference, the solution is to install the lxml library by opening a terminal (command prompt) and running the following command:


    pip install lxml
    
    

    For more info, see: https://lxml.de/installation.html

Sign In or Register to comment.