Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jankiethe opened this issue Jan 16, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jankiethe
Copy link

jankiethe commented Jan 16, 2024

  • 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
@jankiethe jankiethe changed the title Error when client is trying to download latest browser driver_version_to_download, also when installed already Error when client is trying to download latest driver_version_to_download, also when installed already Jan 16, 2024
@michaelhball
Copy link
Owner

Hey @jankiethe, sorry for the very slow reply 😬. I recall seeing this error a while ago as well, but I don't see it anymore... I think that I hadn't created a new version since the various bugs were fixed... Do you mind testing with the latest version of dicsogs_alert (0.0.20) (i.e. after running "pip install --upgrade discogs_alert"). I'll wait to hear from you before resolving the issue.

@michaelhball michaelhball self-assigned this Apr 3, 2024
@michaelhball michaelhball added the bug Something isn't working label Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants