You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cannot use ddtrace 4.X.X with datadog-lambda 8.121.0 #713
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
create a file called requirements.txt with the following content
datadog-lambda>=8.121.0
ddtrace>=4.3.0
create venv
python3 -m venv .venv
source .venv/bin/activate
install requirements
pip install -r requirements.txt
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.
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!
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!
Activity
rithikanarayan commentedon Jan 30, 2026
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!
rithikanarayan commentedon Feb 2, 2026
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!