Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-50774

Update PyMongo requirement to 3.9.0+

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.9.0
    • Affects Version/s: None
    • Component/s: Tools
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Dev Platform 2020-10-05

      The GDB and LLDB pretty-printers (in mongo_printers.py and lldb_printers.py) were updated to call bson.decode() inĀ SERVER-43055. The bson.decode() convenience method was introduced in PyMongo 3.9.0, but in core.req we require only "pymongo >= 3.0, != 3.6.0". If we depend on the bson.decode() method we must require "pymongo >= 3.9.0".

      Currently, if you have PyMongo before 3.9.0 and try to print a BSONObj in the GDB console, you see something like "AttributeError: module 'bson' has no attribute 'decode'".

            Assignee:
            ryan.egesdahl@mongodb.com Ryan Egesdahl (Inactive)
            Reporter:
            jesse@mongodb.com A. Jesse Jiryu Davis
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: