DIRACGrid/DIRAC — Issue #386: Accounting_ReportGenerator - Failed to create //.matplotlib (v6r0)
Author: hamar
Created: 2011-12-16 14:32:37+00:00
State: open

2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: == EXCEPTION ==
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: :Missing plotting lib: Failed to create //.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/Core/DISET/private/Service.py", line 133, in _loadHandler
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: locals(), handlerName )
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT:
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/AccountingSystem/Service/ReportGeneratorHandler.py", line 11, in
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: from DIRAC.AccountingSystem.private.MainReporter import MainReporter
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT:
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/AccountingSystem/private/MainReporter.py", line 7, in
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: from DIRAC.AccountingSystem.private.Plotters import gPlottersList
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT:
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/AccountingSystem/private/Plotters/__init__.py", line 2, in
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: from DIRAC.AccountingSystem.private.Plotters.BaseReporter import BaseReporter as myBaseReporter
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT:
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/AccountingSystem/private/Plotters/BaseReporter.py", line 6, in
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: from DIRAC.AccountingSystem.private.Plots import generateNoDataPlot, generateTimedStackedBarPlot, generateQualityPlot, generateCumulativePlot, generatePiePlot, generateStackedLinePlot
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT:
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: File "/opt/dirac/pro/DIRAC/AccountingSystem/private/Plots.py", line 5, in
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: raise Exception( "Missing plotting lib: %s" % str( plotException ) )
2011-12-16 10:45:46 UTC Accounting/ReportGenerator EXCEPT: ===============
2011-12-16 10:45:46 UTC Accounting/ReportGenerator ERROR: Can't import handler: Missing plotting lib: Failed to create //.matplotlib; consider setting MPLCONFIGDIR to a writable directory for matplotlib configuration data
3:27

To resolve the problem I am creating /home/dirac/.matplotlib and exporting the variable in the bashrc