Traceback (most recent call last):
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 1354, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 1256, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 1302, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 1251, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 1011, in _send_output
self.send(msg)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 951, in send
self.connect()
File "/Users/runner/miniconda3/envs/test/lib/python3.8/http/client.py", line 1425, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/Users/runner/miniconda3/envs/test/lib/python3.8/ssl.py", line 500, in wrap_socket
return self.sslsocket_class._create(
File "/Users/runner/miniconda3/envs/test/lib/python3.8/ssl.py", line 1040, in _create
self.do_handshake()
File "/Users/runner/miniconda3/envs/test/lib/python3.8/ssl.py", line 1309, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 54] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/obspy/core/tests/test_inventory.py", line 699, in test_location_plot_global
inv.plot(method='cartopy', outfile=image_path)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/obspy/core/inventory/inventory.py", line 1024, in plot
fig.savefig(outfile)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/figure.py", line 2311, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2210, in print_figure
result = print_method(
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 1639, in wrapper
return func(*args, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 509, in print_png
FigureCanvasAgg.draw(self)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py", line 407, in draw
self.figure.draw(self.renderer)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw
mimage._draw_list_compositing_images(
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw
return super().draw(renderer=renderer, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper
return func(*inner_args, **inner_kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2747, in draw
mimage._draw_list_compositing_images(renderer, self, artists)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper
return draw(artist, renderer, *args, **kwargs)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/mpl/feature_artist.py", line 151, in draw
geoms = self._feature.intersecting_geometries(extent)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/feature/__init__.py", line 303, in intersecting_geometries
return super().intersecting_geometries(extent)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/feature/__init__.py", line 106, in intersecting_geometries
return (geom for geom in self.geometries() if
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/feature/__init__.py", line 285, in geometries
path = shapereader.natural_earth(resolution=self.scale,
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/io/shapereader.py", line 283, in natural_earth
return ne_downloader.path(format_dict)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/io/__init__.py", line 203, in path
result_path = self.acquire_resource(target_path, format_dict)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/io/shapereader.py", line 337, in acquire_resource
shapefile_online = self._urlopen(url)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/site-packages/cartopy/io/__init__.py", line 242, in _urlopen
return urlopen(url)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 525, in open
response = self._open(req, data)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 542, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 502, in _call_chain
result = func(*args)
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 1397, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/Users/runner/miniconda3/envs/test/lib/python3.8/urllib/request.py", line 1357, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 54] Connection reset by peer>