pvlib / twoaxistracking

twoaxistracking is a python package for simulating two-axis tracking solar collectors, particularly self-shading.
https://twoaxistracking.readthedocs.io
BSD 3-Clause "New" or "Revised" License
8 stars 4 forks source link

shapely 2.0 ImportError: cannot import name 'lgeos' from 'shapely.geos' #39

Closed kandersolar closed 1 year ago

kandersolar commented 1 year ago

Shapely 2.0.0 (released Dec 12, 2022) on PyPI causes our CI tests to fail:

twoaxistracking/__init__.py:7: in <module>
    from shapely.geos import lgeos  # noqa: F401
E   ImportError: cannot import name 'lgeos' from 'shapely.geos' (/opt/hostedtoolcache/Python/3.7.15/x64/lib/python3.7/site-packages/shapely/geos.py)

That import error occurs on every OS and python version in our test matrix: https://github.com/pvlib/twoaxistracking/actions/runs/3733556578/jobs/6334499080

38 requires shapely<2.0 just to get the CI working again, but it would be better to change how we use shapely so that we don't have to restrict the version. Either way we should probably deploy a fix soon so that pip install twoaxistracking results in a working environment.

AdamRJensen commented 1 year ago

I'll get on this ASAP - should have a solution within the next couple of days!