-
Notifications
You must be signed in to change notification settings - Fork 827
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
Browser executable not found when PLAYWRIGHT_BROWSERS_PATH is 0 #494
Comments
The driver is in the Python module directory and the browsers are globally located: https://playwright.dev/docs/installation?_highlight=playwright_browsers_path#managing-browser-binaries maybe that helps you. |
It should work. I think we recently fixed it. |
This was fixed in microsoft/playwright#5217. |
I was trying to do hermetic install and place binaries under the I'm unable to Thanks! |
You were doing the right thing, it was broken. Next v1.9 release (coming soon) will have it fixed. Thank you! |
It's not clear to me. Is this supposed to be resolved for Windows too? Or only Linux? If I create a virtualenv in Linux and set the PLAYWRIGHT_BROWSERS_PATH=0, it will place the installed browser in the virtualenv:
But when I attempt this in Win10, it always places the browser in the local user profile in the ms-playwright folder, never within the virtualenv:
Any thoughts? |
You are inside PowerShell, if you are inside PowerShell you need to set environment variables by doing the following: $Env:PLAYWRIGHT_BROWSERS_PATH=0 then it works for me. |
Steps to reproduce:
mkvirtualenv pyplaywright
pip install playwright==1.8.0a1
PLAYWRIGHT_BROWSERS_PATH=0 python -m playwright install chromium
PLAYWRIGHT_BROWSERS_PATH=0 python
The search path is differs from the installation path.
The text was updated successfully, but these errors were encountered: