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

Basemap not imported correctly: matplotlib import error? #17

Open
drphilmarshall opened this issue Jul 15, 2016 · 4 comments
Open

Basemap not imported correctly: matplotlib import error? #17

drphilmarshall opened this issue Jul 15, 2016 · 4 comments

Comments

@drphilmarshall
Copy link
Contributor

Not sure if this is a syntax or import error - it says the latter but I don't know the correct spelling. I'm getting this from the binder instance - do we need to add matplotlib to the requirements.txt, do you think?

from mpl_toolkits.basemap import Basemap
from matplotlib.collections import PolyCollection

ImportError Traceback (most recent call last)
in ()
----> 1 from mpl_toolkits.basemap import Basemap
2 from matplotlib.collections import PolyCollection

ImportError: No module named basemap

@fjaviersanchez
Copy link
Owner

yes, we should add mpl_toolkits in requirements.txt (conda install basemap)

@drphilmarshall
Copy link
Contributor Author

Go for it! :-)

On Fri, Jul 15, 2016 at 4:48 PM, fjaviersanchez [email protected]
wrote:

yes, we should add mpl_toolkits in requirements.txt (conda install basemap
)


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#17 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AArY93cVtUxhLnaBcWM4efHgNIzJLq_Bks5qV6vpgaJpZM4JNf6t
.

@fjaviersanchez
Copy link
Owner

fjaviersanchez commented Jul 16, 2016

I added RUN conda install basemap on Dockerfile. Unfortunately the disk of the binder server was full when I tried to build the notebook and the process is halted. However, there is a built version in which everything works except for the basemap part. To make it work you can add before that cell !conda install basemap -y and it will install the package and run without any trouble. Could you please try if you can build it?

@drphilmarshall
Copy link
Contributor Author

I think this can now be closed - see #18.

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