jbusecke / xMIP

Analysis ready CMIP6 data in python the easy way with pangeo tools.
https://cmip6-preprocessing.readthedocs.io/en/latest/?badge=latest
Apache License 2.0
193 stars 41 forks source link

"TypeError: 'ABCMeta' object is not subscriptable " when importing xmip.preprocessing #323

Open sspaulo opened 7 months ago

sspaulo commented 7 months ago

Hello,

I am encountering a TypeError: 'ABCMeta' object is not subscriptable when trying to import rename_cmip6 from the xmip.preprocessing module. I created a new separate enviroment to use xmip:

Python version: 3.8.18 Packages versions: xmip: 0.7.1 cf_xarray: 0.8.6 xarray: 2022.11.0 dask: 2023.5.0 fsspec: 2023.10.0 gcsfs: 2023.10.0 numpy: 1.23.3 pandas: 1.5.0 aiohttp: 3.9.0

Has anyone come across this issue before ? Any help is appreciated. Thank you !

jbusecke commented 5 months ago

Hi @sspaulo. Sorry for missing this issue. Is this still relevant? If so could you post a full error trace so we can see where this error occurs?

JoranAngevaare commented 2 weeks ago

I had the same in a python 3.8 build, I think the issue is in cf_xarray, downgrading to 0.7.7 fixed the issue for me. I think cf_xarray has silently dropped the python 3.8 support at some point.

jbusecke commented 6 days ago

Nice catch @JoranAngevaare!

I think we should maybe consider bumping our python requirement too? In the same vein we could consolidate our setup.py/setup.cfg into the pyproject.toml?