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

Intake-xarray plugin does not support python 3.12 #78

Open
LariDG opened this issue Oct 10, 2024 · 3 comments
Open

Intake-xarray plugin does not support python 3.12 #78

LariDG opened this issue Oct 10, 2024 · 3 comments
Assignees

Comments

@LariDG
Copy link
Collaborator

LariDG commented Oct 10, 2024

When using terminal in virtual environment with python=3.12 and all dependancies added:

uv pip install pandas matplotlib zarr fsspec s3fs intake intake_xarray intake_parquet ipython jinja2

ipython and jinjia2 are not in the pip install at the top of the page:

ipython is imported into the code, but I don't believe it is actually used so could be taken out of imports.
jinja2 is used but is not in the pip install list at the top of the page.

I then run the code as it is written in the document
when I get to line:
dataset = catalog.level1.shots(url=shot.url, group='amc').to_dask()
I get error message:
ValueError: No plugins loaded for this entry:
intake_xarray.xzarr.ZarrSource

which I believe is from .to_dask(). It does still work when I am in collab however.
Added issue before noticing it was a python version error. The code works for python=3.11 and hence why it works in collab.

@LariDG
Copy link
Collaborator Author

LariDG commented Oct 14, 2024

Pip installs that were missing have now been added.

The fact that it doesn't work for python 3.12 to 3.13 has not been resolved.

@NathanCummings
Copy link
Member

I've investigated this and it is because the intake-xarray plugin imports distutils, which was removed in python 3.12.

I'll open an issue there and see how that goes.

@NathanCummings NathanCummings changed the title Intake plugin not pulling in venv Intake-xarray plugin does not support python 3.12 Oct 23, 2024
@NathanCummings
Copy link
Member

It looks to me like we should remake the intake catalogues using just intake, rather than the plugin.

See intake/intake#850 for details.

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

4 participants