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

Playwright does not support chromium on mac11.4 #70

Open
jess-x opened this issue Aug 10, 2021 · 9 comments
Open

Playwright does not support chromium on mac11.4 #70

jess-x opened this issue Aug 10, 2021 · 9 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@jess-x
Copy link

jess-x commented Aug 10, 2021

Description

Error when trying to run jlpm

benchmarks/packages/run/node_modules/playwright/lib/helper.js:325
        throw new Error(message);
              ^

Error: ERROR: Playwright does not support chromium on mac11.4

Reproduce

  1. Quick start benchmarks as instructed
  2. run jlpm

Expected behavior

benchmarks should be started without Playwright issue

Context

  • Operating System and version: macOS Big Sur Version 11.4
  • Browser and version: Google Chrome Version 92.0.4515.131 (Official Build) (arm64)
  • JupyterLab version: 4.0.0a1
Troubleshoot Output
Paste the output from running `jupyter troubleshoot` from the command line here.
You may want to sanitize the paths in the output.
Command Line Output
Paste the output from your command line running `jupyter lab` here, use `--debug` if possible.
Browser Output
Paste the output from your browser Javascript console here, if applicable.
@jess-x jess-x added the bug Something isn't working label Aug 10, 2021
@welcome
Copy link

welcome bot commented Aug 10, 2021

Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗

If you haven't done so already, check out Jupyter's Code of Conduct. Also, please try to follow the issue template as it helps other other community members to contribute more effectively.
welcome
You can meet the other Jovyans by joining our Discourse forum. There is also an intro thread there where you can stop by and say Hi! 👋

Welcome to the Jupyter community! 🎉

@echarles
Copy link
Member

echarles commented Aug 11, 2021

Googled around and found a lot of similar reports. No solution, apart maybe on microsoft/playwright#5443

pip3 install playwright==1.8.0a1

and npm install playwright,then it worked. Playwright does not support chromium on mac11.2 ,which is sloved. python3 -m playwright codegen --target python -o new.py -b chromium:

from playwright.sync_api import sync_playwright

def run(playwright):
    browser = playwright.chromium.launch(headless=False)

@echarles
Copy link
Member

... or try upgrading to the latest pre-release version.

@saulshanabrook
Copy link
Member

saulshanabrook commented Aug 11, 2021

It looks like we are currently pinning playwright to an old version, 1.3.0:

"playwright": "1.3.0",

Hopefully if we upgraded playwright to the latest, then this might be fixed.

EDIT: Nevermind, it still doesn't work on 1.13.0, the latest version.

@saulshanabrook
Copy link
Member

Ah maybe if we pin to @next instead? microsoft/playwright#7555 (comment)

@jess-x
Copy link
Author

jess-x commented Aug 11, 2021

I tried pinning to next, this:

      throw new Error(`Failed to download ${title}, caused by\n${e.stack}`);
            ^

Error: Failed to download webkit v1522, caused by
Error: Download failed: server returned code 404. URL: https://playwright.azureedge.net/builds/webkit/1522/webkit-mac-11.0-arm64.zip

sounded like arm-64 is not supported, maybe someone with non arm-64 can help run the benchmarks?

@Galaxyjia
Copy link

UnhandledPromiseRejectionWarning: Error: ERROR: Playwright does not support chromium on mac11.5

@fcollonval
Copy link
Member

Cross-referencing that one: microsoft/playwright#7723
For a potential work around using docker if it gets resolved.

@fcollonval fcollonval added the wontfix This will not be worked on label Aug 24, 2021
@fcollonval
Copy link
Member

I tagged it as won't fix as it requires some work upstream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

5 participants