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 <module>
from pylab import *
File "C:\Python25\Lib\site-packages\pylab.py", line 1, in <module>
from matplotlib.pylab import *
File "C:\Python25\lib\site-packages\matplotlib\__init__.py", line 677, in
<module>
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
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users