[Python] Python Selenium ChromeDriverManager Install Path Error...

Discussão em 'Python' iniciado por Stack, Outubro 6, 2024.

  1. Stack

    Stack Membro Participativo

    I've been running into a problem in Python's Selenium ChromeDriverManager on a Mac (ARM64/M3 Chip).

    When I run the below Python code, I get the following error:

    [Errno 8] Exec format error: '/Users/adam.westbrook/.wdm/drivers/chromedriver/mac64/129.0.6668.89/chromedriver-mac-arm64/THIRD_PARTY_NOTICES.chromedriver'

    from selenium.webdriver.chrome.service import Service as ChromeService
    from webdriver_manager.chrome import ChromeDriverManager
    from selenium import webdriver
    driver = webdriver.Chrome(service=ChromeService(executable_path=ChromeDriverManager().install()))


    For some reason, the ChromeDriverManager is trying to use THIRD_PARTY_NOTICES.chromedriver as the driver rather than the file chromedriver.

    When I look at the folder, the filetype of the file chromedriver shows it's a Document rather than a Unix Executable File.

    But when I manually unzip the zip file that was automatically downloaded, chromedriver then correctly shows it's a Unix Executable File.

    How can I fix this?

    Continue reading...

Compartilhe esta Página