AWS Lambda tests are failing due to missing dnspython

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Unknown
    • 4.16.0
    • Affects Version/s: None
    • Component/s: Infrastructure
    • None
    • 🔵 Done
    • 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?
    • None
    • None
    • None
    • None
    • None
    • None

      AWS Lambda tests are failing due to PYTHON-3414

       [2025/09/22 15:28:28.415] Lambda function ARN: arn:aws:lambda:us-east-1:857654397073:function:dbx-python-lambda-56e4533b55a1e35c-MongoDBFunction-ZveczN2ptuWu
       [2025/09/22 15:28:32.558] {"errorMessage": "The \"dnspython\" module must be installed to use mongodb+srv:// URIs. To fix this error install pymongo again:\n /var/lang/bin/python3.10 -m pip install pymongo>=4.3", "errorType": "ConfigurationError", "requestId": "", "stackTrace": ["  File \"/var/lang/lib/python3.10/importlib/__init__.py\", line 126, in import_module\n    return _bootstrap._gcd_import(name[level:], package, level)\n", "  File \"<frozen importlib._bootstrap>\", line 1050, in _gcd_import\n", "  File \"<frozen importlib._bootstrap>\", line 1027, in _find_and_load\n", "  File \"<frozen importlib._bootstrap>\", line 1006, in _find_and_load_unlocked\n", "  File \"<frozen importlib._bootstrap>\", line 688, in _load_unlocked\n", "  File \"<frozen importlib._bootstrap_external>\", line 883, in exec_module\n", "  File \"<frozen importlib._bootstrap>\", line 241, in _call_with_frames_removed\n", "  File \"/var/task/app.py\", line 114, in <module>\n    client = MongoClient(os.environ[\"MONGODB_URI\"], event_listeners=listeners)\n", "  File \"/var/task/pymongo/synchronous/mongo_client.py\", line 804, in __init__\n    res = _validate_uri(\n", "  File \"/var/task/pymongo/uri_parser_shared.py\", line 524, in _validate_uri\n    raise ConfigurationError(\n"]}Exiting due to FunctionError!
      

      https://spruce.mongodb.com/task/mongo_python_driver_faas_lambda_test_aws_lambda_deployed_6fe85436ae62de6e352b87c2526c796e05471559_25_09_22_22_15_02/logs?execution=0

            Assignee:
            Steve Silvester
            Reporter:
            Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: