Skip to content

zarr.group raises FileNotFoundError #3406

@K-Meech

Description

@K-Meech

Zarr version

latest main

Numcodecs version

v0.16.1

Python Version

3.13

Operating System

Windows

Installation

pip install into a virtual environment

Description

On the latest main branch, zarr.group raises a FileNotFoundError when creating a new group - see example code below.

Error:

File "C:\Users\kimme\Documents\Repos\forked\zarr-python\src\zarr\storage\_common.py", line 361, in make_store_path
    store = await LocalStore.open(root=store_like, mode=mode)
            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\kimme\Documents\Repos\forked\zarr-python\src\zarr\storage\_local.py", line 142, in open
    await store._open()
  File "C:\Users\kimme\Documents\Repos\forked\zarr-python\src\zarr\storage\_local.py", line 154, in _open
    raise FileNotFoundError(f"{self.root} does not exist")
FileNotFoundError: data\example.zarr does not exist

Steps to reproduce

# /// script
# requires-python = ">=3.11"
# dependencies = [
#   "zarr@git+https://github.com/zarr-developers/zarr-python.git@main",
# ]
# ///
#
# This script automatically imports the development branch of zarr to check for issues

import zarr
root = zarr.group('data/example.zarr')

Additional output

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugPotential issues with the zarr-python library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions