Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-14274

Recommend installing python driver with 'pymongo[srv]' to support SRV

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Resolved
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: drivers
    • Labels:
      None
    • Last comment by Customer:
      true
    • Story Points:
      1
    • Sprint:
      DevEd Q1S3 Haleakalā 03/02

      Description

      Description

      The documentation page for installing PyMongo should be updated to include the srv extra needed to connection to Atlas with "mongodb+srv://" connection strings:

      python -m pip install 'pymongo[srv]'
      

      Otherwise the user will get this error:

      >>> client = pymongo.MongoClient(
      ...    "mongodb+srv://<username>:<password>@<cluster-url>/test?retryWrites=true&w=majority")
      Traceback (most recent call last):
        File "<stdin>", line 1, in <module>
        File "/Users/shane/.venv/lib/python3.9/site-packages/pymongo/mongo_client.py", line 639, in __init__
          res = uri_parser.parse_uri(
        File "/Users/shane/.venv/lib/python3.9/site-packages/pymongo/uri_parser.py", line 428, in parse_uri
          raise ConfigurationError('The "dnspython" module must be '
      pymongo.errors.ConfigurationError: The "dnspython" module must be installed to use mongodb+srv:// URIs
      

      Scope of changes

      Impact to Other Docs

      MVP (Work and Date)

      Resources (Scope or Design Docs, Invision, etc.)

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              nathan.leniz Nathan Leniz
              Reporter:
              shane.harvey Shane Harvey
              Participants:
              Last commenter:
              Shane Harvey Shane Harvey
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since reply:
                20 weeks, 3 days ago
                Date of 1st Reply: