Linux Chromedriver Error

After formatting the Redhat server (Linux with Amazon support) and reinstalling python, selenium, pyvirtualdisplay, Xvfb, Chrome and Chromedriver, I encountered an error: selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/chromedriver unexpectedly exited. Status code was: 127 selenium.common.exceptions.WebDriverException: Message: Service /usr/bin/chromedriver unexpectedly exited. Status code was: 127

This error occurs when initializing the browser / driver: driver = webdriver.Chrome(executable_path="/usr/bin/chromedriver")

I am using Richard Lloyd Chrome and Chromedriver 2.9. I believe this question is related to dependency issues with Chromedriver.

Any help would be greatly appreciated. I struggled with this a little now.

+7
python linux google-chrome selenium selenium-chromedriver
source share
2 answers

Well, if this is the addiction problem described here, can this help you understand what is missing?

LD_DEBUG = all paths to the executable / command / driver -args (if any)

Example:

LD_DEBUG = all cat

Output Example:

LD_DEBUG = all ping google.com

Like in this screenshot on the output, it shows what is actually needed for ping, and in the same sequence, when CTRL + C issues it, it shows what happens to stop this ping.

I posted this screenshot, since I cannot publish all the output due to char restriction, let me know if it does not solve your problem.

check this out for full output http://www.bnikolic.co.uk/blog/linux-ld-debug.html

+1
source share

I know this a bit later, but I got to this to find the problem - and the problem is that I did not have chrome. I followed this jrg walkthrough and was able to get it so that it opens webdriver perfectly.

The commands that I ran in order:

 sudo apt-get install libxss1 libappindicator1 libindicator7 wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb sudo dpkg -i google-chrome*.deb sudo apt-get install -f sudo dpkg -i google-chrome*.deb 

After that, I was able to create a webdriver only with:

 driver = webdriver.Chrome(CHROME_DRIVER_PATH) 

Hope someone else gets this answer for the same reason!

+1
source share

All Articles