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

windows lmdb storage open error #479

Open
kaonick opened this issue Sep 27, 2019 · 0 comments
Open

windows lmdb storage open error #479

kaonick opened this issue Sep 27, 2019 · 0 comments

Comments

@kaonick
Copy link

kaonick commented Sep 27, 2019

Simple test sample below:

import os
import zarr
store = zarr.LMDBStore('array.mdb')
z = zarr.zeros((10, 10), chunks=(5, 5), store=store, overwrite=True)
z[...] = 42
store.close()  # don't forget to call this when you're done

Problem description

Crash in storage.py when open.lmdb(,x).
I think cause by map_size too big.
original:
map_size = (2**40 if sys.maxsize >= 2**32 else 2**28)
will raise
File "D:\Programs\anaconda3\envs\py36\lib\site-packages\zarr\storage.py", line 1613, in __init__ self.db = lmdb.open(path, **kwargs) lmdb.Error: D:\WS\WS_Python\Homeworks\20190927pytorch_pipeline_zarr\array.mdb: �ϺЪ��Ŷ������C
to change map_size =500000000 then just ok.

Version and installation information

Please provide the following:

  • zarr.__version__ :2.3.2
  • Version of Python interpreter:3.6.6
  • Operating system (Windows 10)
  • How Zarr was installed (using pip into virtual environment)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant