-
-
Notifications
You must be signed in to change notification settings - Fork 329
FileNotFoundError when using FsspecStore.from_url with a sync filesystem #2808
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
Comments
The parent folder didn't get created, maybe? |
Yeah I cannot say I understand it, but fwiw the metadata file gets created properly so my best guess is that there's an issue with the "c" chunks subdirectory. |
Try passing auto_mkdir=True to the filesystem, or explicitly create the directories first. |
I've come across the same error, originally coming from
Similar stack trace as above
|
Just an update... Still seeing this with:
I don't see that I can use
|
The following does work: import zarr
store = zarr.storage.FsspecStore.from_url("test_dask_to_zarr.zarr", read_only=False, storage_options={"auto_mkdir": True})
z = zarr.create(
shape=(256, 256),
chunks=(64, 64),
dtype="int8",
store=store
) Note that the fsspec config allows you to define that auto_mkdir should always be True for local FS, if you want. |
@martindurant Thanks for that. I've closed my original issue at dask/dask#11691 since it works with |
Zarr version
'3.0.3.dev9+g90cc08d4.d20250206'
Numcodecs version
'0.15.0'
Python Version
3.13
Operating System
Mac
Installation
Following https://zarr.readthedocs.io/en/latest/developers/contributing.html#creating-a-development-environment
Description
Writing an array to FsspecStore containing a AsyncFileSystemWrapper object does not currently work.
Steps to reproduce
Additional output
I added some print statements to check that the mode is correct for all the fsspec opener functions, which is consistently 'wb'. Here's the full traceback excluding those print statements:
The text was updated successfully, but these errors were encountered: