The bson package should not depend on the pymongo package

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.0
    • Affects Version/s: None
    • Component/s: None
    • Minor Change
    • None
    • None
    • None
    • None
    • None
    • None

      While researching PYTHON-1964 I discovered that json_util imports from pymongo.errors (and has for a few years). It really shouldn't. The pymongo package should depend on bson, not the other way around:

      ~/work/mongo-python-driver/bson $ git grep pymongo
      _cbsonmodule.c:     * pymongo.database.Database returns a new Collection instance for
      json_util.py:from pymongo.errors import ConfigurationError
      objectid.py:        # pickled with pymongo-1.9 or older.
      lines 1-3/3 (END)
      

      The bson package has its own errors module. We can define a ConfigurationError there instead.

            Assignee:
            Julius Park (Inactive)
            Reporter:
            Bernie Hackett
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: