From: Jeff W. <js...@fa...> - 2008-08-18 15:21:10
|
stuartornum wrote: > Hi, > > Im getting the error: > > <type 'exceptions.RuntimeError'>: Failed to create > /$dirstring$/common/.matplotlib; consider setting MPLCONFIGDIR to a writable > directory for matplotlib configuration data > > The problem is I do not have write access to the MatPlotLib module sourse, > so I cannot change the MPLCONFIGDIR variable, where ever it is..! > > So my question is can I set MPLCONFIGDIR to say "/home/user/dirs/" in my > script somewhere, so that I know the that directory has read/write access. > > Thank you for your time. > > Regards > Stuart: Why are you setting the MPLCONFIGDIR environment variable? By default, the configuration file goes in $HOME/.matplotlib, which is usually just fine. Typically $MPLCONFIGDIR is used to override this in special situations, for example when running matplotlib in a web application. -Jeff -- Jeffrey S. Whitaker Phone : (303)497-6313 Meteorologist FAX : (303)497-6449 NOAA/OAR/PSD R/PSD1 Email : Jef...@no... 325 Broadway Office : Skaggs Research Cntr 1D-113 Boulder, CO, USA 80303-3328 Web : http://tinyurl.com/5telg |