Problems with MPLCONFIGDIR

Hi everybody,

Could you help me with this problem: I can import matplotlib from the
shell, it displayed this

import matplotlib

Traceback (most recent call last):

File “”, line 1, in

File “init.py”, line 696, in

rcParams = rc_params()
File “init.py”, line 617, in rc_params
fname = matplotlib_fname()
File “init.py”, line 567, in
matplotlib_fname
fname = os.path.join(get_configdir(), ‘matplotlibrc’)
File “init.py”, line 240, in wrapper
ret = func(*args, **kwargs)
File “init.py”, line 436, in
_get_configdir
raise RuntimeError("’%s’ is not a writable dir; you must set
%s/.matplotlib to be a writable dir. You can also set environment
variable MPLCONFIGDIR to any writable directory where you want
matplotlib data stored "% (h, h))
RuntimeError: ‘/home/ionek’ is not a writable dir; you must set .matplotlib to be a writable dir. You
can also set environment variable MPLCONFIGDIR to any writable
directory where you want matplotlib data stored

I don’t know what to do.
Best regards
Luis Omar

···

usr/lib/python2.6/dist-packages/matplotlib//
usr/lib/python2.6/dist-packages/matplotlib//
usr/lib/python2.6/dist-packages/matplotlib//
usr/lib/python2.6/dist-packages/matplotlib//
usr/lib/python2.6/dist-packages/matplotlib//
home/ionek//