{"record":{"id":"41167d066b45eca7","repo":"calesthio/OpenMontage","slug":"input-file-not-found-path-41167d","errorCode":null,"errorMessage":"Input file not found: {path}","messagePattern":"Input file not found: (.+?)","errorType":"validation","errorClass":"FileNotFoundError","httpStatus":null,"severity":"error","filePath":"tools/video/veo_video.py","lineNumber":246,"sourceCode":"        \"\"\"Estimate the expected runtime in seconds.\"\"\"\n        backend = inputs.get(\"backend\", \"auto\")\n        if backend == \"auto\":\n            backend = \"google\" if self._get_google_credentials_status() else \"fal\"\n\n        if backend == \"google\":\n            return 90.0\n\n        variant = inputs.get(\"model_variant\", \"veo3.1\")\n        if \"fast\" in variant:\n            return 45.0\n        return 120.0\n\n    @staticmethod\n    def _file_to_data_uri(path_str: str) -> str:\n        \"\"\"Convert a local file into a base64-encoded Data URI.\"\"\"\n        path = Path(path_str)\n        if not path.exists():\n            raise FileNotFoundError(f\"Input file not found: {path}\")\n        mime_type, _ = mimetypes.guess_type(path.name)\n        if not mime_type:\n            mime_type = \"application/octet-stream\"\n        encoded = base64.b64encode(path.read_bytes()).decode(\"ascii\")\n        return f\"data:{mime_type};base64,{encoded}\"\n\n    def _normalize_file_input(\n        self, url_value: str | None, path_value: str | None\n    ) -> str | None:\n        \"\"\"Normalize file input by converting local file paths to Data URIs or returning URLs.\"\"\"\n        if url_value:\n            return url_value\n        if path_value:\n            return self._file_to_data_uri(path_value)\n        return None\n\n    def execute(self, inputs: dict[str, Any]) -> ToolResult:\n        \"\"\"Execute the video generation tool using the selected backend.\"\"\"","sourceCodeStart":228,"sourceCodeEnd":264,"githubUrl":"https://github.com/calesthio/OpenMontage/blob/95e1c3d0ab93482159818560f6a8c8e866b9139f/tools/video/veo_video.py#L228-L264","documentation":"Error \"Input file not found: {path}\" thrown in calesthio/OpenMontage.","triggerScenarios":"veo_video is called with an input file path that does not exist on disk.","commonSituations":"See trigger scenarios.","solutions":["Correct the input file path; no file exists at the given location.","Use an absolute path and confirm the file exists with `ls <path>` before rerunning."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"95e1c3d0ab93482159818560f6a8c8e866b9139f","analyzedAt":"2026-08-15T06:31:20.014Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}