VHS isn't working properly. It depends on chromium, but it was added when chromium wasn't available in termux. I recently tested it and it tries to reinstall chromium from its own sources but fails to do so because we are on Android. However, it should use the system binary instead of reinstalling it.
$ vhs demo.tape
File: demo.tape
[launcher.Browser]2023/02/13 11:04:05 try to find the fastest host to download the browser binary
[launcher.Browser]2023/02/13 11:04:05 check https://storage.googleapis.com/chromium-browser-snapshots//1033860/
[launcher.Browser]2023/02/13 11:04:05 check https://registry.npmmirror.com/-/binary/chromium-browser-snapshots//1033860/
[launcher.Browser]2023/02/13 11:04:05 check https://playwright.azureedge.net/builds/chromium/1033860/chromium-linux-arm64.zip
panic: Can't find a browser binary for your OS, the doc might help https://go-rod.github.io/#/compatibility?id=os
goroutine 1 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0x5b42649b80?, 0x40001437d0?})
/home/builder/go/pkg/mod/github.com/go-rod/rod@v0.112.0/lib/utils/utils.go:60 +0x24
github.com/go-rod/rod/lib/utils.E(...)
/home/builder/go/pkg/mod/github.com/go-rod/rod@v0.112.0/lib/utils/utils.go:66
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0x40003a6000?)
/home/builder/go/pkg/mod/github.com/go-rod/rod@v0.112.0/lib/launcher/launcher.go:351 +0x6c
main.New()
/home/builder/.termux-build/vhs/src/vhs.go:67 +0x230
main.Evaluate({0x40006a0000, 0x14f}, {0x5b42741d00, 0x40000b2008}, {0x0, 0x0, 0x0?})
/home/builder/.termux-build/vhs/src/evaluator.go:33 +0x178
main.glob..func1(0x5b42cf9de0?, {0x4000143700, 0x1, 0x1?})
/home/builder/.termux-build/vhs/src/main.go:60 +0x18c
github.com/spf13/cobra.(*Command).execute(0x5b42cf9de0, {0x40000b6010, 0x1, 0x1})
/home/builder/go/pkg/mod/github.com/spf13/cobra@v1.6.0/command.go:916 +0x5c8
github.com/spf13/cobra.(*Command).ExecuteC(0x5b42cf9de0)
/home/builder/go/pkg/mod/github.com/spf13/cobra@v1.6.0/command.go:1040 +0x354
github.com/spf13/cobra.(*Command).Execute(...)
/home/builder/go/pkg/mod/github.com/spf13/cobra@v1.6.0/command.go:968
main.main()
/home/builder/.termux-build/vhs/src/main.go:135 +0x28
I'm aware that termux chromium binary is distributed under the name of chromium-browser. I have a symlink with the name chromium pointing to that. So there's no reason vhs can't find chromium on PATH.
I looked into the code but couldn't figure out what's wrong. They are loading chromium from the PATH at line 91 vhs.go
What steps will reproduce the bug?
You can create a demo .tape with vhs new demo.tape. Then run vhs demo.tape.
Problem description
VHS isn't working properly. It depends on chromium, but it was added when chromium wasn't available in termux. I recently tested it and it tries to reinstall chromium from its own sources but fails to do so because we are on Android. However, it should use the system binary instead of reinstalling it.
I'm aware that termux chromium binary is distributed under the name of
chromium-browser
. I have a symlink with the namechromium
pointing to that. So there's no reason vhs can't find chromium on PATH.I looked into the code but couldn't figure out what's wrong. They are loading chromium from the PATH at line 91 vhs.go
What steps will reproduce the bug?
You can create a demo
.tape
withvhs new demo.tape
. Then runvhs demo.tape
.What is the expected behavior?
It should use the system binary.
System information
termux-info: