Closed mdpiper closed 1 month ago
shapely had a major release recently, and it looks like the geometry types changed, which causes pymt to fail:
______________________ ERROR collecting pymt/grids/map.py ______________________ Traceback (most recent call last): File "/Users/runner/work/pymt/pymt/pymt/grids/map.py", line 49, in <module> from shapely.geometry import Point, asLineString, asPoint, asPolygon ImportError: cannot import name 'asLineString' from 'shapely.geometry' (/usr/local/miniconda/envs/test/lib/python3.8/site-packages/shapely/geometry/__init__.py)
Requiring shapely<2 works.
shapely<2
The solution might be as simple as changing the asLineString type to LineString.
asLineString
LineString
This is blocking building pymt on Python 3.12.
shapely had a major release recently, and it looks like the geometry types changed, which causes pymt to fail: