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

3.8.1 introduces a bug #412

Closed
malmiteria opened this issue Jul 15, 2022 · 2 comments
Closed

3.8.1 introduces a bug #412

malmiteria opened this issue Jul 15, 2022 · 2 comments
Assignees

Comments

@malmiteria
Copy link

I'm using pylenium, and the recent upgrade of webdriver_manager from 3.7.1 to 3.8.1 introduces some bugs (that can be fixed by downgrading)

here's the traceback:

/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/driver.py:362: in visit
    self.webdriver.get(url)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/driver.py:235: in webdriver
    return self.init_webdriver() if self._webdriver is None else self._webdriver
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/driver.py:203: in init_webdriver
    self._webdriver = webdriver_factory.build_from_config(self.config)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/webdriver_factory.py:147: in build_from_config
    return build_chrome(seleniumwire_options=config.driver.seleniumwire_options, **_config)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/webdriver_factory.py:196: in build_chrome
    service=ChromeService(local_path or ChromeDriverManager(version=version).install()),
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/chrome.py:38: in install
    driver_path = self._get_driver_path(self.driver)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/manager.py:33: in _get_driver_path
    file = self._download_manager.download_file(driver.get_url())
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/download_manager.py:28: in download_file
    response = self._http_client.get(url)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/http.py:32: 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_linux64.zip
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/http.py:15: ValueError

I'm not sure what is the source of the bug, and i created an issue on pylenium repo too : ElSnoMan/pyleniumio#278

This happens on every pylenium tests, and that's the only place webdriver_manager runs on my code

@SergeyPirogov
Copy link
Owner

What type of OS do you use?

@malmiteria
Copy link
Author

malmiteria commented Jul 18, 2022

ubuntu 18.04

same issue on macOS 13

Note that i faced this issue when using pylenium, and i wasn't able to identify clearly if this bug comes from webdriver_manager, or from an unintended use within pylenium itself, i opened a ticket on their github too here ElSnoMan/pyleniumio#278

but so far on their side, it seems that reverting to using webdreiver_manager 3.7.x works fine

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants