pydata / pydata/xarray

"TypeError: Unsupported type for store_like: 'FSMap'" with new version libraries

Open
#9,957 2 comments 2 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.