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

Test Failure - test_srv_max_hosts_kwarg when dnspython is not installed

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

       [2021/10/27 07:43:37.928] ERROR: test_srv_max_hosts_kwarg (test_client.TestClient)
       [2021/10/27 07:43:37.928] ----------------------------------------------------------------------
       [2021/10/27 07:43:37.928] Traceback (most recent call last):
       [2021/10/27 07:43:37.928]   File "/data/mci/69175b8d84eaa784ac4f2921ef027568/src/test/test_client.py", line 1645, in test_srv_max_hosts_kwarg
       [2021/10/27 07:43:37.928]     client = MongoClient(
       [2021/10/27 07:43:37.928]   File "/data/mci/69175b8d84eaa784ac4f2921ef027568/src/pymongo/mongo_client.py", line 670, in __init__
       [2021/10/27 07:43:37.928]     res = uri_parser.parse_uri(
       [2021/10/27 07:43:37.928]   File "/data/mci/69175b8d84eaa784ac4f2921ef027568/src/pymongo/uri_parser.py", line 456, in parse_uri
       [2021/10/27 07:43:37.928]     raise ConfigurationError(
       [2021/10/27 07:43:37.928] pymongo.errors.ConfigurationError: The "dnspython" module must be installed to use mongodb+srv:// URIs. To fix this error install pymongo with the srv extra:
       [2021/10/27 07:43:37.928]  /usr/local/opt/python@3.9/bin/python3.9 -m pip install "pymongo[srv]"
      

            Assignee:
            julius.park@mongodb.com Julius Park (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: