InstaPy / InstaPy/instapy-quickstart

Chromedriver

未关闭
#69 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Python
星标
777
派生
763
PR 合并指标
30 天内没有已合并 PR

描述

The last few days it wasn't a problem to run the program. Today I'm getting the following error:

Python 3.7.4 (tags/v3.7.4:e09359112e, Jul 8 2019, 19:29:22) [MSC v.1916 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license()" for more information.
>>>
RESTART: C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\quickstart.py

._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._.
Workspace in use: "C:/Users/Alexander_Hansmann/InstaPy"

._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._. ._.
INFO [2019-08-14 09:59:09] [alexander_hansmann] Using built in instapy-chromedriver executable (version 2.46)
ERROR [2019-08-14 09:59:12] [alexander_hansmann] Message: unknown error: cannot find Chrome binary
Traceback (most recent call last):
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\instapy\browser.py", line 163, in set_selenium_local_session
chrome_options=chrome_options)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary

Traceback (most recent call last):
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\quickstart.py", line 30, in
headless_browser=False)
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\instapy\instapy.py", line 312, in __init__
self.set_selenium_local_session()
File "C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\instapy\instapy.py", line 362, in set_selenium_local_session
raise InstaPyError(err_msg)
instapy.exceptions.InstaPyError: ensure chromedriver is installed at C:\Users\Alexander_Hansmann\AppData\Local\Programs\Python\Python37-32\Lib\site-packages\instapy_chromedriver\chromedriver_win32.exe

I've installed the latest version of chromedriver.

贡献指南

这个仓库没有索引到贡献指南

调研方向

从 quickstart.py 以及 instapy/browser.py 和 instapy/instapy.py 中所示的 set_selenium_local_session 入口开始,然后使用报告中的 chromedriver 版本重现 Windows Python 3.7 启动过程。完成标准是确定缺少 Chrome 二进制文件错误的原因,并记录或修正设置路径,同时成功启动本地浏览器。

由索引模型根据 Issue 内容生成。

评估

技术栈
python
领域
devtools
Issue 类型
缺陷
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。