MacOS Catalina(v 10.15.3): Error: “chromedriver” cannot be opened because the developer cannot be verified. Unable to launch the chrome browser

后端 未结 9 510
萌比男神i
萌比男神i 2021-01-29 20:14

I have recently upgraded my mac machine to OS Catalina(v 10.15.3). After this upgrade I am unable to launch the chrome driver using selenium.

I am facing the below error

9条回答
  •  伪装坚强ぢ
    2021-01-29 21:10

    (What worked for me, hopefully works for you too)

    Update for all the macOS Big Sur 11.0 users:

    1. use homebrew to install chromedriver

      brew install chromedriver

    2. navigate to chromedriver that is in the Caskroom folder specifically

      /usr/local/bin/Caskroom/chromedriver ... keep going until you see the Unix Executable File called "chromedriver"

    3. following Apple's recommendation for opening Mac apps from unidentified developer, double-click chromedriver, and then click "Open"

    For me, this resulted in a terminal window popping up with the output:

    
    Starting ChromeDriver ...
    Only local connections are allowed.
    Please see https://chromedriver.chromium.org/security-considerations for suggestions on keeping ChromeDriver safe.
    ChromeDriver was started successfully.
    

    I can now run scrapy-selenium no problem, you can close the terminal window (yes, terminate the process is OK) and it should still work without stopping you now.

    Let me know if this works for you

提交回复
热议问题