Issue: ModuleNotFoundError: No module named 'langchain.schema'
Root Cause: LangChain reorganized imports in v0.3+. The langchain.schema module was moved to langchain_core.messages.
Fix Applied:
- Updated all workflow files to use
from langchain_core.messages import HumanMessage, SystemMessage - Added
langchain-core>=0.3.0to dependencies inpyproject.toml
Files Modified:
src/amber/workflows/on_demand.pysrc/amber/workflows/background.pysrc/amber/workflows/scheduled.pysrc/amber/workflows/webhook.pypyproject.toml
Issue: Pydantic v1 compatibility warning with Python 3.14
Root Cause: LangChain dependencies use Pydantic v1 which isn't fully compatible with Python 3.14+
Fix Applied:
- Added Python version constraint:
requires-python = ">=3.11,<3.14" - This ensures installation on Python 3.11, 3.12, or 3.13
Files Modified:
pyproject.toml
# Reinstall dependencies
pip install -e .
# Test service starts without errors
python -m amber.serviceExpected output:
{"event": "Starting Amber LangGraph service", ...}
{"event": "PostgreSQL checkpointer initialized", ...}
{"event": "Supervisor graph compiled", ...}
Service should start on http://localhost:8000