Use it when the symptom is “Missing Dependency”: work through the layers in order and stop at the first one that fails.
Missing Dependency
Missing Dependency isolates absent, incompatible or unreachable runtime requirements such as modules, binaries, libraries, collections, providers, interpreters, services or external APIs.
1. Missing dependency: package/module/collection/binary not present or wrong version.
2. Use lock files and execution environments/containers.
3. Install pinned versions.
4. Document.
5. Rebuild images.
run → import/command → missing → install pinned
Context & applicabilityCommon mistakes · platform/version boundaries
Operational reference
Fast context before you go deeper.
Verification & Troubleshooting
Start with the observed symptom, prove the nearest boundary, and move outward only when the current state is understood.
Use the operational verification above to establish the expected state.
Capture the concrete output, symptom, packet, log or counter before changing anything.
Step 1 Operational evidence path Verify boundary
source revision → runtime image/host → manifest/lock → dependency resolution path → load/import/connect → compatible capability → operation → target verification
Healthy evidence: runner/runtime and dependency versions are reproducible, resolution chooses the intended artifact/service, preflight loads it successfully, and the original operation verifies.
Step 2 Failure modes and next checks Narrow the fault
Suspicious evidence: runners drift, unpinned latest packages are installed during incidents, PATH/module precedence is ignored, or external reachability is equated with functional compatibility.
Dependency presence is bounded evidence, but it does not show compatibility, correct resolution path, trusted provenance or functional external service behavior.
Step 3 Common mistakes Narrow the fault
- Missing module/collection on the runner but present on a laptop.
Evidence · 1 on this Topic
Expected observations and documentation recipes are reference material. Record actual output, device identity, scope and time before claiming a verified result.
- Package name present ≠ required version or architecture is active.
- Dependency installed ≠ runner resolves that instance.
- Lock file exists ≠ runtime environment matches it.
- External service DNS resolves ≠ dependency is functionally available.
pip check / ansible-galaxy collection list / Get-Module -ListAvailable— installed dependencies- Lock file vs environment — mismatch
- Execution environment image — consistency
ReferenceWhat it is1 section · depth on demand
Core model
Pin runtime image/host and dependency manifest/lock; inspect resolution path and exact version constraints; distinguish not-installed from wrong-version, wrong-architecture and unreachable-service cases; restore from trusted source; rerun dependency preflight before the original workload.
ReferenceImportant terms & boundaries2 sections · depth on demand
What this shows and what it does not
Missing Dependency owns generic automation dependency resolution; supply-chain trust belongs to Automation Security and tool-specific dependencies to their branches.
In depth
A missing dependency error means the automation expected a tool, library, module, collection or file that is not available where it runs: ModuleNotFoundError, command not found, couldn't resolve module/action, provider not found.
Checklist:
1. Which environment ran the job? (runner, container image, venv, execution environment)
2. Is the dependency declared? (requirements.txt, collections/requirements.yml, provider block)
3. Was it installed in that environment, and in the expected version?
4. Is the interpreter or PATH the one you think? (which python, ansible --version)
python -c 'import netmiko, sys; print(netmiko.__version__, sys.executable)'
ansible-galaxy collection list | grep cisco.ios
terraform providers
The lasting fix is to declare dependencies and build runners or execution environments from those declarations.
Additional reference context Scope · expected state · examples · history · terminology Open only when you need the supporting context
Verification history & basis
When and against what this Topic was checked. Later text edits do not count as a new check.
Authoritative/upstream documentation reviewed for bounded claims in Automation Troubleshooting > Missing Dependency. Documentation verification only; this is not observed lab or production Evidence.
Basis: https://learn.microsoft.com/en-us/azure/architecture/patterns/retry · confidence 94%Terms & aliases
Hover a linked term for a quick definition; click it to open its glossary entry. Aliases are other names that find this Topic in search.
Quick lookup tables
Missing Dependency troubleshooting proof-boundary map
Fast symptom/scope, first-failed-boundary, effective-outcome and recovery/closure map for Missing Dependency.
| Boundary | Healthy evidence | Suspicious evidence |
|---|---|---|
| Symptom / scope | Time window, immutable source/run identity, effective inputs and exact targets are explicit | Floating source, changed inputs or ambiguous targets destroy reproducibility |
| First failed boundary | Transport/auth/dependency/render/operation evidence identifies the earliest divergence | Investigation starts at the final error and skips earlier unproven boundaries |
| Effective outcome | Controller result is paired with target read-back and workload/service acceptance | Green execution state or changed symptom substitutes for effective-state verification |
| Recovery / closure | Minimal change restores the original test and regression/partial-state checks are clean | Broad retry or unrelated edits make the incident non-reproducible and hide residual state |