6

On my raspberry pi I recently got some weird issues with using webdriver.Firefox so I decided to switch to chromedriver, which I am more used to anyway, as I use it when testing stuff on my desktop. I freshly installed chromedriver and made sure chromium was on the latest version, but I got the following error when trying to run my program:

selenium.common.exceptions.WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited. Status code was: 127 

So I looked on the internet for possible solutions, but the ones I could find either didn't involve chromedriver (I still tried some of those solutions but it didn't work), or involved updating chromium/chromedriver, which are already up-to-date. Just to be sure I also updated selenium python, but that didn't help either.

To be more clear, it's throwing that error on the following line of code:

driver = webdriver.Chrome("/usr/lib/chromium-browser/chromedriver") 

Not a duplicate of WebDriverException: Message: Service chromedriver unexpectedly exited. Status code was: 127, since, as I've mentioned, certain things (including the anwers to thatq uestion) didn't work for me, moreover, I'm using a different OS.

11
  • Looks like there’s a mismatch of the chromedriver version. Make sure the version of chromedriver you’re using supports the version of chromium you’re using. Commented May 30, 2018 at 12:07
  • 1
    Where can I find which versions of chromedriver support which versions of chromium? Seems a bit weird that the most recent versions of both are not compatible with eachother :| Commented May 30, 2018 at 12:19
  • 2
    I wonder why someone marked this as a duplicate - I'm using a different OS as far as I know (I'm not very familiar with the different versions of Linux), and as I clearly stated in my question some answers didn't work for me, including those in the one he marked as duplicate. Commented May 30, 2018 at 12:22
  • 1
    try sudo apt-get install chromium-driver Commented May 30, 2018 at 12:28
  • the above comment worked? Commented May 30, 2018 at 12:48

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.