Rasa setting a platform specific matplotlib backend fails #4657
Labels
status:stale
type:bug 🐛
Inconsistencies or issues which will cause an issue or problem for users or implementors.
Rasa version:
1.4.0
Python version:
3.7.4
Operating system (windows, osx, ...):
Linux Ubuntu 18.04.3 LTS
Issue:
Rasa tries to set a matplotlib backend which is environment specific (and IMO also unnecessary) and fails in headless environments. According to matplotlib docs:
I think this line is the culprit and would be best to just delete it as it is not clear what the motivation is for that line anymore (seems to be based on an old OSX specific issue).
rasa/rasa/core/test.py
Lines 19 to 21 in 5119efc
In addition it would be better if matplotlib is imported inside the function call and not module wide (see here for rationale).
Error (including full traceback):
Command or request that led to error:
The text was updated successfully, but these errors were encountered: