You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
INTERNALERROR> Traceback (most recent call last):
INTERNALERROR> File "_pytest/main.py", line 269, in wrap_session
INTERNALERROR> File "pluggy/_hooks.py", line 513, in __call__
INTERNALERROR> return self._hookexec(self.name, self._hookimpls.copy(), kwargs, firstresult)
INTERNALERROR> File "pluggy/_manager.py", line 120, in _hookexec
INTERNALERROR> return self._inner_hookexec(hook_name, methods, kwargs, firstresult)
INTERNALERROR> File "pluggy/_callers.py", line 182, in _multicall
INTERNALERROR> return outcome.get_result()
INTERNALERROR> File "pluggy/_result.py", line 100, in get_result
INTERNALERROR> raise exc.with_traceback(exc.__traceback__)
INTERNALERROR> File "pluggy/_callers.py", line 103, in _multicall
INTERNALERROR> res = hook_impl.function(*args)
INTERNALERROR> File "pytest_html/basereport.py", line 167, in pytest_sessionstart
INTERNALERROR> File "pytest_html/basereport.py", line 75, in _generate_environment
INTERNALERROR> File "_pytest/stash.py", line 80, in __getitem__
INTERNALERROR> KeyError: <_pytest.stash.StashKey object at 0x7f7e58c71df0>
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:
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?
The text was updated successfully, but these errors were encountered: