I am trying to write a simple web bot in Python. I have installed selenium and chromedriver. My OS is Linux Mint and IDE PyCharm.
I have followed instructions here:
https://bangladroid.wordpress.com/2016/08/10/how-to-install-chrome-driver-in-linux-mint-selenium-webdriver/
Here is my code:
from selenium import webdriver
driver = webdriver.Chrome("/usr/bin/chromedriver")
driver.get("http:google.com")
And traceback:
Traceback (most recent call last):
File "/home/kajetan/PycharmProjects/FirstBot/bot.py", line 3, in <module>
driver = webdriver.Chrome("/usr/bin/chromedriver")
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py", line 73, in __init__
self.service.start()
File "/usr/local/lib/python3.6/dist-packages/selenium/webdriver/common/service.py", line 98, in start
self.assert_process_still_running()
File "/usr/local/lib/python3.6/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/bin/chromedriver unexpectedly exited. Status code was: 127
Chromedriver version is correct.
I have no idea what is wrong here.