-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
[BUG] Failed to launch chromium because executable doesn't exist #4033
Comments
Thanks! We saw issues with Node 14.0.0 and the fix is to upgrade to 14.1.0. Relevant previous issue: #1988 |
@arjun27 I can confirm moving to I changed my node version, removed Would be cool if it wasn't required to upgrade my whole app's node version just to get playwright working, but shouldn't be a huge issue |
Thanks! I agree with you in principle. This issue was caused by a change in Nodejs: nodejs/node#33050 |
Hello. I keep having the same issue with v14.8.0 on macOS. |
Due to issues like this, would it make sense to rethink how tags are grouped/created for this image? For example, bumping to a major version of node should probably cause a major bump for the tag for this image... Thoughts? |
Same problem with node v15.5.0 on WSL |
Also having this problem with ubuntu 20.04 WSL with node v14.15.4 |
We are also facing the same issue. This is very flaky behavior in our CI (Jenkins) instances |
I'm facing the same issue with node v15.5.1 on macbook pro with apple silicone. |
تدوال |
@arjunattam seems like this issue should be reopened. We're facing the same issue in Jenkins running on AWS with Node v14.15.1. |
Same issue here: |
@karoukastro @bradydowling @Rasd-Alharaka @PhillipMwaniki Which OS, OS version and browser are you using? |
@mxschmitt Browser: Chrome Error: browserType.launch: Failed to launch chromium because executable doesn't exist at /Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/Browser/wrapper/node_modules/playwright/.local-browsers/chromium-844399/chrome-mac/Chromium.app/Contents/MacOS/Chromium |
Macos Big Sur 11.1 on m1 macbook pro. |
I tried reinstall it, but it issue is still here :( |
These are different issues here. |
@mxschmitt I didn't, but now I could see the issue. Do you think better open a new issue? carol@Carolinas-MBP parodify % python3 -m playwright install |
Same issue here with webkit instead of chromium. It works when running on my machine, but when packaged and tested on another machine, i get
|
Just noticed this line, not sure if this is related but our project is using |
My project is not using yarn. Npm install does fix the issue for me, but I need my application to work on a users machine, even if they don't have Node/npm installed. So this isn't a good solution for me. (I'm using playwright with Electron) |
I am getting this on macOS 11.2.1 with node 15.9.0 and npm 7.5.3 when trying to use https://github.com/ruimarinho/gsts through a global npm install also reported on their project: ruimarinho/gsts#44 |
@arjunattam any thoughts on reopening this issue or info we can provide that would confirm if it is or is not still an issue? |
I fixed my issue by downloading the browser to the project's node modules and accessing it from there and specifying the location with process.env.PLAYWRIGHT_BROWSERS_PATH. I'm using playwright with electron so this might not work for everyone but it did for me. |
I am getting this issue now while using the pw docker image. https://hub.docker.com/_/microsoft-playwright. Running |
This is still happening with JS Azure Functions |
To solve this issue, use |
I am using node v.14.15.1, but this issue is still there. I solved this by removing the node_modules and reinstall again. |
Using node v14.17, still same issue and unable to resolve even by following @adwam12`s solution. |
When using Playwright Test, you need to install the browsers yourself. You can do that via "npx playwright install". |
@mxschmitt yes but they don't install 😀 without error. |
@StfBauer please create a new issue with the error etc. |
microsoft/playwright#1988 microsoft/playwright#4033 (comment) bumped the gh actions node version b/c of above Signed-off-by: Matt Hippely <[email protected]>
microsoft/playwright#1988 microsoft/playwright#4033 (comment) bumped the gh actions node version b/c of above Signed-off-by: Matt Hippely <[email protected]>
Note: I'm changing the build workflow node version in the commit also to address the re-occuring and intermittent issues with builds failing b/c of playwright not being downloaded. Read more at these issues: microsoft/playwright#1988 microsoft/playwright#4033 (comment) Signed-off-by: Matt Hippely <[email protected]>
Note: I'm changing the build workflow node version in the commit also to address the re-occuring and intermittent issues with builds failing b/c of playwright not being downloaded. Read more at these issues: microsoft/playwright#1988 microsoft/playwright#4033 (comment) Signed-off-by: Matt Hippely <[email protected]>
Does anyone know how to fix the issue? |
This is a know issue for a long but we resolved it in our CI. I wrote medium post on the approach we took - https://gkushang.medium.com/playwright-failed-to-launch-browsers-how-to-solve-8b01d03fe5b9 Refer to prev issue: and the comment above: #4033 (comment) |
I was getting this error on my local machine and after some time trying to figure out a solution, I got this working by:
|
Hi @gkushang, I'm working on playwright GitHub workflow but facing the same issue, Could you please explain where and how to use ref - https://gkushang.medium.com/playwright-failed-to-launch-browsers-how-to-solve-8b01d03fe5b9 Sharing my code snippet, please let me know where and how to use these env vars in
|
You may want to try setting below at the
|
I banged my head against the wall for far too long on this before realizing that it was because @ssurabhi10 I'd be willing to be that if you add something like an |
@edspencer - yes, the Playwright browsers are version controlled, and you'll need to install PerVersion copy of the browsers, e.g. That's an extra step for us too :( , as we need to update our PW Browsers docker images whenever we upadate Playwright. |
@gkushang your blog post was super helpful - thanks for writing it :) |
Hi @gkushang , After adding browser path, facing this error seems like
|
for those who got stuck in this issue and uses Heroku, I solve this problem by creating this alias on package.json: "scripts": {
"heroku-postbuild": "npm run build",
"heroku-cleanup": "npx playwright install" // this will run after build success, and will put back the browser binary into default path /node_modules
}, |
This comment has been minimized.
This comment has been minimized.
|
Edit from the Playwright team 📣
Will fix it and install your browsers as expected.
I am attempting to install Playwright but cannot get past the following error when trying to run a basic test:
The file
~/Library/Caches/ms-playwright/chromium-799411/chrome-mac/Chromium.app/Contents/MacOS/Chromium
does not exist but this folder does~/Library/Caches/ms-playwright/chromium-799411/chrome-mac/Chromium.app/Contents/Frameworks/Chromium\ Framework.framework
. Not sure why it is looking in the wrong location?I have ran
yarn add playwright
and the package appears to install successfully. I've also tried to manually runnode node_modules/playwright/install.js
which gives me:I've also attempted to remove
node_modules
,yarn.lock
and~/Library/Caches/ms-playwright
to reset things to a clean state but nothing is working. I'm at a losss for what to do and Googling/searching issues doesn't get me anything useful.I don't think there is anything particularly unique with my setup.
Is there a way to better troubleshoot why I can't get Playwright to work?
The text was updated successfully, but these errors were encountered: