crewai - ✅(Solved) Fix [BUG] Distribution `lancedb==0.30.1 can't be installed because it doesn't have a source distribution or wheel for the current platform [1 pull requests, 3 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
crewAIInc/crewAI#5045Fetched 2026-04-08 01:30:00
View on GitHub
Comments
3
Participants
2
Timeline
8
Reactions
0
Timeline (top)
referenced ×3commented ×2cross-referenced ×2labeled ×1

Run >crewai install

error

Resolved 149 packages in 107ms error: Distribution lancedb==0.30.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on Windows (win_amd64), but lancedb (v0.30.1) only has wheels for the following platforms: manylinux_2_17_aarch64, manylinux_2_28_aarch64, manylinux_2_28_x86_64, manylinux2014_aarch64, macosx_11_0_arm64; consider adding "sys_platform == 'win32' and platform_machine == 'AMD64'" to tool.uv.required-environments to ensure uv resolves to a version with compatible wheels An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 2.

Error Message

error error: Distribution lancedb==0.30.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 2.

Root Cause

Resolved 149 packages in 107ms error: Distribution lancedb==0.30.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform

Fix Action

Fixed

PR fix notes

PR #5046: fix: make lancedb an optional dependency to fix Windows installation (#5045)

Description (problem / solution / changelog)

Summary

Fixes #5045 — crewai install fails on Windows because lancedb >=0.30 dropped win_amd64 wheels.

lancedb is moved from a core dependency to the new memory-storage optional extra. When lancedb is absent, LanceDBStorage.__init__ and Memory.model_post_init raise an ImportError with actionable install instructions instead of a cryptic crash. Users who don't use memory features are no longer blocked on platforms where lancedb wheels aren't available.

Changes:

  • lib/crewai/pyproject.toml — removed lancedb>=0.29.2 from dependencies, added memory-storage extra
  • lancedb_storage.py — guarded import lancedb with try/except ImportError; __init__ raises early with install hint
  • unified_memory.py — wrapped LanceDBStorage import in model_post_init with a clear error
  • 3 new tests verifying the graceful error paths and custom storage bypass

Review & Testing Checklist for Human

  • Breaking change impact: This removes lancedb from the default install. Existing users who rely on Memory() (the default storage="lancedb") will get a runtime ImportError after upgrading unless they add pip install crewai[memory-storage]. Verify this is the desired tradeoff vs. pinning lancedb<0.30 as a less disruptive alternative.
  • Downstream install paths: Confirm crewai install / crewai create templates are updated (or don't need updating) so new projects that enable memory automatically pull in the memory-storage extra.
  • Unintended uv.lock change: The lockfile regeneration also changed the litellm specifier from >=1.74.9,<3 to >=1.74.9,<=1.82.6 — this matches pyproject.toml and should be fine, but verify it wasn't an accidental regression.
  • Test on actual Windows: The tests simulate a missing lancedb via monkeypatch. Ideally verify that pip install crewai on Windows now succeeds and pip install crewai[memory-storage] correctly pulls lancedb.

Notes

  • The duplicate install-hint string in lancedb_storage.py and unified_memory.py is intentional — the two raise sites have slightly different wording (one mentions StorageBackend, the other StorageBackend instance) and cover different failure modes (lancedb importable but broken vs. not importable at all).
  • Custom StorageBackend instances passed to Memory(storage=my_backend) bypass lancedb entirely and are unaffected.

Link to Devin session: https://app.devin.ai/sessions/5006188a47214b03a64aefb921b00bf2

Changed files

  • lib/crewai/pyproject.toml (modified, +3/-1)
  • lib/crewai/src/crewai/memory/storage/lancedb_storage.py (modified, +19/-1)
  • lib/crewai/src/crewai/memory/unified_memory.py (modified, +14/-1)
  • lib/crewai/tests/memory/test_unified_memory.py (modified, +59/-0)
  • uv.lock (modified, +6/-4)
RAW_BUFFERClick to expand / collapse

Description

Run >crewai install

error

Resolved 149 packages in 107ms error: Distribution lancedb==0.30.1 @ registry+https://pypi.org/simple can't be installed because it doesn't have a source distribution or wheel for the current platform

hint: You're on Windows (win_amd64), but lancedb (v0.30.1) only has wheels for the following platforms: manylinux_2_17_aarch64, manylinux_2_28_aarch64, manylinux_2_28_x86_64, manylinux2014_aarch64, macosx_11_0_arm64; consider adding "sys_platform == 'win32' and platform_machine == 'AMD64'" to tool.uv.required-environments to ensure uv resolves to a version with compatible wheels An error occurred while running the crew: Command '['uv', 'sync']' returned non-zero exit status 2.

Steps to Reproduce

Run >crewai install

Expected behavior

Screenshots/Code snippets

Operating System

Windows 10

Python Version

3.10

crewAI Version

last

crewAI Tools Version

1.11.1

Virtual Environment

Venv

Evidence

Possible Solution

Additional context

extent analysis

Fix Plan

To resolve the issue, you need to add a compatible wheel for the Windows platform or use a different version of lancedb that has a wheel for Windows.

Here are the steps:

  • Check if a newer version of lancedb is available with Windows support by running pip search lancedb.
  • If a compatible version is found, update the crewai configuration to use the new version.
  • If no compatible version is available, consider using a different package manager like conda that supports Windows.

Example code to update lancedb version in pyproject.toml:

[tool.uv.dependencies]
lancedb = { version = "0.30.2", markers = "sys_platform == 'win32' and platform_machine == 'AMD64'" }

Alternatively, you can try to install an older version of lancedb that has a wheel for Windows:

pip install lancedb==0.29.1

Verification

After applying the fix, run crewai install again to verify that the issue is resolved. If the installation is successful, the error message should disappear.

Extra Tips

  • Make sure to check the compatibility of packages before installing them on a new platform.
  • Consider using a virtual environment to isolate package installations and avoid conflicts.
  • If you're using an older version of Python, consider upgrading to a newer version for better package support.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

FAQ

Expected behavior

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING