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' #2699

Open
KumoLiu opened this issue Jan 14, 2025 · 3 comments
Open
Labels
documentation Improvements to the documentation

Comments

@KumoLiu
Copy link

KumoLiu commented Jan 14, 2025

Zarr version

3.0.0

Numcodecs version

0.14.1

Python Version

3.9, 3.10, 3.11

Operating System

linux

Installation

pip install

Description

class DirectoryStore(Store):

Steps to reproduce

>>> import zarr
>>> from zarr.storage import DirectoryStore

Additional output

No response

@joshmoore
Copy link
Member

Hi @KumoLiu. The class you are looking for in Zarr v3 is the LocalStore:

https://zarr.readthedocs.io/en/stable/api/zarr/storage/index.html#zarr.storage.LocalStore

In case you have not seen it, please also be sure to read through the migration guide at https://zarr.readthedocs.io/en/stable/user-guide/v3_migration.html for other breaking changes.

@dstansby
Copy link
Contributor

To be fair, the Store part of the migration guide doesn't mention DirectoryStore at all, so I think we should definitely add a section explaining how to migrate from DirectoryStore to LocalStore.

@dstansby dstansby added documentation Improvements to the documentation and removed bug Potential issues with the zarr-python library labels Jan 14, 2025
@KumoLiu
Copy link
Author

KumoLiu commented Jan 20, 2025

Hi @joshmoore and @dstansby, may I ask what zarr.storage.TempStore() and zarr.codec_registry has been replaced by? i didn't found in the migration guide. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements to the documentation
Projects
None yet
Development

No branches or pull requests

3 participants