Open bueler opened 10 years ago
"regional tools" use Tk and Tkinter for the GUI, so it's not that easy to switch to the Qt4Agg backend. :-(
I agree that the "batch" mode should not even try to import GUI-related modules. This is a bug and I will fix it.
I was able to get past this. Apparently the key steps were:
tk
and tk-dev
sudo pip uninstall matplotlib
and sudo pip install matplotlib
I would not have tried this except I found
http://stackoverflow.com/questions/13110403/matplotlib-backend-missing-modules-with-underscore
Thanks, nice solution!
This command works on one of my ubuntu machines but not the other. It is from
pism/examples/jako
, of course:It may be relevant that I am running python 2.7.5+ and that when I run
ipython -pylab
I get a message that saysThat is, my Matplotlib does work with the Qt4Agg backend, but the gtkagg backend might not work for me.
Actually I would be happy for regional-tools to have a GUI-free mode (i.e. without needed a functioning gui to run). Or maybe that so defeats the purpose ...