[SERVER-50774] Update PyMongo requirement to 3.9.0+ Created: 05/Sep/20  Updated: 29/Oct/23  Resolved: 03/Oct/20

Status: Closed
Project: Core Server
Component/s: Tools
Affects Version/s: None
Fix Version/s: 4.9.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: Ryan Egesdahl (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Dev Platform 2020-10-05
Participants:

 Description   

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'".



 Comments   
Comment by Githook User [ 03/Oct/20 ]

Author:

{'name': 'Ryan Egesdahl', 'email': 'ryan.egesdahl@mongodb.com', 'username': 'deriamis'}

Message: SERVER-50774 Update PyMongo requirement to 3.9.0+

The GDB and LLDB pretty-printers were updated to call bson.decode() in
SERVER-43055, and the bson.decode() convenience method was introduced in
PyMongo 3.9.0. However, we never updated the required PyMongo version in
our build requirements. This change updates the requirement so debugging
works properly with newer server versions.
Branch: master
https://github.com/mongodb/mongo/commit/ebcf26aa0080bdd63392e0406c9b9336de3c4582

Generated at Thu Feb 08 05:23:32 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.