Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue with Shapely Version 1.8.3 #2067

Closed
mgrover1 opened this issue Aug 17, 2022 · 10 comments
Closed

Issue with Shapely Version 1.8.3 #2067

mgrover1 opened this issue Aug 17, 2022 · 10 comments

Comments

@mgrover1
Copy link

Description

With the recent shapely update, we are running into issues in Py-ART (a radar toolkit that uses cartopy in our examples), specifically when setting our extent of the plot.

ax.set_extent([lon_lines.min(), lon_lines.max()])

Where those minima are floats.

This results in the following error:

../../../miniconda3/envs/pyart-dev/lib/python3.8/site-packages/cartopy/mpl/geoaxes.py:904: in set_extent
    projected = self.projection.project_geometry(domain_in_crs, crs)
../../../miniconda3/envs/pyart-dev/lib/python3.8/site-packages/cartopy/crs.py:805: in project_geometry
    return getattr(self, method_name)(geometry, src_crs)
../../../miniconda3/envs/pyart-dev/lib/python3.8/site-packages/cartopy/crs.py:811: in _project_line_string
    return cartopy.trace.project_linear(geometry, src_crs, self)
lib/cartopy/trace.pyx:628: in cartopy.trace.project_linear
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

>   ???
E   TypeError: an integer is required

Code to reproduce

import matplotlib.pyplot as plt
import cartopy.crs as ccrs

fig = plt.figure()
ax = plt.subplot(111, projection=ccrs.PlateCarree())
ax.set_extent(-90., -80., 40., 45.)

Traceback

TypeError                                 Traceback (most recent call last)
Input In [4], in <cell line: 1>()
----> 1 ax.set_extent((-90., -80., 40., 45.))

File ~/miniforge3/envs/pyart-docs/lib/python3.10/site-packages/cartopy/mpl/geoaxes.py:904, in GeoAxes.set_extent(self, extents, crs)
    901         projected = boundary
    903 if projected is None:
--> 904     projected = self.projection.project_geometry(domain_in_crs, crs)
    905 try:
    906     # This might fail with an unhelpful error message ('need more
    907     # than 0 values to unpack') if the specified extents fall outside
    908     # the projection extents, so try and give a better error message.
    909     x1, y1, x2, y2 = projected.bounds

File ~/miniforge3/envs/pyart-docs/lib/python3.10/site-packages/cartopy/crs.py:805, in Projection.project_geometry(self, geometry, src_crs)
    803 if not method_name:
    804     raise ValueError(f'Unsupported geometry type {geom_type!r}')
--> 805 return getattr(self, method_name)(geometry, src_crs)

File ~/miniforge3/envs/pyart-docs/lib/python3.10/site-packages/cartopy/crs.py:811, in Projection._project_line_string(self, geometry, src_crs)
    810 def _project_line_string(self, geometry, src_crs):
--> 811     return cartopy.trace.project_linear(geometry, src_crs, self)

File lib/cartopy/trace.pyx:628, in cartopy.trace.project_linear()

File lib/cartopy/trace.pyx:100, in cartopy.trace.geos_from_shapely()

TypeError: an integer is required
Full environment definition

Operating system

MacOS

Cartopy version

0.20.3

conda list

ablog                     0.10.29                  pypi_0    pypi
aiobotocore               2.3.4              pyhd8ed1ab_0    conda-forge
aiohttp                   3.8.1           py310hf8d0d8f_1    conda-forge
aioitertools              0.10.0             pyhd8ed1ab_0    conda-forge
aiosignal                 1.2.0              pyhd8ed1ab_0    conda-forge
alabaster                 0.7.12                     py_0    conda-forge
appdirs                   1.4.4                    pypi_0    pypi
appnope                   0.1.3              pyhd8ed1ab_0    conda-forge
arm-pyart                 1.12.7.post14            pypi_0    pypi
asttokens                 2.0.8              pyhd8ed1ab_0    conda-forge
async-timeout             4.0.2              pyhd8ed1ab_0    conda-forge
attrs                     22.1.0             pyh71513ae_1    conda-forge
babel                     2.10.3             pyhd8ed1ab_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.11.1                   pypi_0    pypi
bleach                    5.0.1                    pypi_0    pypi
blosc                     1.21.1               hd414afc_3    conda-forge
boost-cpp                 1.74.0               h1cb353e_8    conda-forge
botocore                  1.24.21            pyhd8ed1ab_1    conda-forge
brotli                    1.0.9                h1c322ee_7    conda-forge
brotli-bin                1.0.9                h1c322ee_7    conda-forge
brotlipy                  0.7.0           py310hf8d0d8f_1004    conda-forge
bzip2                     1.0.8                h3422bc3_4    conda-forge
c-ares                    1.18.1               h3422bc3_0    conda-forge
ca-certificates           2022.6.15            h4653dfc_0    conda-forge
cached-property           1.5.2                hd8ed1ab_1    conda-forge
cached_property           1.5.2              pyha770c72_1    conda-forge
cairo                     1.16.0            had492bb_1012    conda-forge
cartopy                   0.20.3          py310h4b64ff1_1    conda-forge
certifi                   2022.6.15       py310hbe9552e_0    conda-forge
cffi                      1.15.1          py310he00a5c5_0    conda-forge
cfitsio                   4.1.0                hd4f5c17_0    conda-forge
cftime                    1.6.1           py310h611a7d1_0    conda-forge
charset-normalizer        2.1.0              pyhd8ed1ab_0    conda-forge
click                     8.1.3                    pypi_0    pypi
colorama                  0.4.5              pyhd8ed1ab_0    conda-forge
cryptography              37.0.1          py310h834c97f_0
curl                      7.83.1               h7965298_0    conda-forge
cvxopt                    1.3.0           py310h41dd5eb_1    conda-forge
cycler                    0.11.0             pyhd8ed1ab_0    conda-forge
cython                    0.29.32         py310hb07a4bc_0    conda-forge
debugpy                   1.6.3                    pypi_0    pypi
decorator                 5.1.1              pyhd8ed1ab_0    conda-forge
defusedxml                0.7.1                    pypi_0    pypi
deprecation               2.1.0              pyh9f0ad1d_0    conda-forge
docutils                  0.17.1                   pypi_0    pypi
dsdp                      5.8               h9397a75_1203    conda-forge
entrypoints               0.4                      pypi_0    pypi
executing                 0.10.0             pyhd8ed1ab_0    conda-forge
expat                     2.4.8                h6b3803e_0    conda-forge
fastjsonschema            2.16.1                   pypi_0    pypi
feedgen                   0.9.0                    pypi_0    pypi
fftw                      3.3.10          nompi_h2e33b67_103    conda-forge
flake8                    5.0.4                    pypi_0    pypi
font-ttf-dejavu-sans-mono 2.37                 hab24e00_0    conda-forge
font-ttf-inconsolata      3.000                h77eed37_0    conda-forge
font-ttf-source-code-pro  2.038                h77eed37_0    conda-forge
font-ttf-ubuntu           0.83                 hab24e00_0    conda-forge
fontconfig                2.14.0               hfb34624_0    conda-forge
fonts-conda-ecosystem     1                             0    conda-forge
fonts-conda-forge         1                             0    conda-forge
fonttools                 4.35.0          py310h8c01e39_0    conda-forge
freetype                  2.12.1               hd633e50_0    conda-forge
freexl                    1.0.6                h27ca646_0    conda-forge
frozenlist                1.3.1           py310h8c01e39_0    conda-forge
fsspec                    2022.7.1           pyhd8ed1ab_0    conda-forge
gdal                      3.5.1                    pypi_0    pypi
geos                      3.11.0               h9a09cb3_0    conda-forge
geotiff                   1.7.1                hc898e3f_3    conda-forge
gettext                   0.19.8.1          h049c9fb_1008    conda-forge
giflib                    5.2.1                h27ca646_2    conda-forge
glpk                      4.65              h6d7a090_1004    conda-forge
gmp                       6.2.1                h9f76cd9_0    conda-forge
gsl                       2.7                  h6e638da_0    conda-forge
h5netcdf                  1.0.2              pyhd8ed1ab_0    conda-forge
h5py                      3.7.0           nompi_py310h6693fc4_101    conda-forge
hdf4                      4.2.15               hc683e77_4    conda-forge
hdf5                      1.12.2          nompi_h33dac16_100    conda-forge
icu                       70.1                 h6b3803e_0    conda-forge
idna                      3.3                pyhd8ed1ab_0    conda-forge
imagesize                 1.4.1              pyhd8ed1ab_0    conda-forge
importlib-metadata        4.11.4          py310hbe9552e_0    conda-forge
iniconfig                 1.1.1              pyh9f0ad1d_0    conda-forge
invoke                    1.7.1                    pypi_0    pypi
ipykernel                 6.15.1                   pypi_0    pypi
ipython                   8.4.0           py310hbe9552e_0    conda-forge
jedi                      0.18.1             pyhd8ed1ab_2    conda-forge
jinja2                    3.1.2              pyhd8ed1ab_1    conda-forge
jmespath                  1.0.1              pyhd8ed1ab_0    conda-forge
jpeg                      9e                   he4db4b2_2    conda-forge
json-c                    0.16                 hc449e50_0    conda-forge
jsonschema                4.10.0                   pypi_0    pypi
jupyter-cache             0.5.0                    pypi_0    pypi
jupyter-client            7.3.4                    pypi_0    pypi
jupyter-core              4.11.1                   pypi_0    pypi
jupyterlab-pygments       0.2.2                    pypi_0    pypi
kealib                    1.4.15               h02ce806_1    conda-forge
kiwisolver                1.4.4           py310hd23d0e8_0    conda-forge
krb5                      1.19.3               he492e65_0    conda-forge
lcms2                     2.12                 had6a04f_0    conda-forge
lerc                      4.0.0                h9a09cb3_0    conda-forge
libblas                   3.9.0           16_osxarm64_openblas    conda-forge
libbrotlicommon           1.0.9                h1c322ee_7    conda-forge
libbrotlidec              1.0.9                h1c322ee_7    conda-forge
libbrotlienc              1.0.9                h1c322ee_7    conda-forge
libcblas                  3.9.0           16_osxarm64_openblas    conda-forge
libcurl                   7.83.1               h7965298_0    conda-forge
libcxx                    14.0.6               h04bba0f_0    conda-forge
libdap4                   3.20.6               h8510809_2    conda-forge
libdeflate                1.13                 h57fd34a_0    conda-forge
libedit                   3.1.20191231         hc8eb9b7_2    conda-forge
libev                     4.33                 h642e427_1    conda-forge
libffi                    3.4.2                h3422bc3_5    conda-forge
libgdal                   3.5.1                h97effd8_2    conda-forge
libgfortran               5.0.0.dev0      11_0_1_hf114ba7_23    conda-forge
libgfortran5              11.0.1.dev0         hf114ba7_23    conda-forge
libglib                   2.72.1               ha1047ec_0    conda-forge
libiconv                  1.16                 h642e427_0    conda-forge
libkml                    1.3.0             h893ab4d_1014    conda-forge
liblapack                 3.9.0           16_osxarm64_openblas    conda-forge
libnetcdf                 4.8.1           nompi_h996a5af_104    conda-forge
libnghttp2                1.47.0               h519802c_1    conda-forge
libopenblas               0.3.21          openmp_hcb59c3b_1    conda-forge
libpng                    1.6.37               h9b2ccdc_4    conda-forge
libpq                     14.5                 hd90caff_0    conda-forge
librttopo                 1.1.0               h275bb25_11    conda-forge
libspatialite             5.0.1               h47b1232_18    conda-forge
libsqlite                 3.39.2               h2c9beb0_1    conda-forge
libssh2                   1.10.0               h7a5bd25_3    conda-forge
libtiff                   4.4.0                hd6ca8d7_3    conda-forge
libwebp-base              1.2.4                h57fd34a_0    conda-forge
libxcb                    1.13              h9b22ae9_1004    conda-forge
libxml2                   2.9.14               h9d8dfc2_4    conda-forge
libzip                    1.9.2                h76ab92c_1    conda-forge
libzlib                   1.2.12               ha287fd2_2    conda-forge
llvm-openmp               14.0.4               hd125106_0    conda-forge
lxml                      4.9.1                    pypi_0    pypi
lz4-c                     1.9.3                hbdafb3b_1    conda-forge
markdown-it-py            2.1.0                    pypi_0    pypi
markupsafe                2.1.1           py310hf8d0d8f_1    conda-forge
matplotlib                3.5.3           py310hb6292c7_0    conda-forge
matplotlib-base           3.5.3           py310h5b2abfc_1    conda-forge
matplotlib-inline         0.1.5              pyhd8ed1ab_0    conda-forge
mccabe                    0.7.0                    pypi_0    pypi
mdit-py-plugins           0.3.0                    pypi_0    pypi
mdurl                     0.1.2                    pypi_0    pypi
metis                     5.1.0             h9f76cd9_1006    conda-forge
mistune                   0.8.4                    pypi_0    pypi
mpfr                      4.1.0                h6d7a090_1    conda-forge
multidict                 6.0.2           py310hf8d0d8f_1    conda-forge
munkres                   1.1.4              pyh9f0ad1d_0    conda-forge
myst-nb                   0.16.0                   pypi_0    pypi
myst-parser               0.18.0                   pypi_0    pypi
nbclient                  0.5.13                   pypi_0    pypi
nbconvert                 6.5.3                    pypi_0    pypi
nbformat                  5.4.0                    pypi_0    pypi
nbsphinx                  0.8.9                    pypi_0    pypi
ncurses                   6.3                  h07bb92c_1    conda-forge
nest-asyncio              1.5.5                    pypi_0    pypi
netcdf4                   1.6.0           nompi_py310h9d42ac0_101    conda-forge
nspr                      4.32                 hbdafb3b_1    conda-forge
nss                       3.78                 h1483a63_0    conda-forge
numpy                     1.23.2          py310h127c7cf_0    conda-forge
openjpeg                  2.4.0                h062765e_1    conda-forge
openssl                   3.0.5                h7aea29f_1    conda-forge
packaging                 21.3               pyhd8ed1ab_0    conda-forge
pandas                    1.4.3           py310ha6a5cd6_0    conda-forge
pandoc                    2.12                 hca03da5_0
pandocfilters             1.5.0                    pypi_0    pypi
parso                     0.8.3              pyhd8ed1ab_0    conda-forge
pcre                      8.45                 hbdafb3b_0    conda-forge
pexpect                   4.8.0              pyh9f0ad1d_2    conda-forge
pickleshare               0.7.5                   py_1003    conda-forge
pillow                    9.2.0           py310h5c0cce3_1    conda-forge
pip                       22.2.2             pyhd8ed1ab_0    conda-forge
pixman                    0.40.0               h27ca646_0    conda-forge
pkg-config                0.29.2            hab62308_1008    conda-forge
pluggy                    1.0.0           py310hbe9552e_3    conda-forge
pooch                     1.6.0                    pypi_0    pypi
poppler                   22.04.0              hadf1f10_1    conda-forge
poppler-data              0.4.11               hd8ed1ab_0    conda-forge
postgresql                14.5                 hb69b1e3_0    conda-forge
proj                      9.0.1                h4c79c2b_1    conda-forge
prompt-toolkit            3.0.30             pyha770c72_0    conda-forge
psutil                    5.9.1                    pypi_0    pypi
pthread-stubs             0.4               h27ca646_1001    conda-forge
ptyprocess                0.7.0              pyhd3deb0d_0    conda-forge
pure_eval                 0.2.2              pyhd8ed1ab_0    conda-forge
py                        1.11.0             pyh6c4a22f_0    conda-forge
pycodestyle               2.9.1                    pypi_0    pypi
pycparser                 2.21               pyhd8ed1ab_0    conda-forge
pydata-sphinx-theme       0.8.1                    pypi_0    pypi
pyflakes                  2.5.0                    pypi_0    pypi
pygments                  2.13.0             pyhd8ed1ab_0    conda-forge
pyopenssl                 22.0.0             pyhd8ed1ab_0    conda-forge
pyparsing                 3.0.9              pyhd8ed1ab_0    conda-forge
pyproj                    3.3.1           py310he6636b7_1    conda-forge
pyrsistent                0.18.1                   pypi_0    pypi
pyshp                     2.3.1              pyhd8ed1ab_0    conda-forge
pysocks                   1.7.1           py310hbe9552e_5    conda-forge
pytest                    7.1.2           py310hbe9552e_0    conda-forge
python                    3.10.5          h4eee789_0_cpython    conda-forge
python-dateutil           2.8.2              pyhd8ed1ab_0    conda-forge
python_abi                3.10                    2_cp310    conda-forge
pytz                      2022.2.1           pyhd8ed1ab_0    conda-forge
pyyaml                    6.0                      pypi_0    pypi
pyzmq                     23.2.1                   pypi_0    pypi
readline                  8.1.2                h46ed386_0    conda-forge
requests                  2.28.1             pyhd8ed1ab_0    conda-forge
s3fs                      2022.7.1           pyhd8ed1ab_0    conda-forge
scipy                     1.9.0           py310hdb41229_0    conda-forge
setuptools                65.0.2          py310hbe9552e_0    conda-forge
shapely                   1.8.3           py310h2f36b14_0    conda-forge
six                       1.16.0             pyh6c4a22f_0    conda-forge
snappy                    1.1.9                h39c3846_1    conda-forge
snowballstemmer           2.2.0              pyhd8ed1ab_0    conda-forge
soupsieve                 2.3.2.post1              pypi_0    pypi
sphinx                    4.5.0                    pypi_0    pypi
sphinx-copybutton         0.5.0                    pypi_0    pypi
sphinx-gallery            0.11.0                   pypi_0    pypi
sphinx-togglebutton       0.3.2                    pypi_0    pypi
sphinxcontrib-applehelp   1.0.2                      py_0    conda-forge
sphinxcontrib-devhelp     1.0.2                      py_0    conda-forge
sphinxcontrib-htmlhelp    2.0.0              pyhd8ed1ab_0    conda-forge
sphinxcontrib-jsmath      1.0.1                      py_0    conda-forge
sphinxcontrib-qthelp      1.0.3                      py_0    conda-forge
sphinxcontrib-serializinghtml 1.1.5              pyhd8ed1ab_2    conda-forge
sqlalchemy                1.4.40                   pypi_0    pypi
sqlite                    3.39.2               h40dfcc0_1    conda-forge
stack_data                0.4.0              pyhd8ed1ab_0    conda-forge
suitesparse               5.10.1               h7cd81ec_1    conda-forge
tabulate                  0.8.10                   pypi_0    pypi
tbb                       2021.5.0             h3e96240_1    conda-forge
tiledb                    2.9.4                h824fbfd_0    conda-forge
tinycss2                  1.1.1                    pypi_0    pypi
tk                        8.6.12               he1e0b03_0    conda-forge
tomli                     2.0.1              pyhd8ed1ab_0    conda-forge
tornado                   6.2             py310h02f21da_0    conda-forge
traitlets                 5.3.0              pyhd8ed1ab_0    conda-forge
typing-extensions         4.3.0                hd8ed1ab_0    conda-forge
typing_extensions         4.3.0              pyha770c72_0    conda-forge
tzcode                    2022c                h57fd34a_0    conda-forge
tzdata                    2022c                h191b570_0    conda-forge
unicodedata2              14.0.0          py310hf8d0d8f_1    conda-forge
urllib3                   1.26.11            pyhd8ed1ab_0    conda-forge
versioneer                0.23                     pypi_0    pypi
watchdog                  2.1.9                    pypi_0    pypi
wcwidth                   0.2.5              pyh9f0ad1d_2    conda-forge
webencodings              0.5.1                    pypi_0    pypi
wheel                     0.37.1             pyhd8ed1ab_0    conda-forge
wradlib                   1.16.1             pyhd8ed1ab_0    conda-forge
wrapt                     1.14.1          py310h02f21da_0    conda-forge
xarray                    2022.6.0           pyhd8ed1ab_1    conda-forge
xerces-c                  3.2.3                h1b0b642_5    conda-forge
xmltodict                 0.13.0             pyhd8ed1ab_0    conda-forge
xorg-libxau               1.0.9                h27ca646_0    conda-forge
xorg-libxdmcp             1.1.3                h27ca646_0    conda-forge
xz                        5.2.6                h57fd34a_0    conda-forge
yarl                      1.7.2           py310hf8d0d8f_2    conda-forge
zipp                      3.8.1              pyhd8ed1ab_0    conda-forge
zlib                      1.2.12               ha287fd2_2    conda-forge
zstd                      1.5.2                h68b4297_4    conda-forge

pip list

Package                       Version       Editable project location
----------------------------- ------------- ------------------------------
ablog                         0.10.29
aiobotocore                   2.3.4
aiohttp                       3.8.1
aioitertools                  0.10.0
aiosignal                     1.2.0
alabaster                     0.7.12
appdirs                       1.4.4
appnope                       0.1.3
arm-pyart                     1.12.7.post14 /Users/mgrover/git_repos/pyart
asttokens                     2.0.8
async-timeout                 4.0.2
attrs                         22.1.0
Babel                         2.10.3
backcall                      0.2.0
backports.functools-lru-cache 1.6.4
beautifulsoup4                4.11.1
bleach                        5.0.1
botocore                      1.24.21
brotlipy                      0.7.0
cached-property               1.5.2
Cartopy                       0.20.3
certifi                       2022.6.15
cffi                          1.15.1
cftime                        1.6.1
charset-normalizer            2.1.0
click                         8.1.3
colorama                      0.4.5
cryptography                  37.0.1
cvxopt                        1.3.0
cycler                        0.11.0
Cython                        0.29.32
debugpy                       1.6.3
decorator                     5.1.1
defusedxml                    0.7.1
deprecation                   2.1.0
docutils                      0.17.1
entrypoints                   0.4
executing                     0.10.0
fastjsonschema                2.16.1
feedgen                       0.9.0
flake8                        5.0.4
fonttools                     4.35.0
frozenlist                    1.3.1
fsspec                        2022.7.1
GDAL                          3.5.1
h5netcdf                      0.0.0
h5py                          3.7.0
idna                          3.3
imagesize                     1.4.1
importlib-metadata            4.11.4
iniconfig                     1.1.1
invoke                        1.7.1
ipykernel                     6.15.1
ipython                       8.4.0
jedi                          0.18.1
Jinja2                        3.1.2
jmespath                      1.0.1
jsonschema                    4.10.0
jupyter-cache                 0.5.0
jupyter-client                7.3.4
jupyter-core                  4.11.1
jupyterlab-pygments           0.2.2
kiwisolver                    1.4.4
lxml                          4.9.1
markdown-it-py                2.1.0
MarkupSafe                    2.1.1
matplotlib                    3.5.3
matplotlib-inline             0.1.5
mccabe                        0.7.0
mdit-py-plugins               0.3.0
mdurl                         0.1.2
mistune                       0.8.4
multidict                     6.0.2
munkres                       1.1.4
myst-nb                       0.16.0
myst-parser                   0.18.0
nbclient                      0.5.13
nbconvert                     6.5.3
nbformat                      5.4.0
nbsphinx                      0.8.9
nest-asyncio                  1.5.5
netCDF4                       1.6.0
numpy                         1.23.2
packaging                     21.3
pandas                        1.4.3
pandocfilters                 1.5.0
parso                         0.8.3
pexpect                       4.8.0
pickleshare                   0.7.5
Pillow                        9.2.0
pip                           22.2.2
pluggy                        1.0.0
pooch                         1.6.0
prompt-toolkit                3.0.30
psutil                        5.9.1
ptyprocess                    0.7.0
pure-eval                     0.2.2
py                            1.11.0
pycodestyle                   2.9.1
pycparser                     2.21
pydata-sphinx-theme           0.8.1
pyflakes                      2.5.0
Pygments                      2.13.0
pyOpenSSL                     22.0.0
pyparsing                     3.0.9
pyproj                        3.3.1
pyrsistent                    0.18.1
pyshp                         2.3.1
PySocks                       1.7.1
pytest                        7.1.2
python-dateutil               2.8.2
pytz                          2022.2.1
PyYAML                        6.0
pyzmq                         23.2.1
requests                      2.28.1
s3fs                          2022.7.1
scipy                         1.9.0
setuptools                    65.0.2
Shapely                       1.8.3
six                           1.16.0
snowballstemmer               2.2.0
soupsieve                     2.3.2.post1
Sphinx                        4.5.0
sphinx-copybutton             0.5.0
sphinx-gallery                0.11.0
sphinx-togglebutton           0.3.2
sphinxcontrib-applehelp       1.0.2
sphinxcontrib-devhelp         1.0.2
sphinxcontrib-htmlhelp        2.0.0
sphinxcontrib-jsmath          1.0.1
sphinxcontrib-qthelp          1.0.3
sphinxcontrib-serializinghtml 1.1.5
SQLAlchemy                    1.4.40
stack-data                    0.4.0
tabulate                      0.8.10
tinycss2                      1.1.1
tomli                         2.0.1
tornado                       6.2
traitlets                     5.3.0
typing_extensions             4.3.0
unicodedata2                  14.0.0
urllib3                       1.26.11
versioneer                    0.23
watchdog                      2.1.9
wcwidth                       0.2.5
webencodings                  0.5.1
wheel                         0.37.1
wradlib                       1.16.1
wrapt                         1.14.1
xarray                        2022.6.0
xmltodict                     0.13.0
yarl                          1.7.2
zipp                          3.8.1
@akrherz
Copy link
Contributor

akrherz commented Aug 17, 2022

I think there's major issues on conda-forge with the newest pip/setuptools for MacOS. I've seen random puzzling reports of breakages on MacOS and about half of the conda-forge projects I follow have broken MacOS CI... Your env shows GDAL 3.5.1 coming from pypi, which is concerning as well. So I suspect there's not a cartopy issue to be had here, but that's my lazy assessment.

@mgrover1
Copy link
Author

It's failing in our full set of CI for Py-ART as well (see this CI run) for Windows, MacOS, and Linux.

Also, it seems that the recent PR for MetPy see #2619 over there is running into similar issues.

@mgrover1
Copy link
Author

And pinning to the previous version of shapely (<1.8.3) appears to have solved this issue ARM-DOE/pyart#1240

@akrherz
Copy link
Contributor

akrherz commented Aug 17, 2022

Ah, I am waking up here, try pining back geos to something < 3.11, shapely/shapely#1436 maybe at play here

@mgrover1
Copy link
Author

Everything ran alright when we had GEOS 3.11 and Shapely 1.8.2 (see the environment below)

From the previous set of passing CI runs

Package                           Version  Build                   Channel                 Size
  ───────────────────────────────────────────────────────────────────────────────────────────────────
    Install:
  ───────────────────────────────────────────────────────────────────────────────────────────────────
  
    + attrs                            22.1.0  pyh71513ae_1            conda-forge/noarch      49kB
    + blosc                            1.21.1  h97e831e_3              conda-forge/osx-64      49kB
    + boost-cpp                        1.74.0  h8b082ac_8              conda-forge/osx-64      16MB
    + brotli                            1.0.9  h5eb16cf_7              conda-forge/osx-64      18kB
    + brotli-bin                        1.0.9  h5eb16cf_7              conda-forge/osx-64      18kB
    + brotlipy                          0.7.0  py38hed1de0f_1004       conda-forge/osx-64     376kB
    + bzip2                             1.0.8  h0d85af4_4              conda-forge/osx-64     159kB
    + c-ares                           1.18.1  h0d85af4_0              conda-forge/osx-64     102kB
    + ca-certificates               2022.6.15  h033912b_0              conda-forge/osx-64     153kB
    + cached-property                   1.5.2  hd8ed1ab_1              conda-forge/noarch       4kB
    + cached_property                   1.5.2  pyha770c72_1            conda-forge/noarch      11kB
    + cairo                            1.16.0  h56d7d38_1012           conda-forge/osx-64       1MB
    + cartopy                          0.20.3  py38h416d10e_1          conda-forge/osx-64       2MB
    + certifi                       2022.6.15  py38h50d1736_0          conda-forge/osx-64     159kB
    + cffi                             1.15.1  py38h86886aa_0          conda-forge/osx-64     226kB
    + cfitsio                           4.1.0  h2c97ad1_0              conda-forge/osx-64       1MB
    + cftime                            1.6.1  py38hc1426ef_0          conda-forge/osx-64     202kB
    + charset-normalizer                2.1.0  pyhd8ed1ab_0            conda-forge/noarch      36kB
    + coverage                          6.4.3  py38h35d34b1_0          conda-forge/osx-64     250kB
    + coveralls                         3.3.1  pyhd8ed1ab_0            conda-forge/noarch      17kB
    + cryptography                     37.0.1  py38hf6deb26_0          pkgs/main/osx-64         1MB
    + curl                             7.83.1  h23f1065_0              conda-forge/osx-64     151kB
    + cvxopt                            1.3.0  py38h102f16f_1          conda-forge/osx-64     519kB
    + cycler                           0.11.0  pyhd8ed1ab_0            conda-forge/noarch      10kB
    + cython                          0.29.32  py38h1c67a95_0          conda-forge/osx-64       2MB
    + deprecation                       2.1.0  pyh9f0ad1d_0            conda-forge/noarch      14kB
    + docopt                            0.6.2  py_1                    conda-forge/noarch      15kB
    + dsdp                                5.8  h6e329d1_1203           conda-forge/osx-64     226kB
    + expat                             2.4.8  h96cf925_0              conda-forge/osx-64     150kB
    + fftw                             3.3.10  nompi_h6e8bf23_103      conda-forge/osx-64       6MB
    + flake8                            5.0.4  pyhd8ed1ab_0            conda-forge/noarch      84kB
    + font-ttf-dejavu-sans-mono          2.37  hab24e00_0              conda-forge/noarch     397kB
    + font-ttf-inconsolata              3.000  h77eed37_0              conda-forge/noarch      97kB
    + font-ttf-source-code-pro          2.038  h77eed37_0              conda-forge/noarch     701kB
    + font-ttf-ubuntu                    0.83  hab24e00_0              conda-forge/noarch       2MB
    + fontconfig                       2.14.0  h676cef8_0              conda-forge/osx-64     288kB
    + fonts-conda-ecosystem                 1  0                       conda-forge/noarch       4kB
    + fonts-conda-forge                     1  0                       conda-forge/noarch       4kB
    + fonttools                        4.35.0  py38h35d34b1_0          conda-forge/osx-64       2MB
    + freetype                         2.12.1  h3f81eb7_0              conda-forge/osx-64     937kB
    + freexl                            1.0.6  h0d85af4_0              conda-forge/osx-64      43kB
    + fsspec                         2022.7.1  pyhd8ed1ab_0            conda-forge/noarch      98kB
    + gdal                              3.5.1  py38hb90f0bc_2          conda-forge/osx-64       2MB
    + geos                             3.11.0  hb486fe8_0              conda-forge/osx-64       1MB
    + geotiff                           1.7.1  ha1a2aeb_3              conda-forge/osx-64     131kB
    + gettext                        0.19.8.1  hd1a6beb_1008           conda-forge/osx-64       3MB
    + giflib                            5.2.1  hbcb3906_2              conda-forge/osx-64      73kB
    + glpk                               4.65  h0f52abe_1004           conda-forge/osx-64       1MB
    + gmp                               6.2.1  h2e338ed_0              conda-forge/osx-64     792kB
    + gsl                                 2.7  h93259b0_0              conda-forge/osx-64       3MB
    + h5netcdf                          1.0.2  pyhd8ed1ab_0            conda-forge/noarch      24kB
    + h5py                              3.7.0  nompi_py38hf55d6a0_101  conda-forge/osx-64       1MB
    + hdf4                             4.2.15  h0623a88_4              conda-forge/osx-64     952kB
    + hdf5                             1.12.2  nompi_h1f71328_100      conda-forge/osx-64       4MB
    + icu                                70.1  h96cf925_0              conda-forge/osx-64      14MB
    + idna                                3.3  pyhd8ed1ab_0            conda-forge/noarch      56kB
    + importlib-metadata               4.11.4  py38h50d1736_0          conda-forge/osx-64      34kB
    + importlib_resources               5.9.0  pyhd8ed1ab_0            conda-forge/noarch      28kB
    + iniconfig                         1.1.1  pyh9f0ad1d_0            conda-forge/noarch       8kB
    + jinja2                            3.1.2  pyhd8ed1ab_1            conda-forge/noarch     101kB
    + jpeg                                 9e  hac89ed1_2              conda-forge/osx-64     267kB
    + json-c                             0.16  h01d06f9_0              conda-forge/osx-64      73kB
    + kealib                           1.4.15  h51f5cc1_1              conda-forge/osx-64     169kB
    + kiwisolver                        1.4.4  py38hf58141a_0          conda-forge/osx-64      66kB
    + krb5                             1.19.3  hb98e516_0              conda-forge/osx-64       1MB
    + lcms2                              2.12  h577c468_0              conda-forge/osx-64     414kB
    + lerc                              4.0.0  hb486fe8_0              conda-forge/osx-64     290kB
    + libblas                           3.9.0  16_osx64_openblas       conda-forge/osx-64      13kB
    + libbrotlicommon                   1.0.9  h5eb16cf_7              conda-forge/osx-64      65kB
    + libbrotlidec                      1.0.9  h5eb16cf_7              conda-forge/osx-64      34kB
    + libbrotlienc                      1.0.9  h5eb16cf_7              conda-forge/osx-64     328kB
    + libcblas                          3.9.0  16_osx64_openblas       conda-forge/osx-64      13kB
    + libcurl                          7.83.1  h23f1065_0              conda-forge/osx-64     325kB
    + libcxx                           14.0.6  hce7ea42_0              conda-forge/osx-64       1MB
    + libdap4                          3.20.6  h3e144a0_2              conda-forge/osx-64       2MB
    + libdeflate                         1.13  h775f41a_0              conda-forge/osx-64      86kB
    + libedit                    3.1.20191231  h0678c8f_2              conda-forge/osx-64     105kB
    + libev                              4.33  haf1e3a3_1              conda-forge/osx-64     101kB
    + libffi                            3.4.2  h0d85af4_5              conda-forge/osx-64      51kB
    + libgdal                           3.5.1  h49e027b_2              conda-forge/osx-64      10MB
    + libgfortran                       5.0.0  9_3_0_h6c81a4c_23       conda-forge/osx-64      20kB
    + libgfortran5                      9.3.0  h6c81a4c_23             conda-forge/osx-64       2MB
    + libglib                          2.72.1  hfbcb929_0              conda-forge/osx-64       3MB
    + libiconv                           1.16  haf1e3a3_0              conda-forge/osx-64       1MB
    + libkml                            1.3.0  h8fd9edb_1014           conda-forge/osx-64     494kB
    + liblapack                         3.9.0  16_osx64_openblas       conda-forge/osx-64      13kB
    + libnetcdf                         4.8.1  nompi_hebd45d5_104      conda-forge/osx-64       1MB
    + libnghttp2                       1.47.0  h5aae05b_1              conda-forge/osx-64     896kB
    + libopenblas                      0.3.21  openmp_h1027af7_0       conda-forge/osx-64      10MB
    + libpng                           1.6.37  h54[812](https://github.com/ARM-DOE/pyart/runs/7868593130?check_suite_focus=true#step:3:823)73_4              conda-forge/osx-64     319kB
    + libpq                              14.5  h2ca9b15_0              conda-forge/osx-64       3MB
    + librttopo                         1.1.0  he07d8f5_11             conda-forge/osx-64     223kB
    + libspatialite                     5.0.1  hdbf6ee6_18             conda-forge/osx-64       4MB
    + libsqlite                        3.39.2  h5a3d3bf_1              conda-forge/osx-64     919kB
    + libssh2                          1.10.0  h47af595_3              conda-forge/osx-64     227kB
    + libtiff                           4.4.0  h5e0c7b4_3              conda-forge/osx-64     618kB
    + libwebp-base                      1.2.4  h775f41a_0              conda-forge/osx-64     394kB
    + libxcb                             1.13  h0d85af4_1004           conda-forge/osx-64     312kB
    + libxml2                          2.9.14  hea49891_4              conda-forge/osx-64     699kB
    + libzip                            1.9.2  h6db710c_1              conda-forge/osx-64     120kB
    + libzlib                          1.2.12  hfe4f2af_2              conda-forge/osx-64      65kB
    + llvm-openmp                      14.0.4  ha654fa7_0              conda-forge/osx-64     337kB
    + lz4-c                             1.9.3  he49afe7_1              conda-forge/osx-64     159kB
    + markupsafe                        2.1.1  py38hed1de0f_1          conda-forge/osx-64      21kB
    + matplotlib                        3.5.3  py38h50d1736_0          conda-forge/osx-64       7kB
    + matplotlib-base                   3.5.3  py38h2894597_0          conda-forge/osx-64       8MB
    + mccabe                            0.7.0  pyhd8ed1ab_0            conda-forge/noarch      11kB
    + metis                             5.1.0  h2e338ed_1006           conda-forge/osx-64       4MB
    + mpfr                              4.1.0  h0f52abe_1              conda-forge/osx-64     410kB
    + munkres                           1.1.4  pyh9f0ad1d_0            conda-forge/noarch      12kB
    + ncurses                             6.3  h96cf925_1              conda-forge/osx-64     937kB
    + netcdf4                           1.6.0  nompi_py38hf85f478_101  conda-forge/osx-64     456kB
    + nspr                               4.32  hcd9eead_1              conda-forge/osx-64     253kB
    + nss                                3.78  ha[819](https://github.com/ARM-DOE/pyart/runs/7868593130?check_suite_focus=true#step:3:830)7d3_0              conda-forge/osx-64       2MB
    + numpy                            1.23.2  py38h84cd246_0          conda-forge/osx-64       7MB
    + openjpeg                          2.4.0  h6e7aa92_1              conda-forge/osx-64     383kB
    + openssl                           3.0.5  hb81d4ab_1              conda-forge/osx-64       3MB
    + packaging                          21.3  pyhd8ed1ab_0            conda-forge/noarch      36kB
    + pandas                            1.4.3  py38h2b30649_0          conda-forge/osx-64      12MB
    + pcre                               8.45  he49afe7_0              conda-forge/osx-64     226kB
    + pillow                            9.2.0  py38h0be0e1e_1          conda-forge/osx-64      47MB
    + pip                              22.2.2  pyhd8ed1ab_0            conda-forge/noarch       2MB
    + pixman                           0.40.0  hbcb3906_0              conda-forge/osx-64     629kB
    + pluggy                            1.0.0  py38h50d1736_3          conda-forge/osx-64      26kB
    + poppler                         22.04.0  hed6754a_1              conda-forge/osx-64       2MB
    + poppler-data                     0.4.11  hd8ed1ab_0              conda-forge/noarch       4MB
    + postgresql                         14.5  h01b6435_0              conda-forge/osx-64       5MB
    + proj                              9.0.1  h05f0992_1              conda-forge/osx-64       3MB
    + pthread-stubs                       0.4  hc929b4f_1001           conda-forge/osx-64       6kB
    + py                               1.11.0  pyh6c4a22f_0            conda-forge/noarch      76kB
    + pycodestyle                       2.9.1  pyhd8ed1ab_0            conda-forge/noarch      40kB
    + pycparser                          2.21  pyhd8ed1ab_0            conda-forge/noarch     103kB
    + pyflakes                          2.5.0  pyhd8ed1ab_0            conda-forge/noarch      58kB
    + pyopenssl                        22.0.0  pyhd8ed1ab_0            conda-forge/noarch      50kB
    + pyparsing                         3.0.9  pyhd8ed1ab_0            conda-forge/noarch      81kB
    + pyproj                            3.3.1  py38h4046a6c_1          conda-forge/osx-64     449kB
    + pyshp                             2.3.1  pyhd8ed1ab_0            conda-forge/noarch     964kB
    + pysocks                           1.7.1  py38h50d1736_5          conda-forge/osx-64      28kB
    + pytest                            7.1.2  py38h50d1736_0          conda-forge/osx-64     473kB
    + pytest-cov                        3.0.0  pyhd8ed1ab_0            conda-forge/noarch      22kB
    + pytest-mpl                       0.16.1  pyhd8ed1ab_0            conda-forge/noarch      28kB
    + python                           3.8.13  h66c20e1_0_cpython      conda-forge/osx-64      13MB
    + python-dateutil                   2.8.2  pyhd8ed1ab_0            conda-forge/noarch     246kB
    + python_abi                          3.8  2_cp38                  conda-forge/osx-64       4kB
    + pytz                           2022.2.1  pyhd8ed1ab_0            conda-forge/noarch     229kB
    + pyyaml                              6.0  py38hed1de0f_4          conda-forge/osx-64     170kB
    + readline                          8.1.2  h3899abd_0              conda-forge/osx-64     272kB
    + requests                         2.28.1  pyhd8ed1ab_0            conda-forge/noarch      54kB
    + scipy                             1.9.0  py38hb261484_0          conda-forge/osx-64      24MB
    + setuptools                       65.0.1  py38h50d1736_0          conda-forge/osx-64       1MB
    + shapely                           1.8.2  py38h38[841](https://github.com/ARM-DOE/pyart/runs/7868593130?check_suite_focus=true#step:3:852)82_3          conda-forge/osx-64     353kB
    + six                              1.16.0  pyh6c4a22f_0            conda-forge/noarch      14kB
    + snappy                            1.1.9  h6e38e02_1              conda-forge/osx-64      32kB
    + sqlite                           3.39.2  hd9f0692_1              conda-forge/osx-64     920kB
    + suitesparse                      5.10.1  h7aff33d_1              conda-forge/osx-64       3MB
    + tbb                            2021.5.0  hbb4e6a2_1              conda-forge/osx-64     161kB
    + tiledb                            2.9.5  h86bd37b_0              conda-forge/osx-64       4MB
    + tk                               8.6.12  h5dbffcc_0              conda-forge/osx-64       4MB
    + toml                             0.10.2  pyhd8ed1ab_0            conda-forge/noarch      18kB
    + tomli                             2.0.1  pyhd8ed1ab_0            conda-forge/noarch      16kB
    + tornado                             6.2  py38h0dd4459_0          conda-forge/osx-64     666kB
    + tzcode                            2022c  h775f41a_0              conda-forge/osx-64      69kB
    + tzdata                            2022c  h191b570_0              conda-forge/noarch     121kB
    + unicodedata2                     14.0.0  py38hed1de0f_1          conda-forge/osx-64     497kB
    + urllib3                         1.26.11  pyhd8ed1ab_0            conda-forge/noarch     104kB
    + wheel                            0.37.1  pyhd8ed1ab_0            conda-forge/noarch      32kB
    + wradlib                          1.16.1  pyhd8ed1ab_0            conda-forge/noarch     238kB
    + xarray                         2022.6.0  pyhd8ed1ab_1            conda-forge/noarch     714kB
    + xerces-c                          3.2.3  hf5b2a72_5              conda-forge/osx-64       2MB
    + xmltodict                        0.13.0  pyhd8ed1ab_0            conda-forge/noarch      14kB
    + xorg-libxau                       1.0.9  h35c211d_0              conda-forge/osx-64      11kB
    + xorg-libxdmcp                     1.1.3  h35c211d_0              conda-forge/osx-64      17kB
    + xz                                5.2.6  h775f41a_0              conda-forge/osx-64     238kB
    + yaml                              0.2.5  h0d85af4_2              conda-forge/osx-64      84kB
    + zipp                              3.8.1  pyhd8ed1ab_0            conda-forge/noarch      13kB
    + zlib                             1.2.12  hfe4f2af_2              conda-forge/osx-64      95kB
    + zstd                              1.5.2  hb[844](https://github.com/ARM-DOE/pyart/runs/7868593130?check_suite_focus=true#step:3:855)be6_4              conda-forge/osx-64     476kB

@mgrover1
Copy link
Author

I am wondering if it is related to some of the pointers changing this merged PR https://github.com/shapely/shapely/pull/1479/files

This was referenced Aug 17, 2022
@dopplershift
Copy link
Contributor

@mgrover1 I'm pretty sure you're right. The function that's failing is a glorified cast. I wonder if the Shapely API has any better-supported methods, because right now Cartopy relies on accessing ._geom.

@mgrover1
Copy link
Author

@dopplershift here was the PR where they changed around access to _geom too shapely/shapely#1417

@mgrover1
Copy link
Author

It looks like this issue is resolved with the recent release (late afternoon yesterday) of shapely. Over in that xarray issue, they mentioned installing

shapely!=1.8.3

Works

@dopplershift
Copy link
Contributor

Closing this out then since 1.8.4 should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants