Hi Sandro, Thanks for the tip.
In checking the HTTP logs, I found that the apache user couldn't create a ".matplotlib" directory (as it had no home dir) so i used the environment variable MPLCONFIGDIR to point to somewhere meaningful, then I found that to "import pylab" I needed a DISPLAY variable etc, etc, and I've eventually got everything working as expected by importing like thus: import os os.environ['MPLCONFIGDIR']='/path/for/.matplotlib' import matplotlib matplotlib.use('Agg') import matplotlib.pyplot as plt Found this too, I should have RTFM :D http://matplotlib.sourceforge.net/faq/howto_faq.html#howto-webapp Cheers, Mark On Tue, Jun 1, 2010 at 4:44 PM, Sandro Tosi <mo...@debian.org> wrote: > Hello Mark, > > On Tue, Jun 1, 2010 at 08:17, Mark Boorer <markbo...@gmail.com> wrote: > > And I have no idea why :( > > I'm fairly new to HTML, and I can't seem to see any meaningful errors in > > Firebug. Anyone have any experience with an error like this? > > This is not HTML, it's a CGi, so a script executed server-side; to > know what's going wrong, check the log files of your web server. > > Regards, > -- > Sandro Tosi (aka morph, morpheus, matrixhasu) > My website: http://matrixhasu.altervista.org/ > Me at Debian: http://wiki.debian.org/SandroTosi >
------------------------------------------------------------------------------
_______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users