Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 1348, in do_open
h.request(req.get_method(), req.selector, req.data, headers,
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1282, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1328, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1277, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1037, in _send_output
self.send(msg)
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 975, in send
self.connect()
File "/usr/share/miniconda3/envs/test/lib/python3.10/http/client.py", line 1454, in connect
self.sock = self._context.wrap_socket(self.sock,
File "/usr/share/miniconda3/envs/test/lib/python3.10/ssl.py", line 513, in wrap_socket
return self.sslsocket_class._create(
File "/usr/share/miniconda3/envs/test/lib/python3.10/ssl.py", line 1071, in _create
self.do_handshake()
File "/usr/share/miniconda3/envs/test/lib/python3.10/ssl.py", line 1342, in do_handshake
self._sslobj.do_handshake()
ConnectionResetError: [Errno 104] Connection reset by peer
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/core/tests/test_inventory.py", line 717, in test_location_plot_local
inv.plot(method='cartopy', projection='local', resolution='50m',
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/obspy/core/inventory/inventory.py", line 1024, in plot
fig.savefig(outfile)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3272, in savefig
self.canvas.print_figure(fname, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2338, in print_figure
result = print_method(
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2204, in <lambda>
print_method = functools.wraps(meth)(lambda *args, **kwargs: meth(
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 410, in wrapper
return func(*inner_args, **inner_kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 520, in print_png
self._print_pil(filename_or_obj, "png", pil_kwargs, metadata)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 466, in _print_pil
FigureCanvasAgg.draw(self)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 408, in draw
self.figure.draw(self.renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 74, in draw_wrapper
result = draw(artist, renderer, *args, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/figure.py", line 3069, in draw
mimage._draw_list_compositing_images(
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py", line 538, in draw
return super().draw(renderer=renderer, **kwargs)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/axes/_base.py", line 3106, in draw
mimage._draw_list_compositing_images(
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images
a.draw(renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/matplotlib/artist.py", line 51, in draw_wrapper
return draw(artist, renderer)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/mpl/feature_artist.py", line 151, in draw
geoms = self._feature.intersecting_geometries(extent)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/feature/__init__.py", line 303, in intersecting_geometries
return super().intersecting_geometries(extent)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/feature/__init__.py", line 106, in intersecting_geometries
return (geom for geom in self.geometries() if
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/feature/__init__.py", line 285, in geometries
path = shapereader.natural_earth(resolution=self.scale,
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/io/shapereader.py", line 283, in natural_earth
return ne_downloader.path(format_dict)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/io/__init__.py", line 203, in path
result_path = self.acquire_resource(target_path, format_dict)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/io/shapereader.py", line 337, in acquire_resource
shapefile_online = self._urlopen(url)
File "/usr/share/miniconda3/envs/test/lib/python3.10/site-packages/cartopy/io/__init__.py", line 242, in _urlopen
return urlopen(url)
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 216, in urlopen
return opener.open(url, data, timeout)
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 519, in open
response = self._open(req, data)
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 536, in _open
result = self._call_chain(self.handle_open, protocol, protocol +
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 496, in _call_chain
result = func(*args)
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 1391, in https_open
return self.do_open(http.client.HTTPSConnection, req,
File "/usr/share/miniconda3/envs/test/lib/python3.10/urllib/request.py", line 1351, in do_open
raise URLError(err)
urllib.error.URLError: <urlopen error [Errno 104] Connection reset by peer>