Chromedriver不能跑 與chrome版本不同? - Linux
By Hardy
at 2020-02-04T18:28
at 2020-02-04T18:28
Table of Contents
Linux和編程方面都還是新手 求鞭小力一點QQ
如題 在ubuntu上跑一個python的時候出現這樣的問題
上網爬了一下有人說是chrome跟chromedriver版本不合
接著我把chrome跟chromedriver的版本都升到79
再重新跑一次還是一樣失敗 錯誤訊息都是寫這樣
jason@jason-BM5275-BM5375-BM5675:$ python one.py
one.py:31: DeprecationWarning: use options instead of chrome_options
driver = webdriver.Chrome(r"selenium_driver_chrome/chromedriver",chrome_opti
ons=options)
Traceback (most recent call last):
File "one.py", line 31, in <module>
driver = webdriver.Chrome(r"selenium_driver_chrome/chromedriver",chrome_op
tions=options)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/chrome/webdr
iver.py", line 81, in __init__
desired_capabilities=desired_capabilities)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdr
iver.py", line 157, in __init__
self.start_session(capabilities, browser_profile)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdr
iver.py", line 252, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/webdr
iver.py", line 321, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.7/dist-packages/selenium/webdriver/remote/error
handler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.SessionNotCreatedException: Message: session not cr
eated: This version of ChromeDriver only supports Chrome version 76
jason@jason-BM5275-BM5375-BM5675:$ chromedriver --version
ChromeDriver 79.0.3945.36 (3582db32b33893869b8c1339e8f4d9ed1816f143-refs/branc
h-heads/3945@{#614})
jason@jason-BM5275-BM5375-BM5675:$ chromium-browser --version
Chromium 79.0.3945.79 Built on Ubuntu , running on Ubuntu 18.04
我該怎麼解決這個問題呢?
把版本都降到76嗎
Chromedriver降到76我會 也嘗試過一樣失敗
Chrome找不到方法降回76 QQ
如果需要ubuntu版本我等等補上 應該是18.多
希望有人幫一下小新手 感謝
--
Tags:
Linux
All Comments
By Olga
at 2020-02-06T13:20
at 2020-02-06T13:20
By Lydia
at 2020-02-09T02:17
at 2020-02-09T02:17
Related Posts
CentOS 8.1 released
By Harry
at 2020-02-03T23:44
at 2020-02-03T23:44
資源monitor
By Tom
at 2020-02-03T19:09
at 2020-02-03T19:09
WHM / Cpanel 問題
By Ursula
at 2020-01-31T10:04
at 2020-01-31T10:04
linux 裝在usb後如何啟用
By Joseph
at 2020-01-23T13:44
at 2020-01-23T13:44
如何將mint 裝在usb (急
By Lucy
at 2020-01-22T23:05
at 2020-01-22T23:05