I am trying to get selenium webdriver and hence chromedriver to run on a Raspberry Pi.
So, I installed the latest package of chromium-browser
and the latest chromedriver
package from this source: https://launchpad.net/ubuntu/trusty/armhf/chromium-chromedriver/65.0.3325.181-0ubuntu0.14.04.1
The following very simple script crashes with the error code -4
(see full message below):
from selenium import webdriver
driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')
driver.get("http://www.google.com")
Here's the error:
Traceback (most recent call last):
File "cookie-crawler.py", line 10, in <module>
driver = webdriver.Chrome('/usr/lib/chromium-browser/chromedriver')
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/common/service.py", line 111, in assert_process_still_running
% (self.path, return_code)
selenium.common.exceptions.WebDriverException: Message: Service /usr/lib/chromium-browser/chromedriver unexpectedly exited. Status code was: -4
As I could not find information about this status code, I would like to ask you, if you know what this means and where I can find further information to fix this. I already double-checked the versions of chromium-browser and chromedriver and this does not seem to be the problem. Thank you for any hints!