Could not import lxml

Hi,

I’m getting this warning in seafdav.log:

2021-12-12 17:19:22.074 - <140244959651648> wsgidav                     WARNING :  Could not import lxml: using xml instead (up to 10% slower). Consider `pip install lxml`(see https://pypi.python.org/pypi/lxml).

But lxml is installed:

$ pip list |grep lxml
lxml                   4.6.4

Is pip python 2 or 3 on your host? (try pip3 install …)

They’re the same here:

seafile@seafile:~$ pip -V                           
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)
seafile@seafile:~$ pip3 -V                                     
pip 20.3.4 from /usr/lib/python3/dist-packages/pip (python 3.9)

Same here with seafile-pro-9.0.4 on docker. I know it’s only a warning message, but I think this should work. I also have “lxml” installed.

wsgidav WARNING : Could not import lxml: using xml instead (up to 10% slower). Consider pip install lxml(see https://pypi.python.org/pypi/lxml).