{"record":{"id":"d51e2eef6295b801","repo":"exo-explore/exo","slug":"file-path-not-found-locally-and-cannot-download","errorCode":null,"errorMessage":"File {path} not found locally and cannot download in offline mode","messagePattern":"File (.+?) not found locally and cannot download in offline mode","errorType":"exception","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"src/exo/download/download_utils.py","lineNumber":699,"sourceCode":"        # Try to verify against remote, but allow offline operation\n        try:\n            remote_size, _ = await file_meta(model_id, revision, path)\n            if local_size != remote_size:\n                logger.info(\n                    f\"File {path} size mismatch (local={local_size}, remote={remote_size}), re-downloading\"\n                )\n                await aios.remove(target_path)\n            else:\n                return target_path\n        except Exception as e:\n            # Offline or network error - trust local file\n            logger.debug(\n                f\"Could not verify {path} against remote (offline?): {e}, using local file\"\n            )\n            return target_path\n\n    if skip_internet:\n        raise FileNotFoundError(\n            f\"File {path} not found locally and cannot download in offline mode\"\n        )\n\n    await aios.makedirs((target_dir / path).parent, exist_ok=True)\n    length, etag = await file_meta(model_id, revision, path)\n    remote_hash = etag[:-5] if etag.endswith(\"-gzip\") else etag\n    partial_path = target_dir / f\"{path}.partial\"\n    resume_byte_pos = (\n        (await aios.stat(partial_path)).st_size\n        if (await aios.path.exists(partial_path))\n        else None\n    )\n    if resume_byte_pos != length:\n        url = urljoin(f\"{get_hf_endpoint()}/{model_id}/resolve/{revision}/\", path)\n        headers = await get_download_headers()\n        if resume_byte_pos:\n            headers[\"Range\"] = f\"bytes={resume_byte_pos}-\"\n        n_read = resume_byte_pos or 0","sourceCodeStart":681,"sourceCodeEnd":717,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/download/download_utils.py#L681-L717","documentation":"Error \"File {path} not found locally and cannot download in offline mode\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/download/download_utils.py:699 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}