Skip to content

Error when client is trying to download latest driver_version_to_download, also when installed already  #69

@jankiethe

Description

@jankiethe
  • I have Chromedriver & Python 3.10 already installed, still within the exception an attempt is made to download the latest browser for the platform (macOS 14.2.1 (23C71)) fails
INFO:discogs_alert.loop:Exception: this might be a real exception, but we're continuing anyway
Traceback (most recent call last):
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/discogs_alert/client.py", line 133, in get_driver_path
    return subprocess.check_output(["which", "chromedriver"]).decode().strip()
  File "/Users/USERNAME/.pyenv/versions/3.10.13/lib/python3.10/subprocess.py", line 421, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
  File "/Users/USERNAME/.pyenv/versions/3.10.13/lib/python3.10/subprocess.py", line 526, in run
    raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['which', 'chromedriver']' returned non-zero exit status 1.

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/discogs_alert/loop.py", line 63, in loop
    client_anon = da_client.AnonClient(user_agent)
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/discogs_alert/client.py", line 111, in __init__
    service = ChromiumService(self.get_driver_path(), log_path=log_path)
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/discogs_alert/client.py", line 136, in get_driver_path
    return ChromeDriverManager().install()
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/.venv/lib/python3.10/site-packages/webdriver_manager/chrome.py", line 39, in install
    driver_path = self._get_driver_binary_path(self.driver)
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/.venv/lib/python3.10/site-packages/webdriver_manager/core/manager.py", line 33, in _get_driver_binary_path
    file = self._download_manager.download_file(driver.get_driver_download_url())
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/.venv/lib/python3.10/site-packages/webdriver_manager/drivers/chrome.py", line 59, in get_driver_download_url
    modern_version_url = self.get_url_for_version_and_platform(driver_version_to_download, os_type)
  File "/Users/USERNAME/Desktop/code projects/discogs_alert/discogs_alert/.venv/lib/python3.10/site-packages/webdriver_manager/drivers/chrome.py", line 94, in get_url_for_version_and_platform
    raise Exception(f"No such driver version {browser_version} for {platform}")
Exception: No such driver version 120.0.6099.216 for mac-arm64

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions