pangeo-data / xESMF

Universal Regridder for Geospatial Data
http://xesmf.readthedocs.io/
MIT License
183 stars 32 forks source link

ImportError: cannot import name 'LineString' from 'shapely' (~/site-packages/shapely/__init__.py) #296

Closed singledoggy closed 10 months ago

singledoggy commented 10 months ago

conda list version

xesmf                     0.8                pyhd8ed1ab_0    conda-forge
shapely                   1.8.5           py310h5e49deb_1    conda-forge

error

ImportError: cannot import name 'LineString' from 'shapely' (~/site-packages/shapely/__init__.py)

quick fix:

change in __init__.py)
# from shapely import LineString
from shapely.geometry import LineString
huard commented 10 months ago

thanks for reporting this, PR coming up: #298