Skip to content

[BUG]: "No module named 'langchain_core'" when updating ddtrace from v2.16.x #13328

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
bayshann-matt-chamberlain opened this issue May 5, 2025 · 0 comments
Labels

Comments

@bayshann-matt-chamberlain
Copy link

bayshann-matt-chamberlain commented May 5, 2025

Tracer Version(s)

2.16.4

Python Version(s)

3.11.11, 3.13.3

Pip Version(s)

25.1

Bug Report

When we upgrade past version 2.16.4 (2.17.x) onwards, we see this error. If we add the langchain package explicitly, the problem is solved.

It seems to be related to the 2.17 where I'm guessing langchain was introduced? https://github.com/DataDog/dd-trace-py/releases/tag/v2.17.0

Is there an expectation that we need to include langchain? If so is it in the documentation somewhere? Would it be better to include the package as part of your dependencies?

Thanks!

Reproduction Code

No response

Error Logs

[ERROR] Runtime.ImportModuleError: Unable to import module 'datadog_lambda.handler': No module named 'langchain_core'

Libraries in Use

  • datadog-lambda v6.107.0
  • lambda-extension public.ecr.aws/datadog/lambda-extension:77

Operating System

Linux 7ec7c6b4859e 6.10.14-linuxkit #1 SMP Tue Apr 15 16:00:54 UTC 2025 x86_64 x86_64 x86_64 GNU/Linux (Amazon Linux 2023.7.20250331)

@bayshann-matt-chamberlain bayshann-matt-chamberlain changed the title [BUG]: "No module named 'langchain_core'" when updating ddtrace from v2.16.4 [BUG]: "No module named 'langchain_core'" when updating ddtrace from v2.16.x May 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant