Zarr version
3.0.0a1
Numcodecs version
0.12.1
Python Version
3.11.9
Operating System
Mac
Installation
pip
Description
In v2 it was fine to pass a pathlib.Path for the store parameter, but this is not working in v3.
This seems to be an oversight since the StoreLike type includes Path:
| StoreLike=Store|StorePath|Path|str |
Steps to reproduce
>>>frompathlibimportPath>>>importzarr.v2aszarr>>>z=zarr.open(store=Path('example-v2.zarr'), mode='w', shape=(3, 3))
>>>z[:] =2>>>>>>importzarr>>>z=zarr.open(store=Path('example-v3.zarr'), mode='w', shape=(3, 3))
Traceback (mostrecentcalllast):
File"<stdin>", line1, in<module>File"/Users/tom/workspace/zarr-python/src/zarr/api/synchronous.py", line45, inopenobj=sync(
^^^^^File"/Users/tom/workspace/zarr-python/src/zarr/sync.py", line92, insyncraisereturn_resultFile"/Users/tom/workspace/zarr-python/src/zarr/sync.py", line51, in_runnerreturnawaitcoro^^^^^^^^^^File"/Users/tom/workspace/zarr-python/src/zarr/api/asynchronous.py", line192, inopenstore_path=make_store_path(store, mode=mode)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File"/Users/tom/workspace/zarr-python/src/zarr/store/core.py", line84, inmake_store_pathraiseTypeErrorTypeErrorAdditional output
No response
Zarr version
3.0.0a1
Numcodecs version
0.12.1
Python Version
3.11.9
Operating System
Mac
Installation
pip
Description
In v2 it was fine to pass a
pathlib.Pathfor the store parameter, but this is not working in v3.This seems to be an oversight since the
StoreLiketype includesPath:zarr-python/src/zarr/store/core.py
Line 66 in 143faea
Steps to reproduce
Additional output
No response