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

Better chunk manager error #7962

Closed
dcherian opened this issue Jul 5, 2023 · 4 comments
Closed

Better chunk manager error #7962

dcherian opened this issue Jul 5, 2023 · 4 comments
Labels
topic-chunked-arrays Managing different chunked backends, e.g. dask topic-error reporting

Comments

@dcherian
Copy link
Contributor

dcherian commented Jul 5, 2023

What happened?

I just ran in to this error in an environment without dask.

TypeError: Could not find a Chunk Manager which recognises type <class 'dask.array.core.Array'>

I think we could easily recommend the user to install a package that provides dask by looking at type(array).__name__. This would make the message a lot friendlier

@TomNicholas
Copy link
Member

How was an instance of dask.array.core.Array even created if you were in an environment without dask?

I agree that message could be clearer though - opened #7963.

@dcherian
Copy link
Contributor Author

dcherian commented Jul 5, 2023

How was an instance of dask.array.core.Array even created if you were in an environment without dask?

Yeah i realized that out 2 minutes later. Not sure what happened, may be bad editable install.

@TomNicholas
Copy link
Member

Actually wait it's possible this might be a real bug - if xarray.core.pycompat.is_duck_dask_array returns False for an instance of dask.array.core.Array. We shouldn't see that type though, so if you can't reproduce it easily it's probably a bad install instead though.

@dcherian
Copy link
Contributor Author

Closing as probable bad install

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
topic-chunked-arrays Managing different chunked backends, e.g. dask topic-error reporting
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants