Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
sspaulo opened this issue Nov 23, 2023 · 3 comments

Comments

@sspaulo
Copy link

sspaulo commented Nov 23, 2023

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
Copy link
Owner

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
Copy link
Contributor

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
Copy link
Owner

jbusecke commented Jul 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants