"TypeError: Unsupported type for store_like: 'FSMap'" with new version libraries
Open
Nobody has claimed this yet.
bug
topic-zarr
- Dominant language
- Python
- Stars
- 4.2k
- Forks
- 1.4k
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 14
Description
Discussed in https://github.com/pydata/xarray/discussions/9956
Originally posted by fralc January 16, 2025
I'm getting "TypeError: Unsupported type for store_like: 'FSMap'" when opening a zarr archive with the following new package versions:
s3fs = "2024.12.0"
zarr = "3.0.0"
dask = "2024.12.1"
xarray = "2025.1.1"
A sample of the code I am using is this:
import s3fs
import xarray
s3 = s3fs.S3FileSystem(anon=True, client_kwargs=dict(region_name='us-east-1'))
store = s3fs.S3Map(root='s3://noaa-nwm-retro-v2-zarr-pds', s3=s3, check=False)
nwm_ds = xarray.open_zarr(store)
Where I am wrong?
Thank you
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the sample using xarray.open_zarr with s3fs.S3Map and the listed s3fs, zarr, dask, and xarray versions. Trace how open_zarr handles the FSMap store, then verify the archive opens successfully or that the resulting error clearly identifies the supported store usage.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cloud, data
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100