Errors
Every error code Skylark Edge reports, what causes it and what to do — plus fixes for installation problems.
Every error from the Python package is a SkylarkEdgeError with a code; the command line
prints the same code in brackets at the end of its message. Switch on the code, never the
message.
Error codes
| Code | What happened | What to do |
|---|---|---|
no_license_key | No license key was passed, set in SKYLARK_LICENSE_KEY or found in an activation file. | Give it your organization's key; see The license key. |
license_invalid | Skylark Central doesn't recognize the key. Any model keys on this machine are forgotten. | Check the key for typos. If it was replaced, use the new one. |
license_inactive | The key is right, but your organization has no active license. Any model keys on this machine are forgotten. | Check your licenses. Once one is active, download the models again. |
unknown_model | Your license doesn't include that model, or the name is misspelled. Or, when loading: the model needs a newer Skylark Edge. | Run skylark-edge models for the names you can use. If the message says to upgrade: pip install -U skylark-edge --index-url https://docs.skylarklabs.ai/simple/. |
unsupported_model | The name is a model Skylark Edge doesn't run: a TensorRT (_jetson_…) or Hailo (_hailo) build, or a model that isn't a detector this version knows. Nothing was downloaded. | Download the ONNX build the message names, for example cctv_detection. If the model is new, pip install -U skylark-edge --index-url https://docs.skylarklabs.ai/simple/. |
not_downloaded | The model isn't on this machine. | skylark-edge download <model> while online. |
grace_expired | More than 30 days since the last license check. | Connect the machine and run skylark-edge models once. See Running offline. |
clock_rollback | The system clock is more than an hour behind the latest time this machine has seen. | Correct the clock, or connect once. See The clock. |
offline | Skylark Central couldn't be reached, for something that needs it: listing, downloading, or a first load on a machine that has never checked its license. | Check the connection, and that outbound HTTPS to https://central.skylarklabs.ai is allowed. Behind a proxy, set HTTPS_PROXY. |
central_error | Skylark Central answered with an error of its own. | Try again later. If it persists, raise a support ticket with the message. |
download_failed | The download broke off or arrived the wrong size, and retrying didn't help. | Run the download again; it resumes. Check free disk space. |
decrypt_failed | The model file is damaged or doesn't match its key. | Download it again: skylark-edge download <model>. |
state_unreadable | The saved license state was made on another machine, or is damaged. | Connect once and download the models again. See What is kept on the machine. |
no_master_secret | This copy of Skylark Edge wasn't built by Skylark, so it can't open models. | Install it from Skylark's index, as in the quickstart. |
io_error | Reading or writing SKYLARK_HOME failed. | Check that the directory is writable and the disk isn't full. |
no_runtime | ONNX Runtime isn't installed. | pip install onnxruntime, or onnxruntime-gpu or onnxruntime-directml; see the quickstart. |
runtime_error | ONNX Runtime couldn't load or run the model, or the provider you named isn't available. | Try provider="cpu". For CUDA, check the driver and that CUDA 12 is installed. |
bad_image | The image couldn't be read: not a JPEG, PNG, BMP or WebP file, or an array of the wrong shape. | Pass a supported file, or an H × W × 3 uint8 array. |
bad_request | An argument isn't valid, such as an unknown provider. | The message names the valid values. |
Installation problems
The package is on Skylark's index, not on PyPI, so pip needs
--index-url https://docs.skylarklabs.ai/simple/. If that is there, check that your Python is 3.10 or
newer (python --version) and that your system is in Hardware:
pip shows no version at all for a system without a build.
ONNX Runtime is installed separately, before Skylark Edge. Install the one for your
hardware: pip install onnxruntime, or onnxruntime-gpu or onnxruntime-directml.
onnxruntime, onnxruntime-gpu and onnxruntime-directml install into the same place
and overwrite each other. Keep exactly one:
pip uninstall onnxruntime onnxruntime-gpu onnxruntime-directml, then install
Skylark Edge again with the extra you want.
With provider="auto", a GPU that can't start falls back to the CPU without an error.
Load with provider="cuda" (or "directml") to see why it can't start. The usual
reasons are the CPU-only onnxruntime package being installed instead of
onnxruntime-gpu, or a CUDA version other than 12.