{"record":{"id":"81d98c74aa8748d1","repo":"ruvnet/RuView","slug":"core-dependencies-not-found-make-sure-you-install","errorCode":null,"errorMessage":"Core dependencies not found. Make sure you installed from the repository root:\n  cd wifi-densepose && pip install -e .\nOr install the v1 package:\n  cd wifi-densepose/v1 && pip install -e .","messagePattern":"Core dependencies not found\\. Make sure you installed from the repository root:\n  cd wifi-densepose && pip install -e \\.\nOr install the v1 package:\n  cd wifi-densepose/v1 && pip install -e \\.","errorType":"exception","errorClass":"ImportError","httpStatus":null,"severity":"error","filePath":"wifi_densepose/__init__.py","lineNumber":67,"sourceCode":"        \"\"\"Start the sensing system (blocking until ready).\"\"\"\n        import asyncio\n\n        loop = _get_or_create_event_loop()\n        loop.run_until_complete(self._async_start())\n\n    async def _async_start(self):\n        try:\n            from src.config.settings import get_settings\n            from src.services.orchestrator import ServiceOrchestrator\n\n            settings = get_settings()\n            self._orchestrator = ServiceOrchestrator(settings)\n            await self._orchestrator.initialize()\n            await self._orchestrator.start()\n            self._running = True\n            logger.info(\"WiFiDensePose system started on %s:%s\", self.host, self.port)\n        except ImportError:\n            raise ImportError(\n                \"Core dependencies not found. Make sure you installed \"\n                \"from the repository root:\\n\"\n                \"  cd wifi-densepose && pip install -e .\\n\"\n                \"Or install the v1 package:\\n\"\n                \"  cd wifi-densepose/v1 && pip install -e .\"\n            )\n\n    def stop(self):\n        \"\"\"Stop the sensing system.\"\"\"\n        import asyncio\n\n        if self._orchestrator is not None:\n            loop = _get_or_create_event_loop()\n            loop.run_until_complete(self._orchestrator.shutdown())\n            self._running = False\n            logger.info(\"WiFiDensePose system stopped\")\n\n    def get_latest_poses(self):","sourceCodeStart":49,"sourceCodeEnd":85,"githubUrl":"https://github.com/ruvnet/RuView/blob/4685618388a5e49fad5b3005806f3bdd6a7c25c3/wifi_densepose/__init__.py#L49-L85","documentation":"The wifi_densepose package's start path (_async_start) imports the v1 pipeline's src.config.settings and src.services.orchestrator; on ImportError it re-raises with instructions to pip install -e . from the repository root or wifi-densepose/v1. Caveat: the re-raise does not chain the original exception (`from` is missing), so the real failing module — which can be any transitive import inside orchestrator, not just the two named modules — is masked by this generic message.","triggerScenarios":"Calling start() without an editable install of the repo; or any ImportError raised while importing the orchestrator tree (missing optional dependency, renamed module) — the except cannot distinguish these, so all surface as 'Core dependencies not found'.","commonSituations":"Installing only the thin wifi_densepose shim package instead of the repo; stale editable install after modules moved during a refactor; a venv missing a new transitive dependency added to the orchestrator.","solutions":["Install the package in editable mode from the repository root: `cd wifi-densepose && pip install -e .` (or `cd wifi-densepose/v1 && pip install -e .` for the v1 package)","Re-run `pip install -e .` after pulling changes that add dependencies or move src.* modules","If the install is fine and the error persists, unmask the real cause: run `python -c \"from src.services.orchestrator import ServiceOrchestrator\"` to see the actual traceback","Fix whatever import that one-liner reports (usually a missing dependency in the venv)"],"exampleFix":"# before\n        except ImportError:\n            raise ImportError(\"Core dependencies not found. ...\")  # original cause lost\n\n# after\n        except ImportError as exc:\n            raise ImportError(\n                \"Core dependencies not found. Install from the repository root:\\n\"\n                \"  cd wifi-densepose && pip install -e .\"\n            ) from exc  # keeps the real failing import in the traceback","handlingStrategy":"try-catch","validationCode":"import importlib.util\n\nif importlib.util.find_spec(\"src.services.orchestrator\") is None:\n    raise SystemExit(\"run `pip install -e .` from the repo root (or wifi-densepose/v1) before starting\")","typeGuard":null,"tryCatchPattern":"try:\n    system.start()\nexcept ImportError as e:\n    # message is generic; probe the real import to get the true cause\n    import traceback\n    try:\n        from src.services.orchestrator import ServiceOrchestrator  # noqa: F401\n    except ImportError:\n        traceback.print_exc()  # actual missing module\n    raise","preventionTips":["Install editable (`pip install -e .`) from the repository root so the src.* tree resolves","Re-run the editable install after pulls that add dependencies or move modules","Note the re-raise is un-chained: when in doubt, import src.services.orchestrator directly to see the real traceback"],"tags":["import","packaging","pip","python","dependencies","legacy"],"backgroundTag":null,"analyzedSha":"4685618388a5e49fad5b3005806f3bdd6a7c25c3","analyzedAt":"2026-08-16T06:09:40.886Z","schemaVersion":2},"datasetVersion":"2026-08-16T08:17:34.114Z"}