Skip to content

"Unable to import module 'datadog_lambda.handler': cannot import name 'DEFAULT_CIPHERS'" #329

Closed
@pmaurais

Description

@pmaurais

Expected Behavior

The lambda runs and logs to DD

Actual Behavior

"Unable to import module 'datadog_lambda.handler': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/var/task/urllib3/util/ssl_.py)",

Likely related to urllib3/urllib3#2168

Steps to Reproduce the Problem

  1. Create a SAM template that uses the latest version of the DD Python Extension
  2. Create a Lambda that uses python 3.9
  3. sam build -u, sam deploy
  4. Attempt to execute the lambda

Specifications

  • Datadog Lambda Layer version: 43
  • Python version: 74

Stacktrace

[ERROR] Runtime.ImportModuleError: Unable to import module 'datadog_lambda.handler': cannot import name 'DEFAULT_CIPHERS' from 'urllib3.util.ssl_' (/var/task/urllib3/util/ssl_.py)
Traceback (most recent call last):

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions