error on trying to call in pylab

Hi,

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:

    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 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 now get a new error:

from matplotlib import mpl # pulls in most modules
  File "C:\Python25\Lib\site-packages\matplotlib\mpl.py", line 1, in
<module>
    from matplotlib import artist
  File "C:\Python25\Lib\site-packages\matplotlib\artist.py", line 3, in
<module>
    import matplotlib.cbook as cbook
AttributeError: 'module' object has no attribute 'cbook'

Any advice would be appreciated, I can't understand what is different
between the two systems. My home pc is vista, while work is XP pro. Python
2.5.2, scipy, numpy and matplotlib all installed from binaries.

Thanks,

Dave

···

--
View this message in context: http://www.nabble.com/error-on-trying-to-call-in-pylab-tp20012574p20012574.html
Sent from the matplotlib - users mailing list archive at Nabble.com.