With latest pytest 7.2.0 we get a
ModuleNotFoundError: No module named 'py.xml'; 'py' is not a package
The py package dependency was removed here: pytest-dev/pytest@19dda7c
This could be fixed by specifying the dependency in the pytest-html package itself.