davidlatwe / montydb

Monty, Mongo tinified. MongoDB implemented in Python !

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Although README says bson is optional but still being required

davidlatwe opened this issue · comments

Problem

>>> from montydb import MontyClient
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "...\montydb\__init__.py", line 19, in <module>
    from . import utils
  File "...\montydb\utils\__init__.py", line 2, in <module>
    from .io import (
  File "...\montydb\utils\io.py", line 7, in <module>
    from bson import decode_all, BSON
ModuleNotFoundError: No module named 'bson'

These bson import statements should be in somewhere else :

from bson import decode_all, BSON
from bson.codec_options import CodecOptions
from bson.py3compat import string_type
from bson.json_util import (
loads as _loads,
dumps as _dumps,
RELAXED_JSON_OPTIONS as _default_json_opts,
)