Explain a Python import/attribute/signature error
explain_errorDiagnose Python ImportError, ModuleNotFoundError, AttributeError, and TypeError failures caused by library API changes. Returns what changed, in which release, replacements, and the version pin that restores the old API.
Instructions
Call this when a third-party Python library raises ImportError ('cannot import name'), ModuleNotFoundError, AttributeError ('has no attribute'), or TypeError ('unexpected keyword argument' / 'missing required argument'). Returns what changed, in which release, the deprecation message, replacement candidates with evidence, and the version pin that restores the old API. Pass installed versions for an exact answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| traceback | Yes | Traceback text, or at least the final 'SomeError: message' line. Long logs are fine: only the last 20,000 characters are analysed. | |
| pip_freeze | No | Output of `pip freeze` / `uv pip freeze` / `pip list`. | |
| installed_versions | No | Installed versions, e.g. {"httpx": "0.28.1"}. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| note | No | ||
| signal | Yes | ||
| findings | Yes | ||
| not_covered | No | Packages involved in the error that DepTime does not index. |