Skip to content

New release seems to break open_dataset from xarray #3189

Closed
mercator-ocean/copernicus-marine-toolbox
#370
@uriii3

Description

@uriii3

Zarr version

v3.0.9

Numcodecs version

v0.16.1

Python Version

3.12.3

Operating System

Mac

Installation

pip install

Description

From our project, we use the call of xarray.open_zarr(...) to open zarr files.

With the new release, it looks like what used to work now does not any more, with error message:
ValueError: Store is not read-only but mode is \'r\'. Unable to create a read-only copy of the store. Please use a read-only store or a storage class that implements .with_read_only()

I guess it comes from this PR but I'm not fully following everything to debug it.

Should I also pass mode='r' as an argument? Which does not seem to work.

Steps to reproduce

I will work on a MRE now, for now I have just checked that the error is indeed from the zarr version (although could come because I'm doing something wrong myself)

# /// script
# requires-python = ">=3.11"
# dependencies = [
#   "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
# ///
#
# This script automatically imports the development branch of zarr to check for issues

import zarr
# your reproducer code
# zarr.print_debug_info()

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions