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

【bug】 seldom(webdriver_manager) 安装浏览器驱动错误 #189

Closed
defnngj opened this issue Jul 24, 2023 · 1 comment
Closed

【bug】 seldom(webdriver_manager) 安装浏览器驱动错误 #189

defnngj opened this issue Jul 24, 2023 · 1 comment

Comments

@defnngj
Copy link
Collaborator

defnngj commented Jul 24, 2023

webdriver_manager 安装浏览器驱动错误

webdriver-manager Version: 3.8.5

seldom --install chrome
Traceback (most recent call last):
  File "/usr/local/bin/seldom", line 8, in <module>
    sys.exit(main())
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1130, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1055, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 1404, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.9/site-packages/click/core.py", line 760, in invoke
    return __callback(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/seldom/cli.py", line 158, in main
    install_driver(install)
  File "/usr/local/lib/python3.9/site-packages/seldom/cli.py", line 363, in install_driver
    driver_path = ChromeDriverManager().install()
  File "/usr/local/lib/python3.9/site-packages/seldom/utils/webdriver_manager_extend.py", line 42, in install
    driver_path = self._get_driver_path(self.driver)
  File "/usr/local/lib/python3.9/site-packages/webdriver_manager/core/manager.py", line 30, in _get_driver_path
    file = self._download_manager.download_file(driver.get_url())
  File "/usr/local/lib/python3.9/site-packages/webdriver_manager/core/download_manager.py", line 28, in download_file
    response = self._http_client.get(url)
  File "/usr/local/lib/python3.9/site-packages/webdriver_manager/core/http.py", line 33, in get
    self.validate_response(resp)
  File "/usr/local/lib/python3.9/site-packages/webdriver_manager/core/http.py", line 16, in validate_response
    raise ValueError(f"There is no such driver by url {resp.url}")
ValueError: There is no such driver by url https://registry.npmmirror.com/-/binary/chromedriver/115.0.5790/chromedriver_mac64.zip

webdriver-manager == Version: 3.8.5

@defnngj
Copy link
Collaborator Author

defnngj commented Sep 10, 2023

seldom 3.2.3 修复

@defnngj defnngj closed this as completed Sep 10, 2023
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

1 participant