On Jan 13, 2008 7:26 PM, Christopher Fonnesbeck <[EMAIL PROTECTED]> wrote: > On some OSX systems, pylab is failing on importing pylab because of > lack of GTK. This appears to be a bug; if the system doesnt have gtk, > it should simply not import that backend to begin with.
matplotlib does not do runtime checking to see if a backend is available (arguably it should, but it does not_. It does do compile time checking, and if gtk was available at compile time it will spit out a default matplotlib rc file which uses gtkagg. If you ship this to your users who do not have gtk, it can cause problems (you can tweak this with setup.cfg). You may want to make tkagg the default backend if you are distributing binaries, since it is most likely to work on the user side. JDH ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users