Error loading Obspy's default colormap

Dear all;

There’s a problem with obspy.imaging.cm, I get the next errors:

from obspy.imaging.cm import obspy_sequential
Traceback (most recent call last):
File “”, line 1, in
ImportError: No module named cm

Although, I do have cm.py:

~/anaconda/lib/python2.7/site-packages/obspy/imaging

README.txt init.pyc beachball.pyc cm.pyc maps.py mopad_wrapper.py scripts source.pyc spectrogram.pyc util.py waveform.py
init.py beachball.py cm.py data maps.pyc mopad_wrapper.pyc source.py spectrogram.py tests util.pyc waveform.pyc

Any idea how to fix this?

Thanks in advance,

-Esteban

Graduate Student in Seismology
University of California Santa Cruz
Santa Cruz, California 95064
echavess@ucsc.edu / ec.sibaja@gmail.com

Hi Esteban,

since you're on anaconda, before trying anything else, can you please
uninstall obspy (verifying that this directory you showed is gone) and
then reinstall obspy?

cheers,
Tobias

Another simple thing to check:

$ python -c "import obspy; print(obspy.__file__)"

will show you the path of loaded ObsPy installation. Maybe you have more
than one ObsPy installation?