Re: [Matplotlib-users] matplotlib and cron

2008-05-08 Thread Andrew Straw
Andre, my guess is that there's an attempt made to connect to the (non-existant) X server. You can disable this by forcing a backend that doesn't need the X server. Try import matplotlib matplotlib.use('Agg') before the rest of your script. Andre Wong wrote: > Hi > > I am attempting to generate

[Matplotlib-users] matplotlib and cron

2008-05-07 Thread Andre Wong
Hi I am attempting to generate graphs using matplotlib/pyplot via a cron process. These scripts work perfectly fine when I am logged in and run the scripts on the command line, however they fail to run when they are set up as a cronjob. Even a simplified plotting routine does not work: from ma