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
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'
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
Tracer Version(s)
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 thelangchain
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.0Is 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
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)
The text was updated successfully, but these errors were encountered: