{"record":{"id":"f22dce99a174b8a1","repo":"xtekky/gpt4free","slug":"no-embedded-runtime-archive-for-this-platform-run","errorCode":null,"errorMessage":"no embedded runtime archive for this platform (run fetch-python.sh and rebuild)","messagePattern":"no embedded runtime archive for this platform \\(run fetch-python\\.sh and rebuild\\)","errorType":"exception","errorClass":null,"httpStatus":null,"severity":"error","filePath":"g4f-go/runtime.go","lineNumber":90,"sourceCode":"\t\tif strings.Contains(e, tok) {\n\t\t\treturn e\n\t\t}\n\t}\n\tfor _, e := range entries {\n\t\tif strings.Contains(e, \"x64\") || strings.Contains(e, \"amd64\") {\n\t\t\treturn e\n\t\t}\n\t}\n\treturn entries[0]\n}\n\n// extractEmbedded unpacks embed/<os>/<os>-<arch>-embed-<ver>.zip into the\n// user install dir using stdlib archive/zip only (no external tool needed).\nfunc extractEmbedded(binDir string) error {\n\t// The embed.FS layout mirrors the repo: embed/<os>/<archive>.zip.\n\tentries, err := embeddedArchives()\n\tif err != nil || len(entries) == 0 {\n\t\treturn fmt.Errorf(\"no embedded runtime archive for this platform (run fetch-python.sh and rebuild)\")\n\t}\n\tarchive := pickArchive(entries)\n\tsrc, err := embedRuntimeArchive.Open(archive)\n\tif err != nil {\n\t\treturn fmt.Errorf(\"open embedded archive: %w\", err)\n\t}\n\tdata, err := io.ReadAll(src)\n\tsrc.Close()\n\tif err != nil {\n\t\treturn fmt.Errorf(\"read embedded archive: %w\", err)\n\t}\n\tif err := os.MkdirAll(binDir, 0o755); err != nil {\n\t\treturn err\n\t}\n\tif err := extractZip(bytes.NewReader(data), int64(len(data)), binDir); err != nil {\n\t\treturn fmt.Errorf(\"extract embedded runtime: %w\", err)\n\t}\n\treturn nil","sourceCodeStart":72,"sourceCodeEnd":108,"githubUrl":"https://github.com/xtekky/gpt4free/blob/973504e1770928ed5fb82f43da528f441ad9ddc3/g4f-go/runtime.go#L72-L108","documentation":"Error \"no embedded runtime archive for this platform (run fetch-python.sh and rebuild)\" thrown in xtekky/gpt4free.","triggerScenarios":"Thrown at g4f-go/runtime.go:90 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Run fetch-python.sh for this platform and rebuild g4f-go."],"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"}