finally i got it working on mbp m4 + sequoia 15.1.1 + python 3.11.10.
- use python 3.11.10.
conda create -p /path/to/venv python=3.11.10
python 3.12 does not work, as any onnxruntime>=1.15.0 will report the wheel errors while chromadb requires onnxruntime>=1.14.1.
- use the previous crewai 0.80.0, not the latest 0.83.0.
pip install crewai==0.80.0
pip install socksio # also required to create crew
- modify dependencies in pyproject.toml and onnxruntime==1.15.0:
[project]
name = “news”
version = “0.1.0”
description = “news using crewAI”
authors = [{ name = “Your Name”, email = “you@example.com” }]
requires-python = “>=3.10,<=3.13”
dependencies = [
“crewai[tools]>=0.80.0,<1.0.0”,
“onnxruntime==1.15.0”,
“socksio>=1.0.0”,
“pyarrow==17.0.0”,
]
[project.scripts]
news = “news.main:run”
run_crew = “news.main:run”
train = “news.main:train”
replay = “news.main:replay”
test = “news.main:test”
[build-system]
requires = [“hatchling”]
build-backend = “hatchling.build”
now crewai install works. i see a “failed to clone files …” warning during crewai install. i just ignored. seems no hurt.
hope the above helps.