method.dependency_missing
A dependency of the method is not available
| Type | https://mthds.ai/errors/method.dependency_missing |
| Family | method: The method as written, the validation vocabulary included. |
| Domain | method: the method's author acts, by changing the method |
| Retry | no: repeating the operation fails the same way |
| HTTP status | 422 |
| Raised as | a problem document, sent as the body of an HTTP response or kept in a run's record |
What it means
A package or a function the method depends on is not available here, no version satisfies the method's constraints, the dependencies form a cycle, or this runtime cannot satisfy a Python requirement of the tree's requirements.txt.
What to do
Check the dependency's name and version constraint, in the manifest or in requirements.txt, and correct or loosen it so that an available version satisfies it.
Next steps
A problem carries the step aimed at whoever reads it: the first when its reader is the domain's actor, the method's author, and the second for any other reader.
| Reader | Kind | Detail |
|---|---|---|
| The domain's actor | change_method |
Declare a dependency this runtime can satisfy in place of '{name}', then send the method again. |
| Any other reader | contact_owner |
Ask the method's owner to declare a dependency this runtime can satisfy in place of '{name}'. |
Detail
The problem's detail is written from this template, filled with the occurrence's parameters:
The method depends on the
{kind}'{name}', which is not available here (reason:{reason}).
Parameters
Every parameter is present on every occurrence of the code.
| Name | Type | Description |
|---|---|---|
kind |
one of package, function, requirement |
What is missing: a package, a function the method calls, or a Python requirement of the tree's requirements.txt. |
name |
identifier |
The missing dependency's name. |
reason |
one of not_found, no_matching_version, cycle |
Why it is not available: it exists nowhere this runtime looks, no version satisfies the method's constraints, or the dependencies form a cycle. |
See also
- Dependencies
- Method Tree
- Error Registry, which describes the members of this page
- Error Codes, every code of the core registry