Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'zarr.storage' has no attribute 'DirectoryStore' #8298

Closed
KumoLiu opened this issue Jan 14, 2025 · 1 comment · Fixed by #8299
Closed

AttributeError: module 'zarr.storage' has no attribute 'DirectoryStore' #8298

KumoLiu opened this issue Jan 14, 2025 · 1 comment · Fixed by #8299
Labels
bug Something isn't working

Comments

@KumoLiu
Copy link
Contributor

KumoLiu commented Jan 14, 2025

Traceback (most recent call last):
  File "/home/runner/work/MONAI/MONAI/tests/runner.py", line 135, in <module>
    tests = unittest.TestLoader().loadTestsFromNames(cases)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/unittest/loader.py", line 232, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/unittest/loader.py", line 232, in <listcomp>
    suites = [self.loadTestsFromName(name, module) for name in names]
              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.11.11/x64/lib/python3.11/unittest/loader.py", line 162, in loadTestsFromName
    module = __import__(module_name)
             ^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/runner/work/MONAI/MONAI/tests/test_zarr_avg_merger.py", line 157, in <module>
    dict(merged_shape=TENSOR_4x4.shape, store=zarr.storage.DirectoryStore("test.zarr")),
                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: module 'zarr.storage' has no attribute 'DirectoryStore'
@KumoLiu
Copy link
Contributor Author

KumoLiu commented Jan 14, 2025

May related to the new release: https://pypi.org/project/zarr/3.0.0/

zarr-developers/zarr-python#2699

@KumoLiu KumoLiu added the bug Something isn't working label Jan 14, 2025
KumoLiu added a commit to KumoLiu/MONAI that referenced this issue Jan 14, 2025
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
KumoLiu added a commit to KumoLiu/MONAI that referenced this issue Jan 14, 2025
Signed-off-by: YunLiu <55491388+KumoLiu@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant