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

urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution #116

Closed
mayank072015 opened this issue Sep 23, 2021 · 4 comments

Comments

@mayank072015
Copy link

how to fix this

@mayank072015
Copy link
Author

2021-09-23 22:03:50: shapefile_online = self._urlopen(url)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/site-packages/cartopy/io/init.py", line 261, in _urlopen
2021-09-23 22:03:50: return urlopen(url)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 222, in urlopen
2021-09-23 22:03:50: return opener.open(url, data, timeout)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 525, in open
2021-09-23 22:03:50: response = self._open(req, data)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 543, in _open
2021-09-23 22:03:50: '_open', req)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 503, in _call_chain
2021-09-23 22:03:50: result = func(*args)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 1378, in http_open
2021-09-23 22:03:50: return self.do_open(http.client.HTTPConnection, req)
2021-09-23 22:03:50: File "/home/mayank/anaconda2/envs/tcrm/lib/python3.7/urllib/request.py", line 1352, in do_open
2021-09-23 22:03:50: raise URLError(err)
2021-09-23 22:03:50: urllib.error.URLError: <urlopen error [Errno -3] Temporary failure in name resolution>

@mayank072015
Copy link
Author

how to solve this error

@mayank072015
Copy link
Author

/home/mayank/anaconda2/envs/tcrm/lib/python3.7/site-packages/cartopy/mpl/geoaxes.py:388: MatplotlibDeprecationWarning:
The 'inframe' parameter of draw() was deprecated in Matplotlib 3.3 and will be removed two minor releases later. Use Axes.redraw_in_frame() instead. If any parameter follows 'inframe', they should be passed as keyword, not positionally.
inframe=inframe)
/home/mayank/anaconda2/envs/tcrm/lib/python3.7/site-packages/cartopy/io/init.py:260: DownloadWarning: Downloading: http://naciscdn.org/naturalearth/10m/physical/ne_10m_coastline.zip
warnings.warn('Downloading: {}'.format(url), DownloadWarning)

@wcarthur
Copy link
Member

wcarthur commented Oct 1, 2021

Using cartopy for the first time will require a download of a dataset to support plotting routines (geographic boundaries). It is possible that the first error reported is due to firewalls blocking access from python. The files can be downloaded manually.
The following links may be useful:

The MatplotlibDeprecationWarning is due to an issue in the cartopy package. Updating cartopy to v0.19 should resolve the warning.

@wcarthur wcarthur closed this as completed Oct 1, 2021
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