html5lib/html5lib-python

ModuleNotFoundError: No module named 'xml'

alassaneg opened this issue · 2 comments

Hello,

I've been trying to execute a code using html5lib but i'm having the following error:

File "/usr/lib/python3.9/site-packages/html5lib/_utils.py", line 13, in <module> import xml.etree.ElementTree as default_etree ModuleNotFoundError: No module named 'xml'
I'm using python 3.9 .
Is that a known issue on your side?

Thanks in advance for your reply

Could you show the entire traceback?

I suspect this is what is happening but your traceback shows xml not found so probably not, can you import xml in another directory?

ambv commented

Cannot reproduce. Inability to import a standard library module is most likely an end-user environment problem or a corrupt Python installation.