16

Hi I am using Selenium on a mac with Apple M2 chip and since 10 days I keep getting the following error (initially I did not have this error but I changed computers and now I can no longer use Selenium) :

ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/106.0.5249/chromedriver_mac64_m1.zip

I read the following threads about this issue:

https://groups.google.com/g/chromedriver-users/c/JRuQzH3qr2c?pli=1

https://github.com/SergeyPirogov/webdriver_manager/issues/443

But I fail to understand how to fix this problem.

I tried updating webdriver-manager but I still get the same error.

I also downloaded the latest release of chromedriver here https://sites.google.com/chromium.org/driver/ but then fail to understand what to do next.

Any help or comments would be highly appreciated.

Mia
  • 407
  • 1
  • 4
  • 11

12 Answers12

13

You have to switch to version 114.0.5735.90. Because the end point to download version 115.0.5790.102 has changed and chrome driver manager is not yet updated. Thus the below code should work.

driver = webdriver.Chrome(service=ChromeService(ChromeDriverManager(version='114.0.5735.90').install()))
Attiq Rahman
  • 173
  • 1
  • 6
9

I had the same issue, I corrected this way

python3 -m pip install webdriver-manager --upgrade

python3 -m pip install packaging
past cham
  • 91
  • 1
  • 2
6

found this here - https://github.com/SergeyPirogov/webdriver_manager/pull/445

pip uninstall webdriver_manager
pip install git+https://github.com/SergeyPirogov/webdriver_manager@master
Max
  • 834
  • 8
  • 19
  • 5
    thank you very much I tried but unfortunately it returns the same error ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/106.0.5249.61/chromedriver_mac64_m1.zip – Mia Oct 31 '22 at 18:49
  • yep same issue for me too – Sridhar Sarnobat Jul 21 '23 at 21:39
  • Seems the latest working hasn't been merged to main branch yet. Install this `pip install git+https://github.com/david-engelmann/webdriver_manager.git@de-upgrade-chrome-version` and worked well. – Saracha Tongkumpunt Jul 22 '23 at 13:46
  • @SarachaTongkumpunt: tried this but still the same error. – Nagesh Singh Chauhan Jul 25 '23 at 02:31
  • 2
    @NageshSinghChauhan Just tried again today and failed. Fixed with: pip uninstall webdriver_manager pip install git+https://github.com/SergeyPirogov/webdriver_manager@master driver = webdriver.Chrome(ChromeDriverManager(driver_version='114.0.5735.90').install()) – Saracha Tongkumpunt Jul 27 '23 at 05:07
3

use version argument in the ChromeDriverManager

webdriver.Chrome(ChromeDriverManager(driver_version='114.0.5735.90').install(), 
options=chrome_options)
Community
  • 1
  • 1
  • 3
    Now this returns /n ```TypeError: ChromeDriverManager.__init__() got an unexpected keyword argument 'version' ``` – genobear Jul 24 '23 at 13:22
  • 3
    @ScottMoore The parameter has been renamed to `driver_version` in the latest release. – Lewis Jul 24 '23 at 22:03
  • This solution will give above error what Scott mentioned. Please recreate the scenario and provide answer which works in maximum cases. – Nagesh Singh Chauhan Jul 25 '23 at 02:30
1

I had the same issue, I corrected this way

driver = webdriver.Chrome(ChromeDriverManager(driver_version='114.0.5735.90').install())
Ajeet Verma
  • 2,938
  • 3
  • 13
  • 24
juan pablo
  • 46
  • 1
1

this works for me:

driver = webdriver.Chrome(ChromeDriverManager(version='114.0.5735.90').install())
Ajeet Verma
  • 2,938
  • 3
  • 13
  • 24
Help
  • 11
  • 2
  • I just uninstall and reinstall webdriver_manager. ChromeDriverManager(version='114.0.5735.90') needs to change to ChromeDriverManager(driver_version='114.0.5735.90') – Saracha Tongkumpunt Jul 27 '23 at 05:06
1

Try this while scraping using selenium:

from selenium import webdriver
from webdriver_manager.chrome import ChromeDriverManager
from selenium.webdriver.chrome.service import Service

driver = webdriver.Chrome(service=Service(ChromeDriverManager(version='114.0.5735.90').install()),options=option)
Ajeet Verma
  • 2,938
  • 3
  • 13
  • 24
  • Remember that Stack Overflow isn't just intended to solve the immediate problem, but also to help future readers find solutions to similar problems, which requires understanding the underlying code. This is especially important for members of our community who are beginners, and not familiar with the syntax. Given that, **can you [edit] your answer to include an explanation of what you're doing** and why you believe it is the best approach? – Jeremy Caney Aug 02 '23 at 00:29
0
driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options)
toyota Supra
  • 3,181
  • 4
  • 15
  • 19
  • 1
    Answer needs supporting information Your answer could be improved with additional supporting information. Please [edit] to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers [in the help center](https://stackoverflow.com/help/how-to-answer). – moken Aug 05 '23 at 05:49
0

You can use Chrome ver 115 by updating the webdriver-manager to 4.0.0

With this package update the old syntax

driver = webdriver.Chrome(ChromeDriverManager().install(), options=chrome_options)

started to work again :)

Catalin
  • 282
  • 1
  • 14
0

I confronted the same issue; however, I was able to resolve it by upgrading the webdriver-manger:

python3 -m pip install webdriver-manager --upgrade
0

Updating your own chrome broswer version might also be helpful in some cases, accordingly to version 4.0.0 of webdriver_manager if your version is below 113 it might solve the issue....

link for update chrome://settings/help

adir abargil
  • 5,495
  • 3
  • 19
  • 29
0

https://sites.google.com/chromium.org/driver/downloads Current Releases If you are using Chrome version 115 or newer, please consult the Chrome for Testing availability dashboard. This page provides convenient JSON endpoints for specific ChromeDriver version downloading.