Files
crewAI/lib
Devin AI 072f4aa2c2 fix: make lancedb an optional dependency to fix Windows installation (#5045)
lancedb >=0.30 dropped Windows (win_amd64) wheels, causing 'crewai install'
to fail on Windows with:
  Distribution lancedb==0.30.1 can't be installed because it doesn't have a
  source distribution or wheel for the current platform

Changes:
- Move lancedb from core dependencies to [project.optional-dependencies]
  under a new 'memory-storage' extra
- Guard the top-level 'import lancedb' in lancedb_storage.py with
  try/except ImportError, raising a clear install hint
- Guard the lazy import in Memory.model_post_init with a helpful
  ImportError message pointing to 'pip install crewai[memory-storage]'
- Add 3 tests verifying graceful handling when lancedb is absent

Co-Authored-By: João <joao@crewai.com>
2026-03-24 18:32:33 +00:00
..