zclaytor / butterpy

Python simulations of stellar butterfly diagrams and rotational light curves
MIT License
15 stars 5 forks source link

surface_fig.ipynb spots.ortho_animation ReferenceError: IPython is not defined #2

Closed JosephKarpinski closed 3 years ago

JosephKarpinski commented 3 years ago

Running surface_fig.ipynb in Python VScode

ani = spots.ortho_animation(time, lc, interval=200, fig_kw=dict(figsize=(3, 3.6), constrained_layout=True));

ani.save("surface.gif", writer="imagemagick", dpi=200, fps=5)

ReferenceError: IPython is not defined at eval (eval at runCodeHere (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:12595), :967:1) at runCodeHere (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:12595) at t.value (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/vendors~nteract_transforms.bundle.js:2:13027) at Ta (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2416081) at Pa (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2419003) at vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2432081 at Object.t.unstable_runWithPriority (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:25134) at Ms (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2432015) at xs (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2431791) at Es (vscode-webview-resource://d61a6a3c-8d5f-4a1d-bd7e-7b8daa6737b1/file///Users/josephkarpinski/.vscode/extensions/ms-toolsai.jupyter-2021.5.745244803/out/datascience-ui/notebook/commons.initial.bundle.js:2:2431136)

JosephKarpinski commented 3 years ago

Python 3.8.5 64-bit('base': conda) on iMac running Big Sur 11.3

Downloading butterpy-0.1.0-py3-none-any.whl (14 kB) Requirement already satisfied: astropy in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (4.2.1) Requirement already satisfied: tqdm in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (4.50.2) Requirement already satisfied: numpy in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (1.20.2) Requirement already satisfied: pandas in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (1.2.4) Requirement already satisfied: scipy in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (1.6.2) Requirement already satisfied: matplotlib in ./opt/anaconda3/lib/python3.8/site-packages (from butterpy) (3.4.1) Requirement already satisfied: pyerfa in ./opt/anaconda3/lib/python3.8/site-packages (from astropy->butterpy) (1.7.2) Requirement already satisfied: python-dateutil>=2.7.3 in ./opt/anaconda3/lib/python3.8/site-packages (from pandas->butterpy) (2.8.1) Requirement already satisfied: pytz>=2017.3 in ./opt/anaconda3/lib/python3.8/site-packages (from pandas->butterpy) (2021.1) Requirement already satisfied: pyparsing>=2.2.1 in ./opt/anaconda3/lib/python3.8/site-packages (from matplotlib->butterpy) (2.4.7) Requirement already satisfied: kiwisolver>=1.0.1 in ./opt/anaconda3/lib/python3.8/site-packages (from matplotlib->butterpy) (1.3.1) Requirement already satisfied: cycler>=0.10 in ./opt/anaconda3/lib/python3.8/site-packages (from matplotlib->butterpy) (0.10.0) Requirement already satisfied: pillow>=6.2.0 in ./opt/anaconda3/lib/python3.8/site-packages (from matplotlib->butterpy) (8.2.0) Requirement already satisfied: six>=1.5 in ./opt/anaconda3/lib/python3.8/site-packages (from python-dateutil>=2.7.3->pandas->butterpy) (1.15.0) Installing collected packages: butterpy Successfully installed butterpy-0.1.0

conda install -c conda-forge cartopy Collecting package metadata (current_repodata.json): done Solving environment: done

Package Plan

environment location: /Users/josephkarpinski/opt/anaconda3

added / updated specs:

The following packages will be downloaded:

package                    |            build
---------------------------|-----------------
cartopy-0.18.0             |   py38hf1ba7ce_1         1.7 MB
geos-3.8.0                 |       h4a8c4bd_1         898 KB  conda-forge
proj-6.2.1                 |       h773a61f_0        10.0 MB  conda-forge
pyshp-2.1.3                |     pyh44b312d_0          36 KB  conda-forge
shapely-1.7.1              |   py38hb435bde_0         375 KB
------------------------------------------------------------
                                       Total:        13.0 MB

The following NEW packages will be INSTALLED:

cartopy pkgs/main/osx-64::cartopy-0.18.0-py38hf1ba7ce_1 geos conda-forge/osx-64::geos-3.8.0-h4a8c4bd_1 proj conda-forge/osx-64::proj-6.2.1-h773a61f_0 pyshp conda-forge/noarch::pyshp-2.1.3-pyh44b312d_0 shapely pkgs/main/osx-64::shapely-1.7.1-py38hb435bde_0

Proceed ([y]/n)? y

Downloading and Extracting Packages proj-6.2.1 | 10.0 MB | ##################################### | 100% pyshp-2.1.3 | 36 KB | ##################################### | 100% shapely-1.7.1 | 375 KB | ##################################### | 100% geos-3.8.0 | 898 KB | ##################################### | 100% cartopy-0.18.0 | 1.7 MB | ##################################### | 100% Preparing transaction: done Verifying transaction: done Executing transaction: done

JosephKarpinski commented 3 years ago

This may be related to the above issue:

from IPython.display import HTML ani_html = ani.to_jshtml() HTML(ani_html)

TypeError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/_constrained_layout.py in _get_pos_and_bbox(ax, renderer) 452 try: --> 453 tightbbox = ax.get_tightbbox(renderer=renderer, for_layout_only=True) 454 except TypeError:

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in get_tightbbox(self, renderer, call_axes_locator, bbox_extra_artists, for_layout_only) 4487 continue -> 4488 bbox = a.get_tightbbox(renderer) 4489 if (bbox is not None

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in get_tightbbox(self, renderer) 305 """ --> 306 bbox = self.get_window_extent(renderer) 307 if self.get_clip_on():

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in get_window_extent(self, renderer) 304 # cases other than scatter plot legend --> 305 return self.get_datalim(transforms.IdentityTransform()) 306

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in get_datalim(self, transData) 264 if not transform.is_affine: --> 265 paths = [transform.transform_path_non_affine(p) for p in paths] 266 # Don't convert transform to transform.get_affine() here because

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in (.0) 264 if not transform.is_affine: --> 265 paths = [transform.transform_path_non_affine(p) for p in paths] 266 # Don't convert transform to transform.get_affine() here because

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/transforms.py in transform_path_non_affine(self, path) 2395 elif not self._a.is_affine and self._b.is_affine: -> 2396 return self._a.transform_path_non_affine(path) 2397 else:

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py in transform_path_non_affine(self, src_path) 199 for geom in geoms: --> 200 proj_geom = self.target_projection.project_geometry( 201 geom, self.source_projection)

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in project_geometry(self, geometry, src_crs) 217 'type {!r}'.format(geom_type)) --> 218 return getattr(self, method_name)(geometry, src_crs) 219

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_multiline(self, geometry, src_crs) 322 for geom in geometry.geoms: --> 323 r = self._project_line_string(geom, src_crs) 324 if r:

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_line_string(self, geometry, src_crs) 223 def _project_line_string(self, geometry, src_crs): --> 224 return cartopy.trace.project_linear(geometry, src_crs, self) 225

lib/cartopy/trace.pyx in cartopy.trace.project_linear()

lib/cartopy/trace.pyx in cartopy.trace.geos_from_shapely()

TypeError: an integer is required

During handling of the above exception, another exception occurred:

TypeError Traceback (most recent call last)

in 1 from IPython.display import HTML ----> 2 ani_html = ani.to_jshtml() 3 HTML(ani_html) ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py in to_jshtml(self, fps, embed_frames, default_mode) 1400 embed_frames=embed_frames, 1401 default_mode=default_mode) -> 1402 self.save(str(path), writer=writer) 1403 self._html_representation = path.read_text() 1404 ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs, progress_callback) 1171 for anim, d in zip(all_anim, data): 1172 # TODO: See if turning off blit is really necessary -> 1173 anim._draw_next_frame(d, blit=False) 1174 if progress_callback is not None: 1175 progress_callback(frame_number, total_frames) ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py in _draw_next_frame(self, framedata, blit) 1207 self._pre_draw(framedata, blit) 1208 self._draw_frame(framedata) -> 1209 self._post_draw(framedata, blit) 1210 1211 def _init_draw(self): ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/animation.py in _post_draw(self, framedata, blit) 1232 self._blit_draw(self._drawn_artists) 1233 else: -> 1234 self._fig.canvas.draw_idle() 1235 1236 # The rest of the code in this class is to facilitate easy blitting ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py in draw_idle(self, *args, **kwargs) 2053 if not self._is_idle_drawing: 2054 with self._idle_draw_cntx(): -> 2055 self.draw(*args, **kwargs) 2056 2057 def get_width_height(self): ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/backends/backend_agg.py in draw(self) 404 (self.toolbar._wait_cursor_for_draw_cm() if self.toolbar 405 else nullcontext()): --> 406 self.figure.draw(self.renderer) 407 # A GUI class may be need to update a window using this draw, so 408 # don't forget to call the superclass. ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 72 @wraps(draw) 73 def draw_wrapper(artist, renderer, *args, **kwargs): ---> 74 result = draw(artist, renderer, *args, **kwargs) 75 if renderer._rasterizing: 76 renderer.stop_rasterizing() ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs) 49 renderer.start_filter() 50 ---> 51 return draw(artist, renderer, *args, **kwargs) 52 finally: 53 if artist.get_agg_filter() is not None: ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py in draw(self, renderer) 2726 renderer.open_group('figure', gid=self.get_gid()) 2727 if self.get_constrained_layout() and self.axes: -> 2728 self.execute_constrained_layout(renderer) 2729 if self.get_tight_layout() and self.axes: 2730 try: ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py in execute_constrained_layout(self, renderer) 3067 if renderer is None: 3068 renderer = get_renderer(fig) -> 3069 do_constrained_layout(fig, renderer, h_pad, w_pad, hspace, wspace) 3070 3071 def tight_layout(self, *, pad=1.08, h_pad=None, w_pad=None, rect=None): ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/_constrained_layout.py in do_constrained_layout(fig, renderer, h_pad, w_pad, hspace, wspace) 107 # make margins for all the axes and subfigures in the 108 # figure. Add margins for colorbars... --> 109 _make_layout_margins(fig, renderer, h_pad=h_pad, w_pad=w_pad, 110 hspace=hspace, wspace=wspace) 111 _make_margin_suptitles(fig, renderer, h_pad=h_pad, w_pad=w_pad) ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/_constrained_layout.py in _make_layout_margins(fig, renderer, w_pad, h_pad, hspace, wspace) 222 hspace=hspace, wspace=wspace) 223 margin0 = margin.copy() --> 224 pos, bbox = _get_pos_and_bbox(ax, renderer) 225 # the margin is the distance between the bounding box of the axes 226 # and its position (plus the padding from above) ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/_constrained_layout.py in _get_pos_and_bbox(ax, renderer) 453 tightbbox = ax.get_tightbbox(renderer=renderer, for_layout_only=True) 454 except TypeError: --> 455 tightbbox = ax.get_tightbbox(renderer=renderer) 456 457 if tightbbox is None: ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in get_tightbbox(self, renderer, call_axes_locator, bbox_extra_artists, for_layout_only) 4486 # this artist 4487 continue -> 4488 bbox = a.get_tightbbox(renderer) 4489 if (bbox is not None 4490 and 0 < bbox.width < np.inf ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in get_tightbbox(self, renderer) 304 The enclosing bounding box (in figure pixel coordinates). 305 """ --> 306 bbox = self.get_window_extent(renderer) 307 if self.get_clip_on(): 308 clip_box = self.get_clip_box() ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in get_window_extent(self, renderer) 303 # TODO: check to ensure that this does not fail for 304 # cases other than scatter plot legend --> 305 return self.get_datalim(transforms.IdentityTransform()) 306 307 def _prepare_points(self): ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in get_datalim(self, transData) 263 264 if not transform.is_affine: --> 265 paths = [transform.transform_path_non_affine(p) for p in paths] 266 # Don't convert transform to transform.get_affine() here because 267 # we may have transform.contains_branch(transData) but not ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in (.0) 263 264 if not transform.is_affine: --> 265 paths = [transform.transform_path_non_affine(p) for p in paths] 266 # Don't convert transform to transform.get_affine() here because 267 # we may have transform.contains_branch(transData) but not ~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/transforms.py in transform_path_non_affine(self, path) 2394 return path 2395 elif not self._a.is_affine and self._b.is_affine: -> 2396 return self._a.transform_path_non_affine(path) 2397 else: 2398 return self._b.transform_path_non_affine( ~/opt/anaconda3/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py in transform_path_non_affine(self, src_path) 198 199 for geom in geoms: --> 200 proj_geom = self.target_projection.project_geometry( 201 geom, self.source_projection) 202 transformed_geoms.append(proj_geom) ~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in project_geometry(self, geometry, src_crs) 216 raise ValueError('Unsupported geometry ' 217 'type {!r}'.format(geom_type)) --> 218 return getattr(self, method_name)(geometry, src_crs) 219 220 def _project_point(self, point, src_crs): ~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_multiline(self, geometry, src_crs) 321 geoms = [] 322 for geom in geometry.geoms: --> 323 r = self._project_line_string(geom, src_crs) 324 if r: 325 geoms.extend(r.geoms) ~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_line_string(self, geometry, src_crs) 222 223 def _project_line_string(self, geometry, src_crs): --> 224 return cartopy.trace.project_linear(geometry, src_crs, self) 225 226 def _project_linear_ring(self, linear_ring, src_crs): lib/cartopy/trace.pyx in cartopy.trace.project_linear() lib/cartopy/trace.pyx in cartopy.trace.geos_from_shapely() TypeError: an integer is required
zclaytor commented 3 years ago

I was able to reproduce this error. Found a similar issue here.

It turns out "%matploblib notebook" doesn't agree with the animation features. I didn't run into this in Jupyter, so it's interesting that it popped up for VSCode. Anyway, I fixed it by changing "%matplotlib notebook" to "%matplotlib inline" in the first notebook cell. This update has been pushed to the repository. If it works for you, I'll close the issue and update the PyPI package.

JosephKarpinski commented 3 years ago

I’ll try that fix again, I did try the inline option, before posting. Think it produces other errors further down. Will check.

Sent from my iPhone

On May 3, 2021, at 5:47 PM, Zach Claytor @.***> wrote:



I was able to reproduce this error. Found a similar issue herehttps://github.com/nteract/nteract/issues/1359.

It turns out "%matploblib notebook" doesn't agree with the animation features. I didn't run into this in Jupyter, so it's interesting that it popped up for VSCode. Anyway, I fixed it by changing "%matplotlib notebook" to "%matplotlib inline" in the first notebook cell. This update has been pushed to the repository. If it works for you, I'll close the issue and update the PyPI package.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zclaytor/butterpy/issues/2#issuecomment-831556049, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3HMIBLITUQ6DD3EXWKJ5TTL4KV7ANCNFSM44BBW2HA.

JosephKarpinski commented 3 years ago

import numpy as np import pandas as pd import butterpy as bp

%matplotlib notebook

%matplotlib inline

import butterpy print(butterpy.version) 0.1.0

ani = spots.ortho_animation(time, lc, interval=200, fig_kw=dict(figsize=(3, 3.6), constrained_layout=True));

Shell is not a LinearRing

TypeError Traceback (most recent call last) ~/opt/anaconda3/lib/python3.8/site-packages/IPython/core/formatters.py in call(self, obj) 339 pass 340 else: --> 341 return printer(obj) 342 # Finally look for special method names 343 method = get_real_method(obj, self.print_method)

~/opt/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in (fig) 252 jpg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'jpg', kwargs)) 253 if 'svg' in formats: --> 254 svg_formatter.for_type(Figure, lambda fig: print_figure(fig, 'svg', kwargs)) 255 if 'pdf' in formats: 256 pdf_formatter.for_type(Figure, lambda fig: print_figure(fig, 'pdf', **kwargs))

~/opt/anaconda3/lib/python3.8/site-packages/IPython/core/pylabtools.py in print_figure(fig, fmt, bbox_inches, kwargs) 130 FigureCanvasBase(fig) 131 --> 132 fig.canvas.print_figure(bytes_io, kw) 133 data = bytes_io.getvalue() 134 if fmt == 'svg':

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, bbox_inches, pad_inches, bbox_extra_artists, backend, **kwargs) 2228 else suppress()) 2229 with ctx: -> 2230 self.figure.draw(renderer) 2231 2232 if bbox_inches:

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, kwargs) 72 @wraps(draw) 73 def draw_wrapper(artist, renderer, *args, *kwargs): ---> 74 result = draw(artist, renderer, args, kwargs) 75 if renderer._rasterizing: 76 renderer.stop_rasterizing()

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, *kwargs) 49 renderer.start_filter() 50 ---> 51 return draw(artist, renderer, args, **kwargs) 52 finally: 53 if artist.get_agg_filter() is not None:

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/figure.py in draw(self, renderer) 2735 2736 self.patch.draw(renderer) -> 2737 mimage._draw_list_compositing_images( 2738 renderer, self, artists, self.suppressComposite) 2739

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 130 if not_composite or not has_images: 131 for a in artists: --> 132 a.draw(renderer) 133 else: 134 # Composite any adjacent images together

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, *kwargs) 49 renderer.start_filter() 50 ---> 51 return draw(artist, renderer, args, **kwargs) 52 finally: 53 if artist.get_agg_filter() is not None:

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py in draw(self, renderer, kwargs) 477 self._done_img_factory = True 478 --> 479 return matplotlib.axes.Axes.draw(self, renderer=renderer, kwargs) 480 481 def _update_title_position(self, renderer):

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, *kwargs) 49 renderer.start_filter() 50 ---> 51 return draw(artist, renderer, args, **kwargs) 52 finally: 53 if artist.get_agg_filter() is not None:

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/_api/deprecation.py in wrapper(inner_args, inner_kwargs) 429 else deprecation_addendum, 430 kwargs) --> 431 return func(inner_args, **inner_kwargs) 432 433 return wrapper

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe) 2923 renderer.stop_rasterizing() 2924 -> 2925 mimage._draw_list_compositing_images(renderer, self, artists) 2926 2927 renderer.close_group('axes')

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/image.py in _draw_list_compositing_images(renderer, parent, artists, suppress_composite) 130 if not_composite or not has_images: 131 for a in artists: --> 132 a.draw(renderer) 133 else: 134 # Composite any adjacent images together

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, *kwargs) 49 renderer.start_filter() 50 ---> 51 return draw(artist, renderer, args, **kwargs) 52 finally: 53 if artist.get_agg_filter() is not None:

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in draw(self, renderer) 350 self.update_scalarmappable() 351 --> 352 transform, transOffset, offsets, paths = self._prepare_points() 353 354 gc = renderer.new_gc()

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in _prepare_points(self) 327 328 if not transform.is_affine: --> 329 paths = [transform.transform_path_non_affine(path) 330 for path in paths] 331 transform = transform.get_affine()

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/collections.py in (.0) 327 328 if not transform.is_affine: --> 329 paths = [transform.transform_path_non_affine(path) 330 for path in paths] 331 transform = transform.get_affine()

~/opt/anaconda3/lib/python3.8/site-packages/matplotlib/transforms.py in transform_path_non_affine(self, path) 2394 return path 2395 elif not self._a.is_affine and self._b.is_affine: -> 2396 return self._a.transform_path_non_affine(path) 2397 else: 2398 return self._b.transform_path_non_affine(

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py in transform_path_non_affine(self, src_path) 198 199 for geom in geoms: --> 200 proj_geom = self.target_projection.project_geometry( 201 geom, self.source_projection) 202 transformed_geoms.append(proj_geom)

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in project_geometry(self, geometry, src_crs) 216 raise ValueError('Unsupported geometry ' 217 'type {!r}'.format(geom_type)) --> 218 return getattr(self, method_name)(geometry, src_crs) 219 220 def _project_point(self, point, src_crs):

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_multiline(self, geometry, src_crs) 321 geoms = [] 322 for geom in geometry.geoms: --> 323 r = self._project_line_string(geom, src_crs) 324 if r: 325 geoms.extend(r.geoms)

~/opt/anaconda3/lib/python3.8/site-packages/cartopy/crs.py in _project_line_string(self, geometry, src_crs) 222 223 def _project_line_string(self, geometry, src_crs): --> 224 return cartopy.trace.project_linear(geometry, src_crs, self) 225 226 def _project_linear_ring(self, linear_ring, src_crs):

lib/cartopy/trace.pyx in cartopy.trace.project_linear()

lib/cartopy/trace.pyx in cartopy.trace.geos_from_shapely()

TypeError: an integer is required

JosephKarpinski commented 3 years ago

import butterpy print(butterpy.version) 0.1.0

import matplotlib print(matplotlib.version) 3.4.1

import numpy print(numpy.version) 1.20.2

import pandas print(pandas.version) 1.2.4

zclaytor commented 3 years ago

Thanks for the helpful feedback. I can't reproduce the error using the same package plan on Ubuntu. I'm wondering if the problem is in the pre-built cartopy dependencies for MacOS.

I can think of 2 things that might be helpful:

  1. See if cartopy 0.19.0 is available. If you need to, you could try creating a fresh conda environment, and cartopy 0.19.0 should install by default.
  2. If that doesn't work, try following the building from source instructions for cartopy. I'm not sure if this will fix the issue but it could be worth trying.

If neither of those works, I'll change the package OS requirement to Linux-only until I can run further tests.

JosephKarpinski commented 3 years ago

import cartopy print(cartopy.version) 0.18.0

No luck on cartopy 0.19.0

iMac ~ % pip3 install cartopy --upgrade Collecting cartopy Downloading Cartopy-0.19.0.post1.tar.gz (12.1 MB) |████████████████████████████████| 12.1 MB 4.7 MB/s Installing build dependencies ... done Getting requirements to build wheel ... done Preparing wheel metadata ... done Requirement already satisfied, skipping upgrade: numpy>=1.13.3 in ./opt/anaconda3/lib/python3.8/site-packages (from cartopy) (1.20.2) Requirement already satisfied, skipping upgrade: pyshp>=2 in ./opt/anaconda3/lib/python3.8/site-packages (from cartopy) (2.1.3) Requirement already satisfied, skipping upgrade: shapely>=1.5.6 in ./opt/anaconda3/lib/python3.8/site-packages (from cartopy) (1.7.1) Building wheels for collected packages: cartopy Building wheel for cartopy (PEP 517) ... error ERROR: Command errored out with exit status 1: command: /Users/josephkarpinski/opt/anaconda3/bin/python /Users/josephkarpinski/opt/anaconda3/lib/python3.8/site-packages/pip/_vendor/pep517/_in_process.py build_wheel /var/folders/39/hmv9hpy10cg6cx015773lbtw0000gn/T/tmpeh332b9o cwd: /private/var/folders/39/hmv9hpy10cg6cx015773lbtw0000gn/T/pip-install-x1b3dfgg/cartopy Complete output (231 lines): running bdist_wheel running build running build_py creating build creating build/lib.macosx-10.9-x86_64-3.8 creating build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/_version.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/_epsg.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/util.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/crs.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/img_transform.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy copying lib/cartopy/vector_transform.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy creating build/lib.macosx-10.9-x86_64-3.8/cartopy/sphinxext copying lib/cartopy/sphinxext/summarise_package.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/sphinxext copying lib/cartopy/sphinxext/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/sphinxext creating build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/img_tiles.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/shapereader.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/img_nest.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/srtm.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io copying lib/cartopy/io/ogc_clients.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/conftest.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_features.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_coding_standards.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_img_nest.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_coastline.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_geodesic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_shapereader.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_vector_transform.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_line_string.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_util.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_crs_transform_vectors.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_polygon.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_linear_ring.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_img_tiles.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_img_transform.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests copying lib/cartopy/tests/test_crs.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests creating build/lib.macosx-10.9-x86_64-3.8/cartopy/geodesic copying lib/cartopy/geodesic/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/geodesic creating build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/patch.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/slippy_image_artist.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/style.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/feature_artist.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/clip_path.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/geoaxes.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/geocollection.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/ticker.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/contour.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl copying lib/cartopy/mpl/gridliner.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/mpl creating build/lib.macosx-10.9-x86_64-3.8/cartopy/feature copying lib/cartopy/feature/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/feature copying lib/cartopy/feature/nightshade.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/feature creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/io copying lib/cartopy/tests/io/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/io copying lib/cartopy/tests/io/test_downloaders.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/io copying lib/cartopy/tests/io/test_ogc_clients.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/io copying lib/cartopy/tests/io/test_srtm.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/io creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/conftest.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_plots.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_features.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_images.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_set_extent.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_nightshade.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_shapely_to_mpl.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_gridliner.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_ticker.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_patch.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_quiver.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_style.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_img_transform.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_web_services.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_caching.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_crs.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_contour.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_ticks.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_axes.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_pseudo_color.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_examples.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_feature_artist.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl copying lib/cartopy/tests/mpl/test_mpl_integration.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/feature copying lib/cartopy/tests/feature/test_nightshade.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/feature copying lib/cartopy/tests/feature/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/feature creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_orthographic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_eckert.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_robinson.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_mercator.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_rotated_geodetic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_geostationary.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_rotated_pole.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_sinusoidal.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_equidistant_conic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_nearside_perspective.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/init.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_miller.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_mollweide.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_interrupted_goode_homolosine.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_lambert_conformal.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_lambert_azimuthal_equal_area.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_transverse_mercator.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_equal_earth.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_utm.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_albers_equal_area.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/helpers.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_azimuthal_equidistant.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_gnomonic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs copying lib/cartopy/tests/crs/test_stereographic.py -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/crs creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks copying lib/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_no_transform.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks copying lib/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_cylindrical.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks copying lib/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xyticks.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks copying lib/cartopy/tests/mpl/baseline_images/mpl/test_ticks/yticks_no_transform.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks copying lib/cartopy/tests/mpl/baseline_images/mpl/test_ticks/xticks_cylindrical.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_ticks creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images copying lib/cartopy/tests/mpl/baseline_images/mpl/test_images/imshow_natural_earth_ortho.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images copying lib/cartopy/tests/mpl/baseline_images/mpl/test_images/image_nest.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images copying lib/cartopy/tests/mpl/baseline_images/mpl/test_images/image_merge.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images copying lib/cartopy/tests/mpl/baseline_images/mpl/test_images/web_tiles.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images copying lib/cartopy/tests/mpl/baseline_images/mpl/test_images/imshow_regional_projected.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_images creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_web_services copying lib/cartopy/tests/mpl/baseline_images/mpl/test_web_services/wms.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_web_services copying lib/cartopy/tests/mpl/baseline_images/mpl/test_web_services/wmts.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_web_services creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels_tight.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner1.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels_bbox_style.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels_inline_usa.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner copying lib/cartopy/tests/mpl/baseline_images/mpl/test_gridliner/gridliner_labels_inline.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_gridliner creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_img_transform copying lib/cartopy/tests/mpl/baseline_images/mpl/test_img_transform/regrid_image.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_img_transform creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_shapely_to_mpl copying lib/cartopy/tests/mpl/baseline_images/mpl/test_shapely_to_mpl/poly_interiors.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_shapely_to_mpl copying lib/cartopy/tests/mpl/baseline_images/mpl/test_shapely_to_mpl/contour_with_interiors.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_shapely_to_mpl creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_examples copying lib/cartopy/tests/mpl/baseline_images/mpl/test_examples/contour_label_3.4.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_examples copying lib/cartopy/tests/mpl/baseline_images/mpl/test_examples/contour_label.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_examples copying lib/cartopy/tests/mpl/baseline_images/mpl/test_examples/global_map.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_examples creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_nightshade copying lib/cartopy/tests/mpl/baseline_images/mpl/test_nightshade/nightshade_platecarree.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_nightshade creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_img_tiles2 copying lib/cartopy/tests/mpl/baseline_images/mpl/test_img_tiles2/web_tiles.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_img_tiles2 creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_axes copying lib/cartopy/tests/mpl/baseline_images/mpl/test_axes/geoaxes_set_boundary_clipping.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_axes copying lib/cartopy/tests/mpl/baseline_images/mpl/test_axes/geoaxes_subslice.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_axes creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_crs copying lib/cartopy/tests/mpl/baseline_images/mpl/test_crs/lambert_conformal_south.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_crs copying lib/cartopy/tests/mpl/baseline_images/mpl/test_crs/mercator_squashed.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_crs creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_features copying lib/cartopy/tests/mpl/baseline_images/mpl/test_features/natural_earth_custom.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_features copying lib/cartopy/tests/mpl/baseline_images/mpl/test_features/gshhs_coastlines.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_features copying lib/cartopy/tests/mpl/baseline_images/mpl/test_features/wfs.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_features copying lib/cartopy/tests/mpl/baseline_images/mpl/test_features/natural_earth.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_features creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_goode_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/quiver_rotated_pole.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/multiple_projections520.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/multiple_projections5.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/quiver_plate_carree.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/natural_earth_interface.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/multiple_projections4.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_contour_wrap_mpl_pre_3.0.0.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/barbs_1d.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/barbs_1d_transformed.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_global_wrap1.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/streamplot_mpl_2.2.2.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_global_wrap2.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_global_wrap3.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/streamplot_mpl_3.2.0.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_hexbin_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/barbs_plate_carree.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/streamplot_mpl_3.0.0.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_contour_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_limited_area_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_single_column_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/barbs_regrid.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/quiver_regrid_with_extent.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/pcolormesh_mercator_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_map.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_scatter_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_contourf_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/quiver_regrid.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/global_pcolor_wrap.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/simple_global.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration copying lib/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration/barbs_regrid_with_extent.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/mpl/baseline_images/mpl/test_mpl_integration creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/natural_earth copying lib/cartopy/data/raster/natural_earth/images.json -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/natural_earth copying lib/cartopy/data/raster/natural_earth/50-natural-earth-1-downsampled.png -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/natural_earth creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/sample copying lib/cartopy/data/raster/sample/Miriam.A2012270.2050.2km.jpg -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/sample copying lib/cartopy/data/raster/sample/Miriam.A2012270.2050.2km.README.txt -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/raster/sample creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/netcdf copying lib/cartopy/data/netcdf/HadISST1_SST_update.README.txt -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/netcdf copying lib/cartopy/data/netcdf/HadISST1_SST_update.nc -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/netcdf creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs copying lib/cartopy/data/shapefiles/gshhs/README.TXT -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/c copying lib/cartopy/data/shapefiles/gshhs/c/GSHHS_c_L1.dbf -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/c copying lib/cartopy/data/shapefiles/gshhs/c/GSHHS_c_L1.shx -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/c copying lib/cartopy/data/shapefiles/gshhs/c/GSHHS_c_L1.shp -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/c creating build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/l copying lib/cartopy/data/shapefiles/gshhs/l/GSHHS_l_L2.dbf -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/l copying lib/cartopy/data/shapefiles/gshhs/l/GSHHS_l_L2.shp -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/l copying lib/cartopy/data/shapefiles/gshhs/l/GSHHS_l_L2.shx -> build/lib.macosx-10.9-x86_64-3.8/cartopy/data/shapefiles/gshhs/l creating build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/lakes_shapefile copying lib/cartopy/tests/lakes_shapefile/ne_110m_lakes.dbf -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/lakes_shapefile copying lib/cartopy/tests/lakes_shapefile/ne_110m_lakes.shp -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/lakes_shapefile copying lib/cartopy/tests/lakes_shapefile/ne_110m_lakes.shx -> build/lib.macosx-10.9-x86_64-3.8/cartopy/tests/lakes_shapefile copying lib/cartopy/io/srtm.npz -> build/lib.macosx-10.9-x86_64-3.8/cartopy/io running build_ext building 'cartopy.trace' extension creating build/temp.macosx-10.9-x86_64-3.8 creating build/temp.macosx-10.9-x86_64-3.8/lib creating build/temp.macosx-10.9-x86_64-3.8/lib/cartopy gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -I/Users/josephkarpinski/opt/anaconda3/include -arch x86_64 -I/Users/josephkarpinski/opt/anaconda3/include -arch x86_64 -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H=1 -I/Users/josephkarpinski/opt/anaconda3/include -I./lib/cartopy -I/private/var/folders/39/hmv9hpy10cg6cx015773lbtw0000gn/T/pip-build-env-tyg7igax/overlay/lib/python3.8/site-packages/numpy/core/include -I/Users/josephkarpinski/opt/anaconda3/include -I/Users/josephkarpinski/opt/anaconda3/include/python3.8 -c lib/cartopy/trace.cpp -o build/temp.macosx-10.9-x86_64-3.8/lib/cartopy/trace.o xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun error: command 'gcc' failed with exit status 1

ERROR: Failed building wheel for cartopy Failed to build cartopy ERROR: Could not build wheels for cartopy which use PEP 517 and cannot be installed directly

Seems like a lot of upgrading. Will give this another look tomorrow. But I will probably pass on this. To many other packages configured that I would rather not break.

checked: https://scitools.org.uk/cartopy/docs/latest/installing.html

Required dependencies

In order to install Cartopy, or to access its basic functionality, it will be necessary to first install GEOS, Shapely, and pyshp. Many of these packages can be installed using pip or other package managers such as apt-get (Linux) and brew (macOS). Many of these dependencies are built as part of Cartopy’s conda distribution, and the recipes for these packages can be found at https://github.com/conda-forge/feedstocks.

For macOS, the required dependencies can be installed in the following way:

brew install proj geos pip3 install --upgrade pyshp

shapely needs to be built from source to link to geos. If it is already

installed, uninstall it by: pip3 uninstall shapely

pip3 install shapely --no-binary shapely Still on macOS, make sure you have installed pkg-config and set the PKG_CONFIG_PATH environment variable as follows

brew install pkg-config export PKG_CONFIG_PATH=/usr/local/bin/pkgconfig

Then you can install cartopy using

pip3 install cartopy

JosephKarpinski commented 3 years ago

The original reported problem was tracked to using %matplotlib notebook. Switching to %matplotlib inline corrected that.

Secondary Shell is not a LinearRing and TypeError: an integer is required were duplicated using Cartopy Gallery examples https://scitools.org.uk/cartopy/docs/latest/gallery/index.html

Multiple conda/pip attempts to remove and install geopandas and Cartopy failed to correct the problem. Even in a new clean conda environment.

Since this now appears to be a Python bases code issue running on MacOs Big Sur, closing this open issue.

JosephKarpinski commented 3 years ago

Got it to work!

Rebuilt minimum conda Python 3.8.5 environment, then added packages till code worked. Conda install of carroty. pip install of buttery

(env385) josephkarpinski@Josephs-iMac ~ % conda list

packages in environment at /Users/josephkarpinski/opt/anaconda3/envs/env385:

#

Name Version Build Channel

appnope 0.1.2 py38h50d1736_1 conda-forge argon2-cffi 20.1.0 py38h5406a74_2 conda-forge astropy 4.2.1 py38h96a0964_0 conda-forge astroquery 0.4.1 pyh9f0ad1d_0 conda-forge async_generator 1.10 py_0 conda-forge attrs 20.3.0 pyhd3deb0d_0 conda-forge autograd 1.3 py_0 conda-forge backcall 0.2.0 pyh9f0ad1d_0 conda-forge backports 1.0 py_2 conda-forge backports.functools_lru_cache 1.6.4 pyhd8ed1ab_0 conda-forge beautifulsoup4 4.9.3 pyhb0f4dca_0 conda-forge bleach 3.3.0 pyh44b312d_0 conda-forge bokeh 2.3.1 py38h50d1736_0 conda-forge brotlipy 0.7.0 py38h5406a74_1001 conda-forge butterpy 0.1.0 pypi_0 pypi c-ares 1.17.1 h0d85af4_1 conda-forge ca-certificates 2020.12.5 h033912b_0 conda-forge cartopy 0.19.0 py38h4be4431_0 conda-forge certifi 2020.12.5 py38h50d1736_1 conda-forge cffi 1.14.5 py38ha97d567_0 conda-forge chardet 4.0.0 py38h50d1736_1 conda-forge cryptography 3.4.7 py38h1fa4640_0 conda-forge cycler 0.10.0 py_2 conda-forge decorator 5.0.7 pyhd8ed1ab_0 conda-forge defusedxml 0.7.1 pyhd8ed1ab_0 conda-forge entrypoints 0.3 pyhd8ed1ab_1003 conda-forge fbpca 1.0 py_0 conda-forge freetype 2.10.4 h4cff582_1 conda-forge future 0.18.2 py38h50d1736_3 conda-forge geos 3.9.1 he49afe7_2 conda-forge html5lib 1.1 pyh9f0ad1d_0 conda-forge idna 2.10 pyh9f0ad1d_0 conda-forge importlib-metadata 4.0.1 py38h50d1736_0 conda-forge importlib_metadata 4.0.1 hd8ed1ab_0 conda-forge ipykernel 5.5.3 py38h6c79ece_0 conda-forge ipython 7.23.0 py38h6c79ece_0 conda-forge ipython_genutils 0.2.0 py_1 conda-forge ipywidgets 7.6.3 pyhd3deb0d_0 conda-forge jedi 0.18.0 py38h50d1736_2 conda-forge jinja2 2.11.3 pyh44b312d_0 conda-forge joblib 1.0.1 pyhd8ed1ab_0 conda-forge jpeg 9d hbcb3906_0 conda-forge jsonschema 3.2.0 pyhd8ed1ab_3 conda-forge jupyter_client 6.1.12 pyhd8ed1ab_0 conda-forge jupyter_core 4.7.1 py38h50d1736_0 conda-forge jupyterlab_pygments 0.1.2 pyh9f0ad1d_0 conda-forge jupyterlab_widgets 1.0.0 pyhd8ed1ab_1 conda-forge keyring 23.0.1 py38h50d1736_0 conda-forge kiwisolver 1.3.1 py38hd9c93a9_1 conda-forge krb5 1.17.2 h60d9502_0 conda-forge lcms2 2.12 h577c468_0 conda-forge libblas 3.9.0 9_openblas conda-forge libcblas 3.9.0 9_openblas conda-forge libcurl 7.76.1 h8ef9fac_1 conda-forge libcxx 11.1.0 habf9029_0 conda-forge libedit 3.1.20191231 h0678c8f_2 conda-forge libev 4.33 haf1e3a3_1 conda-forge libffi 3.3 h046ec9c_2 conda-forge libgfortran 5.0.0 9_3_0_h6c81a4c_22 conda-forge libgfortran5 9.3.0 h6c81a4c_22 conda-forge liblapack 3.9.0 9_openblas conda-forge libnghttp2 1.43.0 h07e645a_0 conda-forge libopenblas 0.3.15 openmp_h5e1b9a4_0 conda-forge libpng 1.6.37 h7cec526_2 conda-forge libsodium 1.0.18 hbcb3906_1 conda-forge libssh2 1.9.0 h52ee1ee_6 conda-forge libtiff 4.2.0 h7c11950_1 conda-forge libwebp-base 1.2.0 h0d85af4_2 conda-forge lightkurve 2.0.9 pyhd8ed1ab_0 conda-forge llvm-openmp 11.1.0 hda6cdc1_1 conda-forge lz4-c 1.9.3 h046ec9c_0 conda-forge markupsafe 1.1.1 py38h5406a74_3 conda-forge matplotlib 3.4.1 py38h50d1736_0 conda-forge matplotlib-base 3.4.1 py38h6152e83_0 conda-forge matplotlib-inline 0.1.2 pyhd8ed1ab_2 conda-forge memoization 0.3.2 pyhd8ed1ab_0 conda-forge mistune 0.8.4 py38h5406a74_1003 conda-forge nbclient 0.5.3 pyhd8ed1ab_0 conda-forge nbconvert 6.0.7 py38h50d1736_3 conda-forge nbformat 5.1.3 pyhd8ed1ab_0 conda-forge ncurses 6.2 h2e338ed_4 conda-forge nest-asyncio 1.5.1 pyhd8ed1ab_0 conda-forge notebook 6.3.0 pyha770c72_1 conda-forge numpy 1.20.2 py38had91d27_0 conda-forge oktopus 0.1.2 py_0 conda-forge olefile 0.46 pyh9f0ad1d_1 conda-forge openjpeg 2.4.0 h6cbf5cd_0 conda-forge openssl 1.1.1k h0d85af4_0 conda-forge packaging 20.9 pyh44b312d_0 conda-forge pandas 1.2.4 py38h1f261ad_0 conda-forge pandoc 2.13 h0d85af4_0 conda-forge pandocfilters 1.4.2 py_1 conda-forge parso 0.8.2 pyhd8ed1ab_0 conda-forge patsy 0.5.1 py_0 conda-forge pexpect 4.8.0 pyh9f0ad1d_2 conda-forge pickleshare 0.7.5 py_1003 conda-forge pillow 8.1.2 py38h83525de_1 conda-forge pip 21.1.1 pyhd8ed1ab_0 conda-forge proj 7.2.0 h78d1473_2 conda-forge prometheus_client 0.10.1 pyhd8ed1ab_0 conda-forge prompt-toolkit 3.0.18 pyha770c72_0 conda-forge ptyprocess 0.7.0 pyhd3deb0d_0 conda-forge pycparser 2.20 pyh9f0ad1d_2 conda-forge pyerfa 1.7.2 py38hca655e8_0 conda-forge pygments 2.8.1 pyhd8ed1ab_0 conda-forge pyopenssl 20.0.1 pyhd8ed1ab_0 conda-forge pyparsing 2.4.7 pyh9f0ad1d_0 conda-forge pyrsistent 0.17.3 py38h5406a74_2 conda-forge pyshp 2.1.3 pyh44b312d_0 conda-forge pysocks 1.7.1 py38h50d1736_3 conda-forge python 3.8.5 h26836e1_1
python-dateutil 2.8.1 py_0 conda-forge python_abi 3.8 1_cp38 conda-forge pytz 2021.1 pyhd8ed1ab_0 conda-forge pyyaml 5.4.1 py38h5406a74_0 conda-forge pyzmq 22.0.3 py38hd3b92b6_1 conda-forge readline 8.1 h05e3726_0 conda-forge requests 2.25.1 pyhd3deb0d_0 conda-forge scikit-learn 0.24.2 py38h011f2c5_0 conda-forge scipy 1.6.3 py38h431c0a8_0 conda-forge seaborn 0.11.1 hd8ed1ab_1 conda-forge seaborn-base 0.11.1 pyhd8ed1ab_1 conda-forge send2trash 1.5.0 py_0 conda-forge setuptools 49.6.0 py38h50d1736_3 conda-forge shapely 1.7.1 py38h08f9a40_4 conda-forge six 1.15.0 pyh9f0ad1d_0 conda-forge soupsieve 2.0.1 py_1 conda-forge sqlite 3.35.5 h44b9ce1_0 conda-forge statsmodels 0.12.2 py38ha1b04c9_0 conda-forge termcolor 1.1.0 py_2 conda-forge terminado 0.9.4 py38h50d1736_0 conda-forge testpath 0.4.4 py_0 conda-forge threadpoolctl 2.1.0 pyh5ca1d4c_0 conda-forge tk 8.6.10 h0419947_1 conda-forge tornado 6.1 py38h5406a74_1 conda-forge tqdm 4.60.0 pyhd8ed1ab_0 conda-forge traitlets 5.0.5 py_0 conda-forge typing_extensions 3.7.4.3 py_0 conda-forge uncertainties 3.1.5 pyhd8ed1ab_0 conda-forge urllib3 1.26.4 pyhd8ed1ab_0 conda-forge wcwidth 0.2.5 pyh9f0ad1d_2 conda-forge webencodings 0.5.1 py_1 conda-forge wheel 0.36.2 pyhd3deb0d_0 conda-forge widgetsnbextension 3.5.1 py38h50d1736_4 conda-forge xz 5.2.5 haf1e3a3_1 conda-forge yaml 0.2.5 haf1e3a3_0 conda-forge zeromq 4.3.4 h1c7c35f_0 conda-forge zipp 3.4.1 pyhd8ed1ab_0 conda-forge zlib 1.2.11 h7795811_1010 conda-forge zstd 1.4.9 h582d3a0_0 conda-forge

JosephKarpinski commented 3 years ago

Got it to work!

See last update of closed issue

Sent from my iPhone

On May 3, 2021, at 7:19 PM, Zach Claytor @.***> wrote:



Thanks for the helpful feedback. I can't reproduce the error using the same package plan on Ubuntu. I'm wondering if the problem is in the pre-built cartopy dependencies for MacOS.

I can think of 2 things that might be helpful:

  1. See if cartopy 0.19.0 is available. If you need to, you could try creating a fresh conda environment, and cartopy 0.19.0 should install by default.
  2. If that doesn't work, try following the building from source instructionshttps://scitools.org.uk/cartopy/docs/latest/installing.html#installing for cartopy. I'm not sure if this will fix the issue but it could be worth trying.

If neither of those works, I'll change the package OS requirement to Linux-only until I can run further tests.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/zclaytor/butterpy/issues/2#issuecomment-831594629, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AI3HMIHQJ7QSXWSCU2WPZXDTL4VORANCNFSM44BBW2HA.

zclaytor commented 3 years ago

That's fantastic. Thanks so much; this has been very helpful!