Missing Optional Dependencies
The extras supply the third-party libraries each part of the SDK runs on. The first call that needs one from an uninstalled extra raisesMissingOptionalDependency, with the install command in the message:
MissingOptionalDependency is both an AionError and an ImportError, so
except ImportError around an SDK import catches it.
A plain ModuleNotFoundError naming an aion.* module is a different failure:
the installation itself is incomplete. Recreate the environment and install the
SDK again rather than reinstalling over it.
aion serve Fails to Start
- Confirm an agent server extra is installed — see above.
- Confirm
aion.yamlexists and contains at least one agent. - Verify
pathtargets are importable. - If you expect control plane connectivity, ensure control plane environment variables are set.
- If you expect durable persistence, ensure
POSTGRES_URLis configured and the database is reachable.refusing to fall back to an in-memory storein the log means the URL is set but the database is not ready. - Check whether requested ports are already occupied.
Startup Confirmation Timeouts
Increase startup timeout for slower systems:Chat Cannot Reach Agent
- Confirm the proxy is running.
aion chatconnects tohttp://localhost:8000by default. Pass--hostwhen the proxy started on another port —aion serveprints the address it took.- To reach one specific agent, pass
--agent-idwith an ID configured inaion.yaml.
Chat Fails to Start
aion chat runs the terminal UI bundled with the Python package, which needs
Node.js 22+ on PATH. Without it the command exits before connecting:
Port Conflicts
Use a custom range:Configuration Validation Errors
- Ensure root key is
aion. - Ensure each agent has required
path. - Write
input_modesandoutput_modesas media types (image/png,image/*) or as the short namestext,json,image,audio,video. - Keep agent paths unique across entries.