-
Notifications
You must be signed in to change notification settings - Fork 111
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
Exception with headless=False under WSL #78
Comments
The relevant error happens earlier, when trying to start the browser: |
@elacuesta , the default settings for scrapy-playwright are working fine. but for some reason, I need to set the
|
Makes sense, I don't think WSL provides an X server out of the box. I have no experience with WSL (nor access to a Windows system to try things), but a quick search for "wsl x server" yields results like this one, I'd suggest you to look into that. Let me know if that works for you, perhaps I can add a note to the Readme about this specific scenario. (Edit) see also #7. |
@elacuesta Thanks a lot. It worked. I just followed the process you mentioned. I just needed to install it into my venv (I am using anconda). After installing it what I need to do is, just run these two steps |
Thanks, glad you got it working. |
Note added 7785789. |
I am facing
AttributeError: 'ScrapyPlaywrightDownloadHandler' object has no attribute 'browser'
suddenly. I noticed that it is having trouble launching the browser. I have set ```PLAYWRIGHT_LAUNCH_OPTIONS = {
"headless": False
}
The text was updated successfully, but these errors were encountered: