When running a python application, I get the error message
(venv) boby@sok-01:~/work/powder (master)$ python main.py 59 seconds remaining Process Process-1: Traceback (most recent call last): File "/usr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap self.run() File "/usr/lib/python3.8/multiprocessing/process.py", line 108, in run self._target(*self._args, **self._kwargs) File "main.py", line 51, in main driver = webdriver.Chrome( File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/chrome/webdriver.py", line 69, in __init__ super().__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/chromium/webdriver.py", line 92, in __init__ super().__init__( File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 277, in __init__ self.start_session(capabilities, browser_profile) File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 370, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 435, in execute self.error_handler.check_response(response) File "/home/boby/work/powder/venv/lib/python3.8/site-packages/selenium/webdriver/remote/errorhandler.py", line 247, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 98 Current browser version is 103.0.5060.53 with binary path /usr/bin/google-chrome
To fix the error, download the chrome driver for your google chrome browser version from
https://chromedriver.chromium.org/downloads
Extract the file. You will get a file with the name “chromedriver”. Replace your chromedriver file with this one.
sudo mv ~/Downloads/chromedriver_linux64/chromedriver /usr/local/bin/chromedriver