You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Include a detailed description of the bug or suggestion
Output of intake_esm.show_versions()
Minimal, self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report:
Here's a quick checklist in what to include:
Include a detailed description of the bug or suggestion
Output of
intake_esm.show_versions()
Minimal, self-contained copy-pastable example that generates the issue if possible. Please be concise with code posted. See guidelines below on how to provide a good bug report:
Minimal Complete Verifiable Examples
Craft Minimal Bug Reports
Bug reports that follow these guidelines are easier to diagnose,
and so are often handled much more quickly.
Description
Serializing a catalog to a local filesystem is broken with
fsspec
2023.10.0.What I Did
and I got:
The culprit is here :
intake-esm/intake_esm/cat.py
Line 185 in bfdfb51
In the recent
fsspec
release, Local filesystem now accepts both "file" and "local" as protocols. This,mapper.fs.protocol
is a tuple, and not a string anymore. I'm not sure if this was always the case, but I see in the git blame that typing annotation showing this were added 5 months ago (see https://github.com/fsspec/filesystem_spec/blame/e20f626b87b5bb87d223495a56aefd768272a7ca/fsspec/spec.py#L107)I see a
mapper.fs.unstrip_protocol
method that does what our f-string tries too. I can push a PR with this fix.Version information: output of
intake_esm.show_versions()
INSTALLED VERSIONS
cftime: 1.6.2
dask: 2023.3.0
fastprogress: 1.0.3
fsspec: 2023.10.0
gcsfs: 2023.10.0
intake: 0.7.0
intake_esm: 2022.9.18.post7
netCDF4: 1.6.0
pandas: 2.1.1
requests: 2.31.0
s3fs: 2023.10.0
xarray: 2023.10.1
zarr: 2.16.1
The text was updated successfully, but these errors were encountered: