Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-4756

Optional `pymongo[srv]` extra requirement breaks in 4.8,0

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Detailed steps to reproduce the problem?

      Install pymongo==4.8.0.

      Because of this change:
      https://github.com/mongodb/mongo-python-driver/compare/master...v4.8#diff-60f61ab7a8d1910d86d9fda2261620314edcae5894d5aaa236b821c7256badd7L154-L156
      The `srv` referenced by some packages (eg: https://github.com/celery/celery/blob/main/requirements/extras/mongodb.txt) breaks installations.

      See also https://github.com/celery/celery/issues/9254

      Definition of done: what must be done to consider the task complete?

      The exact Python version used, with patch level:

      $ python -c "import sys; print(sys.version)"

      The exact version of PyMongo used, with patch level:

      $ python -c "import pymongo; print(pymongo.version); print(pymongo.has_c())"

      4.8.0
      True

      Describe how MongoDB is set up. Local vs Hosted, version, topology, load balanced, etc.

      Local, basic configuration, using PyMongo driver.

      The operating system and version (e.g. Windows 7, OSX 10.8, ...)

      Ubuntu 20.04 LTS

      Web framework or asynchronous network library used, if any, with version (e.g. Django 1.7, mod_wsgi 4.3.0, gevent 1.0.1, Tornado 4.0.2, ...)

      Pyramid 2.0.2

      Celery 5.3.5

      Security Vulnerabilities

      If you’ve identified a security vulnerability in a driver or any other MongoDB project, please report it according to the instructions here

            Assignee:
            steve.silvester@mongodb.com Steve Silvester
            Reporter:
            francis.charette.migneault@gmail.com Francis Charette-Migneault
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: