CrewAI errors / Install

AttributeError: _ARRAY_API not found; ImportError: numpy.core.multiarray failed to import

platform: CrewAI / category: Install

Cause

A transitive dependency (typically onnxruntime) was compiled against NumPy 1.x and cannot load under NumPy 2.x, which removed the legacy numpy.core namespace.

Fix

Downgrade NumPy with pip install 'numpy<2' as an immediate fix, or upgrade onnxruntime to a NumPy-2-compatible build. Check compiled deps with pip list | grep onnx and update any that predate NumPy 2 support.

Source thread →

Part of the Automation Error Index — CrewAI errors: browse all.

Hitting an automation error we have not covered?

AutomateLab builds and debugs n8n, Make, and agent workflows as fixed-scope projects. If something is broken in production, tell us what you are seeing.

Describe the problem