fix: resolve langchain dependency conflicts and improve setup instructions#202
Merged
fix: resolve langchain dependency conflicts and improve setup instructions#202
Conversation
…tions - Remove langchain-classic from pip deps (requires langchain-core>=1.2.19, conflicts with conda langchain 0.3.x; only used as fallback import) - Pin langchain-anthropic<1.0.0 to stay compatible with langchain-core<1.0.0 - Move npm install before uvicorn start to prevent reload-triggered ETIMEDOUT - Add --reload-exclude for frontend/node_modules to uvicorn command
dmpantiu
approved these changes
Mar 27, 2026
Collaborator
dmpantiu
left a comment
There was a problem hiding this comment.
LGTM. Note: pyproject.toml and requirements.txt still list langchain-classic — consider updating those for consistency in a follow-up.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
langchain-classicfrom pip dependencies inenvironment.yml— it requireslangchain-core>=1.2.19which overwrites the conda-installedlangchain-core<1.0.0and breakslangchain 0.3.x,langchain-openai, andlangchain-experimental. The package is only used as a fallback import (except ImportError), so the conda-providedlangchainalready covers it.langchain-anthropic<1.0.0to keep it compatible with the 0.3.x LangChain ecosystem.npm installruns beforeuvicorn --reload, preventing uvicorn's file watcher from detectingnode_modules/creation and triggering a restart that causesETIMEDOUTproxy errors in the frontend.--reload-exclude 'frontend/node_modules/*'to the uvicorn command as a safety net.Test plan
micromamba env create -f environment.ymlfrom scratch — no dependency conflict errorsimport langchainandimport langchain_anthropicwork in the created environment