Compare commits

...

1 Commits

Author SHA1 Message Date
Iris Clawd
4f29750a83 fix: auto-use qdrant-edge on Windows where lancedb has no wheels (#5045)
lancedb v0.30.x only ships wheels for Linux and macOS. On Windows,
`crewai install` fails because there is no compatible distribution.

This change:
- Makes lancedb a platform-conditional dependency (non-Windows only)
- Adds qdrant-edge-py as an automatic dependency on Windows
- Defaults Memory storage to qdrant-edge on Windows

Closes #5045
2026-03-26 16:25:06 +00:00
2 changed files with 4 additions and 2 deletions

View File

@@ -43,7 +43,8 @@ dependencies = [
"uv~=0.9.13",
"aiosqlite~=0.21.0",
"pyyaml~=6.0",
"lancedb>=0.29.2",
"lancedb>=0.29.2; sys_platform != 'win32'",
"qdrant-edge-py>=0.6.0; sys_platform == 'win32'",
]
[project.urls]

View File

@@ -2,6 +2,7 @@
from __future__ import annotations
import sys
from concurrent.futures import Future, ThreadPoolExecutor
import contextvars
from datetime import datetime
@@ -68,7 +69,7 @@ class Memory(BaseModel):
description="LLM for analysis (model name or BaseLLM instance).",
)
storage: Annotated[StorageBackend | str, PlainValidator(_passthrough)] = Field(
default="lancedb",
default="qdrant-edge" if sys.platform == "win32" else "lancedb",
description="Storage backend instance or path string.",
)
embedder: Any = Field(