I think the error is raised when you try to import matplotlib (not
when you try to save your figure)
matplotlib needs its config directory writable.
It first try MPLCONFIGDIR env. variable, then try $HOME/.matplotlib.
Here, the $HOME is the home directory of the user executing the script.
I think i
I have searched the web for a solution to the following problem and nothing
works.
I call matplotlib code from a python script (2.5) running on Apache2.2 and
mod_python. When I get to the point where I the code is to save a figure in
the website dir I get the following error.
File "/usr/lib/p