Skip to content

Upgrading to 3.77.0 & Python 3.9 Results in Import Error #684

@kgochenour

Description

@kgochenour

Describe what happened:
We use the DD provided cloudformation stack to deploy the Lambda Log forwarder. However it was on version 3.59.0. We upgraded to 3.77.0 using the latest.yaml template. The update went through, but suddenly the lambda failed all invocations with the following:

[ERROR] Runtime.ImportModuleError: Unable to import module 'lambda_function': cannot import name '_rand' from 'ddtrace.internal' (/var/task/ddtrace/internal/__init__.py)
Traceback (most recent call last):

Manually changing the run time from Python 3.9 to 3.8 fixed this issue.

As a result we rolled back to 3.73.0 which is the last Python 3.8 deployment, and everything is working OK.

Describe what you expected:
Expected to run latest.yaml Cloudformation template and the Log Forwarder to work.

Steps to reproduce the issue:
Deployed latest.yaml as an update to our CloudFormation stack.

Metadata

Metadata

Assignees

No one assigned

    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