Skip to content

zarr.errors ArrayNotFoundError is gone in zarr 3.0 #2961

Closed

Description

@thagusta

Hello,

Simple problem, but I can't find documentation how to change my code from zarr 2 to 3.
the migration guide told me to make a new issue.

I have in my code:
from zarr.errors import ArrayNotFoundError

and use it in an try & except to catch if there is no zarr array.

What is the appropriate exception now?

Activity

  1. d-v-b commented on Apr 7, 2025

    @d-v-b
    Contributor

    hi @thagusta, sorry that the migration guide wasn't complete here. I don't think we have implemented a replacement for the ArrayNotFoundError, but I think we need to. At the moment, if you try to use open_array and the array doesn't exist, you will get a FileNotFoundError, but we should absolutely replace this behavior with ArrayNotFoundError.

  2. dstansby commented on Aug 5, 2025

    @dstansby
    Contributor

    For anyone looking to work on this, #3066 added a GroupNotFoundError and is probably a good place to crib from.

  3. ruaridhg commented on Aug 11, 2025

    @ruaridhg
    Contributor

    I'll look into this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions