'This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path error using Selenium and Chrome
from selenium import webdriver
from time import sleep
class instagrambot:
def __init__(self):
self.driver = webdriver.Chrome()
self.driver.get("https://www.instagram.com/")
instagrambot()
Error : This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path
Solution 1:[1]
This mean that you have different versions of Chrome Browser and Chrome Driver. Make sure you've installed the right version
check browser v.: chrome://settings/help
check webdriver v.: https://chromedriver.chromium.org/downloads
Solution 2:[2]
This error message...
Error : This version of ChromeDriver only supports Chrome version 97 Current browser version is 96.0.4664.45 with binary path
...implies that the ChromeDriver was unable to initiate/spawn a new Browsing Context i.e. Chrome Browser session.
Your main issue is the incompatibility between the version of the binaries you are using as follows:
- You are using chrome=96.0.4664.45
- Release Notes of ChromeDriver v96.0 clearly mentions the following :
Supports Chrome version 96
- But you are using chromedriver=97.0
- Release Notes of chromedriver=97.0 clearly mentions the following :
Supports Chrome version 97
So there is a clear mismatch between chromedriver=97.0 and the chrome=96.0
Solution
Ensure that:
- ChromeDriver is updated to current ChromeDriver v96.0 level.
- Chrome is updated to current _chrome=96.0.4664.45. (as per chrome=96.0.4664.45 release notes).
Solution 3:[3]
Type the following commands in the command prompt:
pip uninstall chromedriver_binary
pip install chromedriver-binary==96.0.4664.18.0
Solution 4:[4]
go to chrome > help > About Google Chrome. make sure chrome version is 97 and should work
Solution 5:[5]
You have to remove ChromeDriver version 97 and install ChromeDriver version 96. This is what i did to fix the problem.
sudo apt remove chromium-chromedriver
wget https://chromedriver.storage.googleapis.com/96.0.4664.45/chromedriver_linux64.zip
sudo unzip chromedriver_linux64.zip chromedriver -d /usr/local/bin/
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Gabriele Iovino |
| Solution 2 | undetected Selenium |
| Solution 3 | Jack Thomas |
| Solution 4 | Johnathan |
| Solution 5 |
