{"record":{"id":"9581ce14f4073930","repo":"xtekky/gpt4free","slug":"no-python-executable-found-runtime-not-downloaded","errorCode":null,"errorMessage":"no python executable found (runtime not downloaded?)","messagePattern":"no python executable found \\(runtime not downloaded\\?\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"g4f-go/process.go","lineNumber":151,"sourceCode":"// is the *shell wrapper* (never a real interpreter), so it is not a valid\n// fallback here.\nfunc pythonExecutable(binDir string) (string, error) {\n\tif exe, err := androidPythonExecutable(binDir); exe != \"\" || err != nil {\n\t\treturn exe, err\n\t}\n\thome := filepath.Join(binDir, \"python-home\")\n\tvar candidates []string\n\tif runtime.GOOS == \"windows\" {\n\t\tcandidates = []string{filepath.Join(home, \"python.exe\")}\n\t} else {\n\t\tcandidates = []string{filepath.Join(home, \"bin\", \"python\")}\n\t}\n\tfor _, exe := range candidates {\n\t\tif fi, err := os.Stat(exe); err == nil && !fi.IsDir() {\n\t\t\treturn exe, nil\n\t\t}\n\t}\n\treturn \"\", fmt.Errorf(\"no python executable found (runtime not downloaded?)\")\n}\n\n// pythonHome returns the downloaded interpreter root.\nfunc pythonHome(binDir string) string {\n\tif h := androidPythonHome(binDir); h != \"\" {\n\t\treturn h\n\t}\n\treturn filepath.Join(binDir, \"python-home\")\n}\n\n// writeLauncher installs the unix shell wrapper after the runtime is ready.\nfunc writeLauncher(binDir string) error {\n\tif runtime.GOOS == \"windows\" {\n\t\treturn nil\n\t}\n\tpath := filepath.Join(binDir, \"python\")\n\tif err := os.WriteFile(path, []byte(pythonLauncher), 0o755); err != nil {\n\t\treturn err","sourceCodeStart":133,"sourceCodeEnd":169,"githubUrl":"https://github.com/xtekky/gpt4free/blob/973504e1770928ed5fb82f43da528f441ad9ddc3/g4f-go/process.go#L133-L169","documentation":"Error \"no python executable found (runtime not downloaded?)\" thrown in xtekky/gpt4free.","triggerScenarios":"Thrown at g4f-go/process.go:151 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run the runtime download first so the python executable exists.","Re-run g4f-go to fetch and extract the embedded python runtime."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"973504e1770928ed5fb82f43da528f441ad9ddc3","analyzedAt":"2026-08-14T23:45:32.408Z","schemaVersion":2},"datasetVersion":"2026-08-15T22:17:37.221Z"}