OGGM / oggm

Open Global Glacier Model
http://oggm.org
BSD 3-Clause "New" or "Revised" License
224 stars 105 forks source link

OGGM 1.6. pytest.oggm failing after fresh install #1706

Closed hydrojon closed 2 months ago

hydrojon commented 7 months ago

Just done a fresh install of OGGM 1.6 (Python 3.12) and getting lots of these errors which seems to stem from geopandas:

ERROR miniconda3/envs/oggm/lib/python3.12/site-packages/oggm/tests/test_models.py::TestIdealisedInversion::test_inversion_noisy - ValueError: Assigning CRS to a GeoDataFrame without a geometry column is not supported.

I wonder if there are some incompatabillities with the version of geopandas that I'm using (0.14.3)

pat-schmitt commented 7 months ago

Yes, this is a known problem with a new GeoPandas version (it was fixed in this PR https://github.com/OGGM/oggm/pull/1579).

Their are two options for you:

hydrojon commented 6 months ago

Thanks @pat-schmitt!