-
Notifications
You must be signed in to change notification settings - Fork 377
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
Cartopy crashes on Google Colab notebook: URLError: <urlopen error [Errno -3] Temporary failure in name resolution> #1869
Comments
Hi, I'm also facing this issue. My code is much the same as the above. Seems like EDIT: On Ubuntu 20.04 EDIT2: @HaynesStephens nvkelso/natural-earth-vector#581 |
Hey, I am having the same poblem. It seems like they have been redirecting the pages... |
Closing as a duplicate. There are multiple solutions given in the linked issues. We are planning a release soon that will fix this as well. |
Hi, I tried the Now I have a new error as I am trying to import cartopy:
|
@HaynesStephens Try restarting the notebook, assuming the |
You can avoid
|
@dopplershift I tried restarting the notebook, @rcomer I gave that a try as well, installing cartopy using the following code from a tutorial
The last line of code seems to run forever. I've let it go on for several minutes now and it still hasn't completed execution. Has this ever been an issue on your end in Colab Notebooks before? |
Update @rcomer : the i.e. replicating this code using the downloaded features
|
@HaynesStephens glad the download made it in the end! The plotting should just work now, as the download script places the files where Cartopy looks by default. Normally Cartopy would only download the files the first time you use them, and save them in the same place. |
Although it looks like you will also need to do
for your example. |
Woah all works now, thank you! |
Thanks all, it works for me too :) |
Required to fix old download URLs (SciTools/cartopy#1869)
Description
Trying to run Cartopy on this Colab notebook: https://colab.research.google.com/drive/12AbSjq5gJd5mhcZDplH-WFl9vtUFc-wi#scrollTo=gsPHPY_xxmeL
However, any attempt to download coastlines or features leads to a URLError. Is this simply because the website, https://naciscdn.org/, is down? Or perhaps there's some discrepancy between Python versions? I'm not sure what the cause is here, but is there any effort to fix this issue?
Code to reproduce
Traceback
Full environment definition
Operating system
Google Colab on Google Chrome Browser
Cartopy version
Not sure. 0.19.0?
conda list
pip list
The text was updated successfully, but these errors were encountered: