GeoscienceAustralia / tcrm

A statistical-parametric model for assessing wind hazard from tropical cyclones
http://geoscienceaustralia.github.io/tcrm
Other
80 stars 52 forks source link

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

Closed mayank072015 closed 2 years ago

mayank072015 commented 2 years ago

how to fix this

mayank072015 commented 2 years ago

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 commented 2 years ago

how to solve this error

mayank072015 commented 2 years ago

/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 commented 2 years ago

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.