Unable to run SimpleCV.__init__ because of RuntimeError

asked 2014-02-22 22:20:23 -0500

anonymous user

Anonymous

Here's the error I received. Does anyone know of a solution?

brad@homeComp:~$ python -m SimpleCV.__init__
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 151, in _run_module_as_main
mod_name, loader, code, fname = _get_module_details(mod_name)
  File "/usr/lib/python2.7/runpy.py", line 101, in _get_module_details
loader = get_loader(mod_name)
  File "/usr/lib/python2.7/pkgutil.py", line 464, in get_loader
return find_loader(fullname)
  File "/usr/lib/python2.7/pkgutil.py", line 474, in find_loader
for importer in iter_importers(fullname):
  File "/usr/lib/python2.7/pkgutil.py", line 430, in iter_importers
__import__(pkg)
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/__init__.py", line 3, in <module>
from SimpleCV.base import *
  File "/usr/local/lib/python2.7/dist-packages/SimpleCV/base.py", line 24, in <module>
import scipy.cluster.vq as scv    
  File "/usr/lib/python2.7/dist-packages/scipy/cluster/__init__.py", line 9, in <module>
import vq, hierarchy
  File "/usr/lib/python2.7/dist-packages/scipy/cluster/hierarchy.py", line 1506, in <module>
import matplotlib
  File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 774, in <module>
rcParams = rc_params()
  File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 692, in rc_params
fname = matplotlib_fname()
  File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 604, in matplotlib_fname
fname = os.path.join(get_configdir(), 'matplotlibrc')
  File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 253, in wrapper
ret = func(*args, **kwargs)
  File "/usr/lib/pymodules/python2.7/matplotlib/__init__.py", line 475, 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, h))
    RuntimeError: '/home/brad' is not a writable dir; you must set /home/brad/.matplotlib to be a writable dir.  You can also set environment variable MPLCONFIGDIR to any writable directory where you want matplotlib data stored

</module></module></module></module></module>

edit retag flag offensive close merge delete