Skip to content

No such model

Type
https://pyeconomics.dev/problems/model-not-found
HTTP status
404
Exit code
5 (not found)
Raised as
ModelNotFoundError

What it means

No registered model, or alias, has the id asked for.

What to do

Check the id, which is the domain and the name joined by a dot (fixed_income.duration). The detail suggests close matches, and the models index lists every id.

Every pyeconomics surface reports a failure as a problem in the form of RFC 9457: its type, title, HTTP status and detail, and the exit code the command line returns. A problem never holds a key, a file path, a host or an upstream URL. Every problem type.