1

I created some really trivial script to just open browser with specific URL it looks like this:

from selenium import webdriver
from selenium.webdriver.common.keys import Keys

driver = webdriver.Chrome()
driver.get("http://www.python.org")

Once I execute this with command python /path/to/file.py I get an error:

Traceback (most recent call last):
  File "/home/pi/tmp/test.py", line 4, in <module>
    driver = webdriver.Chrome()
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
    desired_capabilities=desired_capabilities)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 156, in __init__
    self.start_session(capabilities, browser_profile)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 251, in start_session
    response = self.execute(Command.NEW_SESSION, parameters)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 320, in execute
    self.error_handler.check_response(response)
  File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
  (chrome not reachable)
  (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  (Driver info: chromedriver=2.40,platform=Linux 4.14.69-v7+ armv7l)

It seems like I run out of memory or idk. Any idea what could be wrong?

1
  • Check the browser version and chromedriver version compatibility. Chromedriver devs like to indicate incompatibility by crashing the whole world instead of an error message... Here you can find which chromedriver supports which chrome browser. (As a side note I'm surprised that there is a chromedriver binary for rpi/arm) Commented Sep 23, 2018 at 19:22

1 Answer 1

2

This error message...

selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
  (chrome not reachable)
  (The process started from chrome location /usr/bin/chromium is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
  (Driver info: chromedriver=2.40,platform=Linux 4.14.69-v7+ armv7l)

...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.

The version information of the Selenium Client and Chrome would have helped us to analyze your issue. However as per the discussions:

Your main issue seems to be incompatibility between the version of the binaries you are using as follows:

  • You are using chromedriver=2.40
  • Release Notes of chromedriver=2.40 clearly mentions the following :

Supports Chrome v66-68

  • The current release version of Chrome is v69.0

If you are using Chrome v69.0 there is a mismatch between ChromeDriver v2.40 and the Chrome Browser v69.0

Solution

Sign up to request clarification or add additional context in comments.

3 Comments

Thank you for your answer, I will test it out!
/test.py", line 4, in <module> driver = webdriver.Chrome('/home/pi/InstaPy/assets/chromedriver') File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 68, in __init__ self.service.start() File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 76, in start stdin=PIPE) File "/usr/lib/python2.7/subprocess.py", line 390, in __init__ errread, errwrite) File "/usr/lib/python2.7/subprocess.py", line 1024, in _execute_child raise child_exception
Hi, if I specify path to chromedriver i get error as above, if I don't I'm getting same error as before :(

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.