urlwatch: cannot import name 'etree' from 'lxml'
ablyler opened this issue · comments
Andy Blyler commented
After upgrading to the latest urlwatch image, I am getting the following error when urlwatch attempts to run:
crond: USER root pid 57 cmd cd /root/.urlwatch && urlwatch --urls urls.yaml --config urlwatch.yaml --hooks hooks.py --cache cache.db
Traceback (most recent call last):
File "/usr/bin/urlwatch", line 5, in <module>
from urlwatch.cli import main
File "/usr/lib/python3.9/site-packages/urlwatch/cli.py", line 53, in <module>
from urlwatch.command import UrlwatchCommand
File "/usr/lib/python3.9/site-packages/urlwatch/command.py", line 38, in <module>
from .filters import FilterBase
File "/usr/lib/python3.9/site-packages/urlwatch/filters.py", line 45, in <module>
from lxml import etree
ImportError: cannot import name 'etree' from 'lxml' (/usr/lib/python3.9/site-packages/lxml/__init__.py)