Reference only

NumPy ABI errors: _ARRAY_API and dtype size changed

These messages usually concern the interface between NumPy and a compiled extension, not a broken workflow connection. Locate the first implicated extension before changing NumPy.

Symptoms and scope

These messages usually concern the interface between NumPy and a compiled extension, not a broken workflow connection. Locate the first implicated extension before changing NumPy.

Error fragments for search; IDs, values and filenames may vary:

_ARRAY_API not found
numpy.dtype size changed
A module that was compiled using NumPy 1.x

Source-supported context

NumPy's troubleshooting explains incompatibilities between compiled extensions and NumPy versions. The useful traceback entry is often the first package outside NumPy, rather than the final import wrapper. Source 1 Source 2

Cases to distinguish

1. A compiled extension built for an older NumPy ABI is imported after an upgrade.

2. An old binary remains on the actual runtime's import path.

3. Different custom nodes require incompatible versions of the numerical stack.

Diagnostic sequence

The sequence below is an editorial procedure based on the cited context, not a diagnosis already confirmed for your environment.

Step 1. Record NumPy's version and file location, plus the first compiled package named in the traceback.

Step 2. Check whether that package offers a compatible build. Reinstalling NumPy repeatedly does not rebuild another project's binary.

Step 3. If the failure began with NumPy 2 and no compatible extension is available, consider a documented NumPy 1 fallback only in a recoverable environment and after checking other requirements.

Step 4. Run pip check, import the implicated extension, then execute a small affected task. Preserve the combination that works.

Commands and request examples

Use the environment and shell identified above. Paths and variables are examples to adapt; these commands/snippets were not executed for your machine.

python -c "import numpy; print(numpy.__version__); print(numpy.__file__)"
python -m pip check

Completion check

Both the extension import and its actual operation succeed in the ComfyUI interpreter, with no newly broken declared requirements.

Limitations and cautions

numpy<2 is a conditional fallback, not a universal repair command. One node's workaround can break another node in the same environment.

Original sources

Localization prepared: 2026-09-22. The source-check dates above were inherited from the existing article; this translation does not claim they were all rechecked today. No GPU run, minimum-memory measurement or runtime guarantee is supplied.

Didn't solve it?

Check the next possible cause

The same symptom can come from a different cause. Work through these related entries in order.

  1. DLL load failed: identify the native extension instead of downloading loose DLLsDLL load failedThe named Python module can depend on another missing or incompatible runtime library. Native import failure is different from a top-level Python package simply being absent.
  2. pip ResolutionImpossible: resolve conflicting requirements, not the download speedResolutionImpossibleDependency resolution failures mean pip could not satisfy the requested constraints. Separate a real conflict from slow backtracking, timeouts and certificate failures before retrying.
Paste your full log into the error finder

Was this page helpful?

Anonymous. Only a yes/no counter is stored; no account, IP address or device details.

Sources & references

Localized from the existing Chinese research draft. Original source-check dates are retained; this translation is not new technical verification or a runtime test.

01NumPy troubleshooting import errorsSource checked: 2026-09-2102pip checkSource checked: 2026-09-21

Report an issue · c799e541-7df8-50ad-8b89-e39e44b80107