SeanDaBlack / WreckItRalphs

GNU General Public License v3.0
13 stars 1 forks source link

Failure to launch Chromium webdriver on Ubuntu WSL #1

Closed c01dc0ffee closed 2 years ago

c01dc0ffee commented 2 years ago

I ran into a problem executing this script, where https://github.com/SeanDaBlack/WreckItRalphs/blob/main/main.py#L63 would fail to launch chromedriver with error code 1. There's no exception handling for this so the script tries to continue until it crashes.

Launching chromedriver from bash complains that it needs the snap version of chromium installed. snap install chromium gives some vague error about a socket failure, caused by the issue resolved here: https://github.com/microsoft/WSL/issues/5126#issuecomment-653715201

WSL will probably crash on the third command. Issue wsl --shutdown from command prompt and reboot WSL and try again. Run snap install chromium and the script should be able to create the driver now.