Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-06-01 Thread Mark Boorer
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 variabl

Re: [Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-05-31 Thread Sandro Tosi
Hello Mark, On Tue, Jun 1, 2010 at 08:17, Mark Boorer 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 kn

[Matplotlib-users] Importing pylab in python CGI script causes immediate failure

2010-05-31 Thread Mark Boorer
Hi, I'm having a problem when importing pylab in a python CGI script to generate some dynamic graphs for a web page. As soon as I import pylab, my script will fail, and I have no idea why. As an example, i can have 1x1 black png file, loaded from a script like thus: #!/usr/bin/env python # blac