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

Launch hangs on await client.send('Page enable') #441

Open
verybadcoder01 opened this issue Jun 2, 2023 · 3 comments
Open

Launch hangs on await client.send('Page enable') #441

verybadcoder01 opened this issue Jun 2, 2023 · 3 comments

Comments

@verybadcoder01
Copy link

verybadcoder01 commented Jun 2, 2023

I'm using python 3.11 with pyppeteer. I've trieb both the latest version of websockets (#305) and the one, that comes when you install the package. The code is simple:

async def main():
    browser = await launch()
    page = await browser.newPage()
    # some code with page
    await browser.close()
asyncio.get_event_loop().run_until_complete(main())

Yet everytime it just hangs forever on "await browser.newPage()". I'm on Fedora 37, I'm using Chrome 115.0.5790.3.

@ongspxm
Copy link

ongspxm commented Aug 9, 2023

same, did u managed to resolve it?

@verybadcoder01
Copy link
Author

Nah.

@bosd
Copy link

bosd commented Oct 23, 2023

I've got it running on fedora 38 with python 3.11

Method 1:
Use another chrome package than the one shipped with pyppeteer.
(Which is rather old)
To use the one of your os:

browser = await launch(executablePath="/usr/bin/google-chrome")

Method 2:
Disable sandboxing mode.
Yet, this is not as safe. More info:
https://github.com/puppeteer/puppeteer/blob/main/docs/troubleshooting.md#setting-up-chrome-linux-sandbox

browser = await launch(headless=False, args=['--no-sandbox', '--disable-setuid-sandbox'])

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

No branches or pull requests

3 participants