On Sunday 23 March 2008 2:23:36 pm Brook Lin wrote:
> Hi All,
>
> I installed the matplotlib0.91.2 on 64-bit Ubuntu7.04 system. I ran an
> example code and got the error:
>
>   File "testplot.py", line 2, in <module>
>     from pylab import *
>   File "/usr/lib/python2.5/site-packages/pylab.py", line 1, in <module>
>     from matplotlib.pylab import *
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 639,
> in <module>
>     rcParams = rc_params()
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 562,
> in rc_params
>     fname = matplotlib_fname()
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 513,
> in matplotlib_fname
>     fname = os.path.join(get_configdir(), 'matplotlibrc')
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 207,
> in wrapper
>     ret = func(*args, **kwargs)
>   File "/usr/lib/python2.5/site-packages/matplotlib/__init__.py", line 400,
> 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)
> TypeError: not enough arguments for format string
>
> How can I get it fixed?

We might be in a better position to help if you post the example code.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to