-
-
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
Creating an Zarr.group
using fsspec.FSMap
fails
#1353
Comments
Flagging as a duplicate of #1352. @martindurant - any thoughts here? |
BTW, thanks a lot for reporting this @Swordcat! We really appreciate it, and we're sorry for this regression!
This sounds like a great way forward! |
…ssion test added
* Fix creating a group with fsmap per issue #1353, regression test added * Update release notes
I can reproduce the bug with the following setup: zarr 2.13.6 And also using s3fs:
output:
Confirmed that I can write to the bucket using s3fs - this works.
Do you have a timeline for when the fixes will be available in pypi or conda? Much appreciate your work on this. |
I see no reason why we shouldn't make a release now to fix this rather severe bug. |
Zarr 2.14.2 is now on pypi. Conda forge will take a little longer. Closed by #1354. |
Zarr version
v2.14.1
Numcodecs version
v0.11.0
Python Version
3.11
Operating System
MacOs 13.2.1
Installation
using pip into a virtual environment
Description
creating a group using the
Zarr.group
convenience function with afsspec.FSMap
store fails asmode='w'
is not passed to_normalize_store_arg
.This error stems from a change made in #1304 where a
fsspec.FSMap
is promoted to afsspec.FSStore
within thezarr.storage._normalize_store_arg_v2
function using the default mode of read only.A fix for array creation (
Zarr.create
) due to a similar error was implemented with #1309I propose introducing a similar change to the
Zarr.group
function, changing the first line of the function fromstore = _normalize_store_arg(store, zarr_version=zarr_version)
tostore = _normalize_store_arg(store, zarr_version=zarr_version, mode='w')
Steps to reproduce
The error can be reproduced with the following code
Console output
Additional output
No response
The text was updated successfully, but these errors were encountered: