Skip to content

Cannot use ddtrace 4.X.X with datadog-lambda 8.121.0 #713

Closed

Description

@uittorio

Expected Behavior

When installing requirements.txt with datadog-lambda 8.121.0 ddtrace it should allow to install ddtrace 4.3.0

Actual Behavior

It gives an error
ERROR: Cannot install -r requirements.txt (line 1) and ddtrace>=4.3.0 because these package versions have conflicting dependencies.

Steps to Reproduce the Problem

  1. create a file called requirements.txt with the following content
datadog-lambda>=8.121.0
ddtrace>=4.3.0
  1. create venv
python3 -m venv .venv
source .venv/bin/activate
  1. install requirements
pip install -r requirements.txt
  1. See results
Collecting datadog-lambda>=8.121.0 (from -r requirements.txt (line 1))
  Downloading datadog_lambda-8.121.0-py3-none-any.whl.metadata (994 bytes)
Collecting ddtrace>=4.3.0 (from -r requirements.txt (line 2))
  Downloading ddtrace-4.3.0-cp312-cp312-manylinux2014_x86_64.manylinux_2_17_x86_64.whl.metadata (3.6 kB)
Collecting datadog<1.0.0,>=0.51.0 (from datadog-lambda>=8.121.0->-r requirements.txt (line 1))
  Using cached datadog-0.52.1-py2.py3-none-any.whl.metadata (10 kB)
INFO: pip is looking at multiple versions of datadog-lambda to determine which version is compatible with other requirements. This could take a while.
ERROR: Cannot install -r requirements.txt (line 1) and ddtrace>=4.3.0 because these package versions have conflicting dependencies.

Specifications

  • Datadog Lambda Layer version: N/A
  • Python version: 3.12.3

Is there a better way to install dependencies to make it working without forcing an install? I've noticed that the project.toml in datadog-lambda should support both version depending on the python version.

Activity

  1. rithikanarayan commented on Jan 30, 2026

    @rithikanarayan
    Collaborator

    Hello @uittorio, thanks for reporting this issue! We apologize; we have confirmed this behavior and are investigating right now. We expect to have a fix in an upcoming release in the next few weeks.

    In the meantime, to be able to run your Lambda, we suggest pinning ddtrace to a version <4 or using the lambda layer if possible. Feel free to reach out with any additional questions/issues; we hope to have an update for you shortly!

  2. rithikanarayan commented on Feb 2, 2026

    @rithikanarayan
    Collaborator

    Hi again @uittorio, thanks for your patience! The newest version of datadog-lambda-python (v8.122.0) released just now should solve this issue. I have tested it against your steps to reproduce, and you should now be able to use the latest version of ddtrace with any lambdas Python 3.10 or above. Please let me know if you run into any problems; closing this issue now!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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