Closed mattberjon closed 6 years ago
In this case it's an issue related to the chosen backend, in this case Tk that need Xwindow to work properly which you usually don't have available on remote server.
The best workaround if plotting the figures are not required is to update the ~/.config/matplotlib/matplotlibrc
file and update or add the following line:
backend: Agg
This information should probably go in a FAQ for other users who might have the same issue later on.
I ran the script on a distant server that doesn't have any screen connected and ended up with the traceback as follows. The issue is that I don't try to display anything and I didn't specify any debug mode.