-
-
Notifications
You must be signed in to change notification settings - Fork 308
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
v2->v3 zarr.meta module name change breaks imports #2021
Comments
Thanks for raising this issue @ghidalgo3! To be honest, we haven't developed a firm position on this part of the v3 API. My opinion is that Zarr's API surface is too large and things like |
Thanks @ghidalgo3 for your work documenting these projects. In Xpublish, we've already pinned to |
We should make sure this ends up in our migration guide at #2596 |
Zarr version
3.0.0a0
Numcodecs version
0.12.1
Python Version
3.10.12
Operating System
Linux
Installation
pip install zarr==3.0.0a0
Description
In ZarrV3, the reorganization of the V2 code into the
v2
module requires consumers to change theirimport
stanzas to include a.v2.
. See this line in Kerchunk for example, now it needs to readfrom zarr.v2.meta import encode_fill_value
.I'm trying to make VirtualiZarr depend on ZarrV3 for the ArrayMetadata classes in this PR but ZarrV3 causes a problem for Kerchunk due to the module name change.
I think given the discussion on this issue, I think this is intended and the solution is for Kerchunk to add a lower bound to ZarrV3 and change its import statements. However that may be disruptive to many users if there is no plan to maintain the import paths the same.
Steps to reproduce
Simply attempt to import
kerchunk.hdf
.Additional output
pip freeze
The text was updated successfully, but these errors were encountered: