Open danjampro opened 3 years ago
What version of Shapely do you have installed? How did you install that?
I'm getting a slightly different error using the same example. Everything goes well until the plt.show() command
`Shell is not a LinearRing Shell is not a LinearRing /Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/mpl/feature_artist.py:152: UserWarning: Unable to determine extent. Defaulting to global. warnings.warn('Unable to determine extent. Defaulting to global.') Shell is not a LinearRing Traceback (most recent call last):
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/IPython/core/formatters.py", line 341, in call return printer(obj)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/IPython/core/pylabtools.py", line 248, in
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/IPython/core/pylabtools.py", line 132, in print_figure fig.canvas.print_figure(bytes_io, **kw)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/backend_bases.py", line 2193, in print_figure self.figure.draw(renderer)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/figure.py", line 1863, in draw mimage._draw_list_compositing_images(
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 517, in draw return matplotlib.axes.Axes.draw(self, renderer=renderer, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/cbook/deprecation.py", line 411, in wrapper return func(*inner_args, **inner_kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/axes/_base.py", line 2748, in draw mimage._draw_list_compositing_images(renderer, self, artists)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/image.py", line 131, in _draw_list_compositing_images a.draw(renderer)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/mpl/feature_artist.py", line 216, in draw c.draw(renderer)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/collections.py", line 931, in draw Collection.draw(self, renderer)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/artist.py", line 41, in draw_wrapper return draw(artist, renderer, *args, **kwargs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/collections.py", line 348, in draw transform, transOffset, offsets, paths = self._prepare_points()
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/collections.py", line 325, in _prepare_points paths = [transform.transform_path_non_affine(path)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/collections.py", line 325, in
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/matplotlib/transforms.py", line 2361, in transform_path_non_affine return self._a.transform_path_non_affine(path)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py", line 193, in transform_path_non_affine proj_geom = self.target_projection.project_geometry(
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/crs.py", line 201, in project_geometry return getattr(self, method_name)(geometry, src_crs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/crs.py", line 306, in _project_multiline r = self._project_line_string(geom, src_crs)
File "/Users/deborahkhider/opt/anaconda3/envs/pyleoclim/lib/python3.8/site-packages/cartopy/crs.py", line 207, in _project_line_string return cartopy.trace.project_linear(geometry, src_crs, self)
File "lib/cartopy/trace.pyx", line 625, in cartopy.trace.project_linear
File "lib/cartopy/trace.pyx", line 72, in cartopy.trace.geos_from_shapely
TypeError: an integer is required
<Figure size 432x288 with 1 Axes>`
I'm using Shapely 1.7.1
Description
Hello, I am unable to run the basic example found here after installing following the given instructions. Installing from source using
pip
does not help.I am using Mac OSX 11.3.1.
Traceback: