Open fxatNavVis opened 6 months ago
Hi, I had the same issue trying to include the pytest-html plugin in my pyinstaller build. After looking through the source, it looks like the pytest-html report generator retrieves the stash key from pytest-metadata. I resolved the issue by including pytest-metadata in my imports:
hiddenimports += collect_submodules('pytest_metadata')
hiddenimports += collect_submodules('pytest_html')
hiddenimports += collect_submodules('pytest_timeout')
datas += collect_data_files('pytest_metadata')
datas += collect_data_files('pytest_html')
datas += collect_data_files('pytest_timeout')
datas += copy_metadata('pytest_metadata')
datas += copy_metadata('pytest_html')
datas += copy_metadata('pytest_timeout')
Hej, we are trying to package pytest into an executable for ubuntu18.04. When packaging it without pytest-html and just creating a xml report, it works fine, with html I get this error:
The spec file kind of looks like this
Someone solved the key error before or ran into similar problems?