-
Notifications
You must be signed in to change notification settings - Fork 19
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
[Virtual Datasets] Local Storage ValueError: Filenames containing trailing '/#\d+/' are not supported:
#279
Comments
Pointing to a NetCDF on s3 works fine, even with local config! Seems like this might be more on the Virtualizarr side 🤔 storage_config = icechunk.StorageConfig.filesystem("icechunk/air")
store = icechunk.IcechunkStore.create(storage=storage_config, mode='w', config=StoreConfig(
virtual_ref_config=VirtualRefConfig.s3_anonymous(region='us-west-2')))
vds = open_virtual_dataset('s3://carbonplan-scratch/air.nc', indexes={}) |
@norlandrhagen if you get a chance, can you try using an absolute path instead of relative? I think you may be right |
Confirmed... running this with an absolute path is required at this time! Thanks for posting this |
Hi @norlandrhagen - it was a deliberate choice to not allow relative paths in Icechunk. The hope is that this requirement makes the Icechunk stores more robust, since moving the store does not imply moving the files themselves. This is of course different to how Kerchunk references work. In my experience, it's easy to break Kerchunk references, and we want to avoid that here. We'd love to hear a bit more about your use case and if relative paths are truly necessary. Can you get by with absolute paths here? In any case, a better error message and docs are definitely needed about this point. |
Would zarr-developers/VirtualiZarr#243 fix this problem? |
yup! I think so because it currently works fine as an absolute path |
Thanks for clearing this up @mpiannucci and @rabernat! Totally fine with avoiding relative paths, I think making Icechunk stores more robust is well worth the tradeoff 🧮 . |
zarr-developers/VirtualiZarr#243 has now been merged so this should be fixed now. |
Running into an error when trying to roundtrip a virtual dataset using the Local Storage config. 🤞 this is a
StorageConfig
setup issue on my part.MRE:
Thanks for all the integration work so far @mpiannucci @TomNicholas 🎊
The text was updated successfully, but these errors were encountered: