Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Astral can't download a supported browser on ARM linux #51

Open
DNAScanner opened this issue Mar 2, 2024 · 2 comments
Open

Astral can't download a supported browser on ARM linux #51

DNAScanner opened this issue Mar 2, 2024 · 2 comments
Labels
bug Something isn't working upstream

Comments

@DNAScanner
Copy link

Hey. I just tried using astral for the first time, but immediately after launching the browser, the script threw an error and crashed.

Code:

import { launch } from "https://deno.land/x/astral/mod.ts";
const browser = await launch();

Error:

Uncaught Error: Failed to spawn '/home/liam/.cache/astral/121.0.6130.0/chrome-linux64/chrome': Exec format error (os error 8)
    at spawnChildInner (ext:runtime/40_process.js:185:17)
    at spawnChild (ext:runtime/40_process.js:206:10)
    at Command.spawn (ext:runtime/40_process.js:474:12)
    at runCommand (https://deno.land/x/[email protected]/src/browser.ts:13:27)
    at launch (https://deno.land/x/[email protected]/src/browser.ts:254:39)
    at eventLoopTick (ext:core/01_core.js:166:7)
    at async <anonymous>:1:38

Environment Information:
Raspberry Pi 4b+ 4GB + 512 GB SSD
Ubuntu Server 23.10
Deno 1.41.1

@lino-levan
Copy link
Owner

Hm, interesting. I haven't seen anyone try to run astral with arm64. Let me see what I can do.

@lino-levan lino-levan changed the title Uncaught Error: Failed to spawn '/home/liam/.cache/astral/121.0.6130.0/chrome-linux64/chrome': Exec format error (os error 8) Astral can't download a supported browser on ARM linux Mar 2, 2024
@lino-levan
Copy link
Owner

Okay, it appears we're blocked on upstream here (GoogleChromeLabs/chrome-for-testing#1). Astral could still work for you, but you're going to have to download a browser manually and set the path argument in launch. Let me know if I can assist you with this workaround.

@lino-levan lino-levan added bug Something isn't working upstream labels Mar 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working upstream
Projects
None yet
Development

No branches or pull requests

2 participants