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

launcher #1164

Closed
lsy88 opened this issue Dec 21, 2024 · 4 comments
Closed

launcher #1164

lsy88 opened this issue Dec 21, 2024 · 4 comments
Labels
question Questions related to rod

Comments

@lsy88
Copy link

lsy88 commented Dec 21, 2024

Rod Version: v0.114.8

The code to demonstrate your question

l := launcher.New().
		Set("disable-blink-features", "AutomationControlled").
		Set("user-agent", "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36").
		Set("disable-default-apps").
		Set("no-sandbox", "true").
		Set("no-default-browser-check").
		Set("enable-privacy-sandbox-ads-apis", "false").
		Set("disable-web-security").
		Set("headless", "new").
		Set("no-first-run").
		Leakless(false)
	path, has := launcher.LookPath()
	if has {
		l = l.Bin(path)
	}
	return l

What you got

panic: [launcher] Failed to launch the browser, the doc might help https://go-rod.github.io/#/compatibility?id=os: /home/ubuntu/.cache/rod/browser/chromium-1131657/chrome: error while loading shared libraries: libnss3.so: cannot open shared object file: No such file or directory


goroutine 30 [running]:
github.com/go-rod/rod/lib/utils.glob..func2({0xfe5100?, 0xc00018c610?})
        C:/Users/li.sy/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:69 +0x1d
github.com/go-rod/rod/lib/utils.E(...)
        C:/Users/li.sy/go/pkg/mod/github.com/go-rod/[email protected]/lib/utils/utils.go:75
github.com/go-rod/rod/lib/launcher.(*Launcher).MustLaunch(0xc00068fb08?)
        C:/Users/li.sy/go/pkg/mod/github.com/go-rod/[email protected]/lib/launcher/launcher.go:389 +0x62

What you expect to see

我想在ubuntu上正常运行

@lsy88 lsy88 added the question Questions related to rod label Dec 21, 2024
Copy link

Please fix the format of your markdown:

26 MD040/fenced-code-language Fenced code blocks should have a language specified [Context: "```"]
40 MD022/blanks-around-headings/blanks-around-headers Headings should be surrounded by blank lines [Expected: 1; Actual: 0; Below] [Context: "## What you expect to see"]

generated by check-issue

@Fly-Playgroud
Copy link
Contributor

Fly-Playgroud commented Dec 23, 2024

顾名思义,缺少动态库,安装相应的动态库就行

@Fly-Playgroud
Copy link
Contributor

#222

@lsy88 lsy88 closed this as completed Dec 23, 2024
@lsy88
Copy link
Author

lsy88 commented Dec 23, 2024

顾名思义,缺少动态库,安装相应的动态库就行

puppeteer/puppeteer#5693 我是使用这个解决的

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Questions related to rod
Projects
None yet
Development

No branches or pull requests

2 participants