xtekky/gpt4free · error
no embedded runtime archive for this platform (run fetch-pyt
Error message
no embedded runtime archive for this platform (run fetch-python.sh and rebuild)
What it means
Error "no embedded runtime archive for this platform (run fetch-python.sh and rebuild)" thrown in xtekky/gpt4free.
Source
Thrown at g4f-go/runtime.go:90
if strings.Contains(e, tok) {
return e
}
}
for _, e := range entries {
if strings.Contains(e, "x64") || strings.Contains(e, "amd64") {
return e
}
}
return entries[0]
}
// extractEmbedded unpacks embed/<os>/<os>-<arch>-embed-<ver>.zip into the
// user install dir using stdlib archive/zip only (no external tool needed).
func extractEmbedded(binDir string) error {
// The embed.FS layout mirrors the repo: embed/<os>/<archive>.zip.
entries, err := embeddedArchives()
if err != nil || len(entries) == 0 {
return fmt.Errorf("no embedded runtime archive for this platform (run fetch-python.sh and rebuild)")
}
archive := pickArchive(entries)
src, err := embedRuntimeArchive.Open(archive)
if err != nil {
return fmt.Errorf("open embedded archive: %w", err)
}
data, err := io.ReadAll(src)
src.Close()
if err != nil {
return fmt.Errorf("read embedded archive: %w", err)
}
if err := os.MkdirAll(binDir, 0o755); err != nil {
return err
}
if err := extractZip(bytes.NewReader(data), int64(len(data)), binDir); err != nil {
return fmt.Errorf("extract embedded runtime: %w", err)
}
return nilView on GitHub (pinned to 973504e177)
Solutions
- Run fetch-python.sh for this platform and rebuild g4f-go.
When it happens
Trigger: Thrown at g4f-go/runtime.go:90 when the library encounters an invalid state.
Common situations: See trigger scenarios.
AI-assisted analysis of xtekky/gpt4free@973504e177 (2026-08-14).
Data as JSON: /api/errors/f22dce99a174b8a1.
Report an issue: GitHub.