Skip to content

Zarr open fails on ZipStore #141

Closed

Description

@jakirkham
In [1]: import zarr

In [2]: s = zarr.storage.ZipStore("reg_proj.zarr")

In [3]: z = zarr.open(s)
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
<ipython-input-3-37024ca9ed12> in <module>()
----> 1 z = zarr.open(s)

/zopt/conda2/envs/nanshenv/lib/python2.7/site-packages/zarr/creation.pyc in open_array(store, mode, shape, chunks, dtype, compressor, fill_value, order, synchronizer, filters, cache_metadata, path, **kwargs)
    414     elif mode == 'a':
    415         if contains_group(store, path=path):
--> 416             err_contains_group(path)
    417         elif not contains_array(store, path=path):
    418             init_array(store, shape=shape, chunks=chunks, dtype=dtype,

/zopt/conda2/envs/nanshenv/lib/python2.7/site-packages/zarr/errors.pyc in err_contains_group(path)
     21 
     22 def err_contains_group(path):
---> 23     raise KeyError('path %r contains a group' % path)
     24 
     25 

KeyError: "path '' contains a group"

Note: Running open_group on the store, s, proceeds without issues.

Activity

  1. added this to the v2.2 milestone on Oct 25, 2017
  2. self-assigned this
    on Nov 14, 2017
  3. added
    in progressSomeone is currently working on this
    and removed on Nov 14, 2017
  4. added
    enhancementNew features or improvements
    release notes doneAutomatically applied to PRs which have release notes.
    on Nov 19, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew features or improvementsin progressSomeone is currently working on thisrelease notes doneAutomatically applied to PRs which have release notes.

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions