Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

dependency problem - webdriver_manager 3.8.1

See original GitHub issue

there’s been a recent update of webdriver_manager (3.7.1 to 3.8.1)

This trigger some errors in pylenium as seen here :

/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/ in visit
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/pylenium/ 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/ 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/ 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/ 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/ 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/ 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/ in download_file
    response = self._http_client.get(url)
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/ in get
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
resp = <Response [404]>
    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
/opt/hostedtoolcache/Python/3.10.5/x64/lib/python3.10/site-packages/webdriver_manager/core/ ValueError

the fix would be to limit the dependency to before 3.8.1 for webderiver_manager

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:1
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

chingccommented, Sep 8, 2022

The workaround is to update "version": "latest" to "version": "" in pylenium.json.

This problem is probably related to SergeyPirogov/webdriver_manager#386.

ElSnoMancommented, Oct 18, 2022

Finally getting to this myself. I updated webdriver-manager to v3.8.4 and set "version": "" and it worked! This is great news 🎉

For now, I will set "version": "" as the default for pylenium.json and push it up to fix this. Thanks to all of you for helping 🙏🏽

Read more comments on GitHub >

github_iconTop Results From Across the Web

webdrivermanager : 3.8.1 - io.github.bonigarcia - Maven Central
WebDriverManager - Automatic Selenium WebDriver binaries management in runtime for Java.
Read more >
webdrivermanager » 3.8.1 - io.github.bonigarcia
Compile Dependencies (7) ; Core Utils Apache 2.0, logo, org.apache.commons » commons-lang3 ; HTTP Clients Apache 2.0, logo, org.apache.
Read more >
WebDriverManager The import io.github cannot be resolved
It indicates that the dependency is NOT required for the compilation but only for execution. It appears during the runtime and test but...
Read more >
webdrivermanager/ at master - GitHub
Force using mirror when first exception happens, e.g. 403 error (issue #302) · Include URL as configuration key · Set chromedriver version...
Read more >
WebDriver Manager gives error | Selenium Forum
WebDeiver Manager gives error .HI, I tried using Webdriver Manager for cross browser testing and it gives follwing error : Code: package ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Post

No results found

github_iconTop Related Hashnode Post

No results found