-
Notifications
You must be signed in to change notification settings - Fork 4
Description
Hi, i want to try but find exception like bellow
from pathlib import Path
from tinydb import TinyDB
from BetterJSONStorage import BetterJSONStorage
path = Path('test2.json')
with TinyDB(path, access_mode="r+", storage=BetterJSONStorage) as db:
... dc = db.search(where("groups") != None)
...
Traceback (most recent call last):
File "", line 1, in
File "/home/doodlboks/riset/bispes/lib/python3.8/site-packages/tinydb/database.py", line 94, in init
self._storage: Storage = storage(*args, **kwargs)
File "/home/doodlboks/riset/bispes/lib/python3.8/site-packages/BetterJSONStorage/BetterJSONStorage.py", line 128, in init
self.load()
File "/home/doodlboks/riset/bispes/lib/python3.8/site-packages/BetterJSONStorage/BetterJSONStorage.py", line 170, in load
self._data = loads(decompress(db_bytes))
File "/home/doodlboks/riset/bispes/lib/python3.8/site-packages/blosc2/core.py", line 177, in decompress
return blosc2_ext.decompress(src, dst, as_bytearray)
File "blosc2_ext.pyx", line 404, in blosc2.blosc2_ext.decompress
RuntimeError: Cannot decompress