WebDriver错误:chrome异常退出

时间:2018-03-31 16:16:57

标签: python selenium selenium-webdriver selenium-chromedriver

我在远程计算机上运行python scraper(用于网页和PDF)。我登录到远程机器以奇数间隔检入,代码通常会断开以下内容:

Traceback (most recent call last):
File "<stdin>", line 148, in <module>
File "/usr/local/lib/python2.7/dist packages/selenium/webdriver/chrome/webdriver.py", line 75, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 154, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 243, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 312, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
(Driver info: chromedriver=2.37.543619 (a237acd3116cac3b3f0da42a000502ce3fafcb23),platform=Linux 4.13.0-36-generic x86_64)

目前正在运行selenium 3.9,chromedriver 2.37和chrome 64.尝试使用chrome 65和各种chromedrivers,但最终仍会出现此错误。

screen上运行此操作,以便我可以退出计算机,但也可以无头地运行pyvirtualdisplaychrome。任何冲突都会引起错误吗?

0 个答案:

没有答案