Hi,
I am a fairly new Python user and am trying to set up matplot lib to work with
scipy as an alternative to matlab. I
installed matplotlib on my home pc with no problems but I followed the same
protocol on my work pc and got the following error when I tried to call in
“From pylab import *” :
Traceback (most recent call last):
File “<pyshell#0>”, line 1, in
from pylab import *
File “C:\Python25\Lib\site-packages\pylab.py”, line 1, in
from matplotlib.pylab import *
File “C:\Python25\lib\site-packages\matplotlib_init_.py”,
line 677, in
rcParams = rc_params()
File “C:\Python25\lib\site-packages\matplotlib_init_.py”,
line 598, in
rc_params
fname = matplotlib_fname()
File “C:\Python25\lib\site-packages\matplotlib_init_.py”,
line 548, in
matplotlib_fname
fname = os.path.join(get_configdir(), ‘matplotlibrc’)
File “C:\Python25\lib\site-packages\matplotlib_init_.py”,
line 242, in
wrapper
ret = func(*args, **kwargs)
File “C:\Python25\lib\site-packages\matplotlib_init_.py”,
line 438, in
_get_configdir
raise RuntimeError("Failed to create %s/.matplotlib; consider
setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data"%h)
RuntimeError: Failed to create C:/.matplotlib; consider setting
MPLCONFIGDIR to a writable directory for matplotlib configuration data
…I checked and as far as I can tell, none of the python directories are
read-only. I also
followed the instructions on the thread ‘runtime error’ which dealt with I
think the same problems, but after patching the cutils.py (line 79) and the
init (line 435) files, I still have the same problem.
Any advice would be apreciated. My home pc (where it works fine) is Vista, while work is XP pro. Python
2.5.2, scipy, numpy and matplotlib all installed from binaries. I also tried the enthought binary
installation with the same result.
Thanks,
Dave