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
Thanks for reporting this. I have always set it manually in CI, but it's better to have a working default.
The latest release now uses Agg in headless environments after installation or after evo_config reset plot_backend. This fixes the crash. Writing a PDF later then switches to the pdf renderer implicitly for the file export as far as I can tell.
Description:
I implemented a thin wrapper over evo, along with unit tests which run on a CI server.
Whenever I try to run the tests locally, everything goes well. When I do so on the CI, I get the following exception:
(see Console Output)
This error happens because the CI is running everything in headless mode. To overcome it I tried setting the matplotlib backend to pdf by default
In my opinion the source of the issue lies here: https://github.com/MichaelGrupp/evo/blob/master/evo/tools/plot.py#L32
Where the matplotlib backend is set silently by evo. The backend defaults to PyQt5, which doesn't run in headless mode, and an exception is thrown.
I would suggest that the default backend is
pdf
instead: https://matplotlib.org/3.3.1/api/backend_pdf_api.htmlConsole output:
Additional files:
Please attach all the files needed to reproduce the error.
Please give also the following information:
evo pkg --version
: v1.11.0evo pkg --pyversion
: 3.8.5evo_config show --brief --no_color
:The text was updated successfully, but these errors were encountered: