Skip to content

Support Zarr v3 #119

@bendichter

Description

@bendichter

I just tried to run this with Zarr v3 installed and I got

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[1], line 5
      1 # This script shows how to load this in Python using PyNWB and LINDI
      2 # It assumes you have installed PyNWB and LINDI (pip install pynwb lindi)
      4 import pynwb
----> 5 import lindi
      7 # Load https://api.dandiarchive.org/api/assets/2b9e441b-56bc-4be2-893e-0e02d22d239d/download/
      8 f = lindi.LindiH5pyFile.from_lindi_file("https://lindi.neurosift.org/dandi/dandisets/000582/assets/2b9e441b-56bc-4be2-893e-0e02d22d239d/nwb.lindi.json")

File ~/miniconda3/lib/python3.12/site-packages/lindi/__init__.py:1
----> 1 from .LindiH5ZarrStore import LindiH5ZarrStore, LindiH5ZarrStoreOpts
      2 from .LindiH5pyFile import (
      3     LindiH5pyFile,
      4     LindiH5pyGroup,
   (...)
      8     LindiH5pyReference,
      9 )
     10 from .LocalCache.LocalCache import LocalCache, ChunkTooLargeError

File ~/miniconda3/lib/python3.12/site-packages/lindi/LindiH5ZarrStore/__init__.py:1
----> 1 from .LindiH5ZarrStore import LindiH5ZarrStore
      2 from .LindiH5ZarrStoreOpts import LindiH5ZarrStoreOpts
      4 __all__ = [
      5     "LindiH5ZarrStore",
      6     "LindiH5ZarrStoreOpts",
      7 ]

File ~/miniconda3/lib/python3.12/site-packages/lindi/LindiH5ZarrStore/LindiH5ZarrStore.py:6
      4 import numpy as np
      5 import zarr
----> 6 from zarr.storage import Store, MemoryStore
      7 import h5py
      8 from tqdm import tqdm

ImportError: cannot import name 'Store' from 'zarr.storage' (/Users/bdichter/miniconda3/lib/python3.12/site-packages/zarr/storage/__init__.py)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions