mggg / GerryChain

Use MCMC to analyze districting plans and gerrymanders
https://mggg.github.io/GerryChain/
Other
132 stars 74 forks source link

Compatibility issue with shapely 2.x #408

Closed KrisTapp closed 9 months ago

KrisTapp commented 1 year ago

When I installed gerrychain with conda, the environment solver forced an upgrade from shapely 1.x to 2.x. But yet gerrychain seems to have incompatibilities with shapely 2.x.

For example, Graph.from_file caused errors for shapely 2.0, while in shapely 1.85, it only results in this message: "ShapelyDeprecationWarning: Setting custom attributes on geometry objects is deprecated, and will raise an AttributeError in Shapely 2.0"

peterrrock2 commented 9 months ago

This should be fixed in the latest release. We have deprecated support for conda-forge, so we are asking everyone to install things using pip. Let me know if you have any more issues with this!