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
Call sentry_sdk.init() with any integration that auto-enables LangchainIntegration
Start gunicorn workers
Expected Result
LangchainIntegration degrades gracefully — AgentExecutor falls back to None and the application starts normally.
Actual Result
Worker process crashes at startup with:
ModuleNotFoundError: No module named 'langchain_classic'
from langchain_classic.agents import AgentExecutor
File ".../sentry_sdk/integrations/langchain.py", line 60, in
File ".../gunicorn/arbiter.py", line 608, in spawn_worker
error [ERROR] Exception in worker process
Root cause — two problems in langchain.py lines 58–66:
How do you use Sentry?
Sentry Saas (sentry.io)
Version
2.60.0
Steps to Reproduce
Bug: LangchainIntegration crashes on Python 3.14 —
ModuleNotFoundError: No module named 'langchain_classic'Environment
python:3.14-slim-bookworm)Steps to Reproduce
sentry-sdk==2.60.0+langchain==0.3.25sentry_sdk.init()with any integration that auto-enablesLangchainIntegrationExpected Result
LangchainIntegrationdegrades gracefully —AgentExecutorfalls back toNoneand the application starts normally.Actual Result
Worker process crashes at startup with:
ModuleNotFoundError: No module named 'langchain_classic'
from langchain_classic.agents import AgentExecutor
File ".../sentry_sdk/integrations/langchain.py", line 60, in
File ".../gunicorn/arbiter.py", line 608, in spawn_worker
error [ERROR] Exception in worker process
Root cause — two problems in
langchain.pylines 58–66: