fix: auto-use qdrant-edge on Windows where lancedb has no wheels (#5045)#5113
Open
iris-clawd wants to merge 1 commit intomainfrom
Open
fix: auto-use qdrant-edge on Windows where lancedb has no wheels (#5045)#5113iris-clawd wants to merge 1 commit intomainfrom
iris-clawd wants to merge 1 commit intomainfrom
Conversation
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
4f29750 to
181a621
Compare
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.
Problem
crewai installfails on Windows becauselancedb(a hard dependency) does not publish Windows wheels — only Linux and macOS are supported.Reported in #5045.
Solution
1. Platform-conditional dependency (
pyproject.toml)lancedb>=0.29.2is now installed only on non-Windows platforms (sys_platform != "win32")qdrant-edge-py>=0.6.0is automatically installed on Windows (sys_platform == "win32")2. Auto-detect default storage backend (
unified_memory.py)Memory.storagefield now defaults to"qdrant-edge"on Windows and"lancedb"everywhere elsesys.platformat class definition time, so no runtime overheadChanges
lib/crewai/pyproject.toml— make lancedb conditional, add qdrant-edge-py for Windowslib/crewai/src/crewai/memory/unified_memory.py— importsys, change default storage to platform-awareNotes
qdrant_edge_storage.py), so this just wires it as the default on Windowsstorage="lancedb"if they install it manuallyCloses #5045
Note
Medium Risk
Changes packaging and default memory backend selection on Windows, which can impact installation and persistence/recall behavior for Windows users. Non-Windows behavior should remain unchanged aside from dependency markers.
Overview
Fixes Windows installs by making the vector-store dependency platform-specific:
lancedbis now excluded onwin32andqdrant-edge-pyis installed instead.Updates
Memoryinunified_memory.pyto defaultstoragetoqdrant-edgeon Windows (andlancedbelsewhere), aligning runtime defaults with the new dependency behavior.Written by Cursor Bugbot for commit 181a621. This will update automatically on new commits. Configure here.