Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImportError: No module named 'cm' #38

Closed
andrewgrapentin opened this issue Nov 16, 2015 · 2 comments
Closed

ImportError: No module named 'cm' #38

andrewgrapentin opened this issue Nov 16, 2015 · 2 comments

Comments

@andrewgrapentin
Copy link

Installing from PyPi did not work, so I installed from github as the following:

wget https://github.com/matplotlib/cmocean/archive/master.zip
unzip master.zip
pip install --user cmocean-master/

Then, the error message on import:

In [1]: import cmocean
---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
<ipython-input-1-19d3b496f197> in <module>()
----> 1 import cmocean

/Users/andrew/Library/Python/3.5/lib/python/site-packages/cmocean/__init__.py in <module>()
      7 
      8 # from cmocean import *
----> 9 import cm
     10 import tools
     11 import plots

ImportError: No module named 'cm'

Nice work on the documentation, looks great!

@kthyng
Copy link
Contributor

kthyng commented Nov 16, 2015

Ah, sorry about this trouble. I really thought I had gotten it up on PyPI successfully. I will go through the process again and try to get it right.

But, in the meantime, you should be able to install with the following:

git clone https://github.com/matplotlib/cmocean.git
cd cmocean
pip install .

@kthyng
Copy link
Contributor

kthyng commented Nov 17, 2015

This is working on PyPI now! For some reason I had to delete the old version I had uploaded because it was being used instead of being hidden. It isn't present there if you search for it, but it seems to be working nonetheless.

@kthyng kthyng closed this as completed Nov 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants