Closed joamatab closed 5 years ago
.all() is in 0.5.0 not 0.4.0
This is still an issue.
I've installed 0.5.1 from tag 0.5.1:
pipenv install git+https://github.com/Miserlou/NoDB.git@0.5.1#egg=nodb
or, locally from the 0.5.1 tarball.
(btw, the version in setup.py still shows 0.4.0)
nodb.all() returns the error
Traceback (most recent call last): File "
", line 1, in File "/home/dschofield/clients/mdg/NoDB-0.5.1/nodb/init.py", line 202, in all deserialized_objects.append(self._deserialize(serialized)) File "/home/dschofield/clients/mdg/NoDB-0.5.1/nodb/init.py", line 252, in _deserialize deserialized = json.loads(serialized) File "/usr/local/lib/python3.6/json/init.py", line 354, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.6/json/decoder.py", line 339, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/usr/local/lib/python3.6/json/decoder.py", line 357, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Im using the latest version
pip install git+https://github.com/Miserlou/NoDB.git
After the i run the example,
I tried to show all the values stored using
nodb.all()