Traceback (most recent call last):
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 1346, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 1285, in request
self._send_request(method, url, body, headers, encode_chunked)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 1331, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 1280, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 1040, in _send_output
self.send(msg)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 980, in send
self.connect()
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 1447, in connect
super().connect()
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\http\client.py", line 946, in connect
self.sock = self._create_connection(
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\socket.py", line 823, in create_connection
for res in getaddrinfo(host, port, 0, SOCK_STREAM):
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\socket.py", line 954, in getaddrinfo
for res in _socket.getaddrinfo(host, port, family, type, proto, flags):
socket.gaierror: [Errno 11001] getaddrinfo failed
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\obspy\core\tests\test_inventory.py", line 717, in test_location_plot_local
inv.plot(method='cartopy', projection='local', resolution='50m',
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\obspy\core\inventory\inventory.py", line 1031, in plot
fig.savefig(outfile)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\figure.py", line 3046, in savefig
self.canvas.print_figure(fname, **kwargs)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\backend_bases.py", line 2319, in print_figure
result = print_method(
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\backend_bases.py", line 1648, in wrapper
return func(*args, **kwargs)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\_api\deprecation.py", line 415, in wrapper
return func(*inner_args, **inner_kwargs)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\backends\backend_agg.py", line 540, in print_png
FigureCanvasAgg.draw(self)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\backends\backend_agg.py", line 436, in draw
self.figure.draw(self.renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\artist.py", line 73, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\figure.py", line 2837, in draw
mimage._draw_list_compositing_images(
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\image.py", line 132, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\mpl\geoaxes.py", line 558, in draw
return matplotlib.axes.Axes.draw(self, renderer=renderer, **kwargs)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\axes\_base.py", line 3091, in draw
mimage._draw_list_compositing_images(
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\image.py", line 132, in _draw_list_compositing_images
a.draw(renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\matplotlib\artist.py", line 50, in draw_wrapper
return draw(artist, renderer)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\mpl\feature_artist.py", line 150, in draw
geoms = self._feature.intersecting_geometries(extent)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\feature\__init__.py", line 297, in intersecting_geometries
return super().intersecting_geometries(extent)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\feature\__init__.py", line 106, in intersecting_geometries
return (geom for geom in self.geometries() if
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\feature\__init__.py", line 279, in geometries
path = shapereader.natural_earth(resolution=self.scale,
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\io\shapereader.py", line 279, in natural_earth
return ne_downloader.path(format_dict)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\io\__init__.py", line 203, in path
result_path = self.acquire_resource(target_path, format_dict)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\io\shapereader.py", line 333, in acquire_resource
shapefile_online = self._urlopen(url)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\site-packages\cartopy\io\__init__.py", line 242, in _urlopen
return urlopen(url)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 214, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 517, in open
response = self._open(req, data)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 534, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 494, in _call_chain
result = func(*args)
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 1389, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "C:\Users\TANGY0A\Anaconda3\envs\obspy\lib\urllib\request.py", line 1349, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 11001] getaddrinfo failed>