Skip to content

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

@uittorio

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.

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