I'm trying to use the webdriver and Selenium, it was working fine a couple days ago but I'm currently facing this issue where I receive this error: [Errno 8] Exec format error: '/Users/[USER]/.wdm/drivers/chromedriver/mac64/127.0.6533.72/chromedriver-mac-arm64/THIRD_PARTY_NOTICES.chromedriver'
Here is the relevant portion of code that relates to this:
options = webdriver.ChromeOptions()
options.add_argument("--headless")
options.add_argument("--no-sandbox")
options.add_argument("--disable-dev-shm-usage")
d_path = ChromeDriverManager().install()
driver = webdriver.Chrome(service=Service(d_path), options=options)
I have tried to manually change the d_path by replacing the 'THIRD_PARTY_NOTICES.chromedriver' with 'chromedriver' but that in itself also does not work.