Skip to content

RuntimeSetupError

RuntimeSetupError

Bases: RuntimeError

The solver could not be resolved, prepared, or validated.

Examples include a missing executable, an unsuccessful validation probe, checksum mismatch, or an invalid bundled runtime layout. Unsupported environment names raise ValueError instead. Network/archive/filesystem operations can also raise their underlying exceptions rather than this type.

Example
from femora import runtime
try:
    info = runtime.setup("local")
except runtime.RuntimeSetupError as error:
    print("Check the executable configuration:", str(error))
Note

Inspect the selected file, environment variable, PATH, and message before retrying. setup() validates startup, not your model's required features or numerical behavior. run() can raise this type when it cannot locate a solver, but reports a launch failure as RuntimeExecutionError.