[AstroPy] CASA Install on Mac 10.6 - Problem with matplolib.

Bhargav Vaidya B.Vaidya@leeds.ac...
Sat Jun 2 05:10:07 CDT 2012


Hello, 

I have recently tried to install CASA 3.4 on my Mac 10.6 Intel 64 bit. from http://casa.nrao.edu/
Its the 19884 version : CASA-intel64b-10.6-19884.dmg. I think its a pre-realease version. 

However I have this error while creating the symbolic links. 

Traceback (most recent call last):
  File "/Applications/CASA.app/Contents/Resources/python/casapy.py", line 93, in <module>
    import matplotlib
  File "/Applications/CASA.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py", line 709, in <module>
    rcParams = rc_params()
  File "/Applications/CASA.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py", line 627, in rc_params
    fname = matplotlib_fname()
  File "/Applications/CASA.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py", line 565, in matplotlib_fname
    fname = os.path.join(get_configdir(), 'matplotlibrc')
  File "/Applications/CASA.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py", line 240, in wrapper
    ret = func(*args, **kwargs)
  File "/Applications/CASA.app/Contents/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/matplotlib/__init__.py", line 428, in _get_configdir
    raise RuntimeError('Could not write to MPLCONFIGDIR="%s"'%configdir)
RuntimeError: Could not write to MPLCONFIGDIR="/Users/bhargavvaidya/.casa"

It seems that there is some problem with the matplotlib compiled and given in the CASA's Python Framework. 
Also now I see the matplotlib version is 0.99 which is too old. Is there any development to use the 1.1.0 version. 

I am using EPD64.Framework as far as Python is concerned. 
Is this  is caused by conflicting Python install versions - the One imported with CASA and that of  EPD... I am not sure? 

Regards
Bhargav Vaidya


More information about the AstroPy mailing list