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

[undefined]ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/latest/chromedriver_mac64.zip #286

Closed
munyamunya opened this issue Oct 17, 2022 · 2 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@munyamunya
Copy link

I'm writing your sample code of "test_qap_dev.py".
But the following error happened.
Maybe this isn't your problem, but do you have any input on how to resolve this phenomenon?


./tests/test_qap_dev.py::test_carlos_is_on_leadership Failed: [undefined]ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/latest/chromedriver_mac64.zip
py = <pylenium.driver.Pylenium object at 0x7fb5bab82970>

def test_carlos_is_on_leadership(py):
  py.visit('https://qap.dev')

tests/test_qap_dev.py:2:


venv/lib/python3.9/site-packages/pylenium/driver.py:362: in visit
self.webdriver.get(url)
venv/lib/python3.9/site-packages/pylenium/driver.py:235: in webdriver
return self.init_webdriver() if self._webdriver is None else self._webdriver
venv/lib/python3.9/site-packages/pylenium/driver.py:203: in init_webdriver
self._webdriver = webdriver_factory.build_from_config(self.config)
venv/lib/python3.9/site-packages/pylenium/webdriver_factory.py:147: in build_from_config
return build_chrome(seleniumwire_options=config.driver.seleniumwire_options, **_config)
venv/lib/python3.9/site-packages/pylenium/webdriver_factory.py:196: in build_chrome
service=ChromeService(local_path or ChromeDriverManager(version=version).install()),
venv/lib/python3.9/site-packages/webdriver_manager/chrome.py:39: in install
driver_path = self._get_driver_path(self.driver)
venv/lib/python3.9/site-packages/webdriver_manager/core/manager.py:30: in _get_driver_path
file = self._download_manager.download_file(driver.get_url())
venv/lib/python3.9/site-packages/webdriver_manager/core/download_manager.py:28: in download_file
response = self._http_client.get(url)
venv/lib/python3.9/site-packages/webdriver_manager/core/http.py:33: in get
self.validate_response(resp)


resp = <Response [404]>

@staticmethod
def validate_response(resp: requests.Response):
    status_code = resp.status_code
    if status_code == 404:
      raise ValueError(f"There is no such driver by url {resp.url}")

E ValueError: There is no such driver by url https://chromedriver.storage.googleapis.com/latest/chromedriver_mac64.zip

venv/lib/python3.9/site-packages/webdriver_manager/core/http.py:16: ValueError

@ElSnoMan
Copy link
Owner

This is duplicate of #278, but if you look in there you'll see some workarounds since the problem is with webdriver manager. Thanks!

@ElSnoMan ElSnoMan added bug Something isn't working duplicate This issue or pull request already exists labels Oct 17, 2022
@munyamunya
Copy link
Author

thanks @ElSnoMan
If you are managing with a different failure ticket, please Close this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants