-
-
Notifications
You must be signed in to change notification settings - Fork 373
Closed
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library
Description
Zarr version
3.0.7
Numcodecs version
0.16.0
Python Version
3.13.1
Operating System
WSL2
Installation
uv pip install zarr
Description
zarr.load fails when reading data from ZipStore.
ValueError: Store is read-only but mode is 'a'
Steps to reproduce
import sys
import numcodecs
import zarr
from zarr.storage import ZipStore
file = "test_data.zip"
def main():
with ZipStore(file, mode="r", read_only=False) as zs:
data = zarr.load(store=zs, path="some/data") # This works
print(data.shape)
with ZipStore(file, mode="r") as zs:
data = zarr.load(store=zs, path="some/data") # This does not work
print(data.shape)
if __name__ == "__main__":
print(zarr.__version__)
print(numcodecs.__version__)
print(sys.version)
main()
Additional output
No response
Metadata
Metadata
Assignees
Labels
bugPotential issues with the zarr-python libraryPotential issues with the zarr-python library