久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

  • <small id='v3JHp'></small><noframes id='v3JHp'>

    • <bdo id='v3JHp'></bdo><ul id='v3JHp'></ul>
    <i id='v3JHp'><tr id='v3JHp'><dt id='v3JHp'><q id='v3JHp'><span id='v3JHp'><b id='v3JHp'><form id='v3JHp'><ins id='v3JHp'></ins><ul id='v3JHp'></ul><sub id='v3JHp'></sub></form><legend id='v3JHp'></legend><bdo id='v3JHp'><pre id='v3JHp'><center id='v3JHp'></center></pre></bdo></b><th id='v3JHp'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='v3JHp'><tfoot id='v3JHp'></tfoot><dl id='v3JHp'><fieldset id='v3JHp'></fieldset></dl></div>

  • <legend id='v3JHp'><style id='v3JHp'><dir id='v3JHp'><q id='v3JHp'></q></dir></style></legend>

    <tfoot id='v3JHp'></tfoot>

        WebDriverException:消息:未知錯誤:Chrome 無法啟動:通過

        WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally with ChromeDriver Chrome and Selenium through Python on VPS(WebDriverException:消息:未知錯誤:Chrome 無法啟動:通過 VPS 上的 Python 使用 Chro
        • <bdo id='jTbUu'></bdo><ul id='jTbUu'></ul>
            <tbody id='jTbUu'></tbody>
          <i id='jTbUu'><tr id='jTbUu'><dt id='jTbUu'><q id='jTbUu'><span id='jTbUu'><b id='jTbUu'><form id='jTbUu'><ins id='jTbUu'></ins><ul id='jTbUu'></ul><sub id='jTbUu'></sub></form><legend id='jTbUu'></legend><bdo id='jTbUu'><pre id='jTbUu'><center id='jTbUu'></center></pre></bdo></b><th id='jTbUu'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='jTbUu'><tfoot id='jTbUu'></tfoot><dl id='jTbUu'><fieldset id='jTbUu'></fieldset></dl></div>

          <legend id='jTbUu'><style id='jTbUu'><dir id='jTbUu'><q id='jTbUu'></q></dir></style></legend>

          <small id='jTbUu'></small><noframes id='jTbUu'>

              • <tfoot id='jTbUu'></tfoot>
                1. 本文介紹了WebDriverException:消息:未知錯誤:Chrome 無法啟動:通過 VPS 上的 Python 使用 ChromeDriver Chrome 和 Selenium 異常退出的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  所以我和這些帖子有完全相同的錯誤

                  So I have the exact same error as these posts

                  Selenium 'Chrome 啟動失敗:異常退出' 錯誤

                  未知錯誤:Chrome 啟動失敗:異常退出

                  我嘗試了他們推薦的方法,但沒有奏效.

                  I tried what they recommended and it didn't work.

                  這是我的代碼

                  from pyvirtualdisplay import Display
                  from selenium import webdriver
                  
                  display = Display(visible=0, size=(800, 600))
                  display.start()
                  
                  options = webdriver.ChromeOptions()
                  options.add_argument('--no-sandbox')
                  options.add_argument('--disable-extensions')
                  options.add_argument('--headless')
                  options.add_argument('--disable-gpu')
                  
                  driver = webdriver.Chrome(chrome_options=options)
                  driver.get('http://nytimes.com')
                  print(driver.title)
                  
                  driver.close()
                  

                  這是完整的錯誤信息

                  Traceback (most recent call last):
                    File "seleniumtest.py", line 13, in <module>
                      driver = webdriver.Chrome(chrome_options=options)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/chrome/webdriver.py", line 81, in __init__
                      desired_capabilities=desired_capabilities)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 157, in __init__
                      self.start_session(capabilities, browser_profile)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 252, in start_session
                      response = self.execute(Command.NEW_SESSION, parameters)
                    File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 321, 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.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.15.0-42-generic x86_64)
                  

                  我到底做錯了什么?我在 digitalocean 上的 ubuntu VPS 上運行它.

                  What the devil am I doing wrong? I'm running this on an ubuntu VPS on digitalocean.

                  推薦答案

                  這個錯誤信息...

                  selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: exited abnormally
                    (Driver info: chromedriver=2.30.477691 (6ee44a7247c639c0703f291d320bdf05c1531b57),platform=Linux 4.15.0-42-generic x86_64)
                  

                  ...暗示 ChromeDriver 無法啟動/生成新的 WebBrowserChrome 瀏覽器 會話.

                  ...implies that the ChromeDriver was unable to initiate/spawn a new WebBrowser i.e. Chrome Browser session.

                  下面將討論兩個不兼容問題.

                  Headless Chrome 首次由 Google 團隊 發布為 GA(一般可用性) 時,文章 Headless Chrome 入門提到:

                  When Headless Chrome was first released as GA (General Availability) by Google Team the article Getting Started with Headless Chrome mentioned that :

                  --disable-gpu                 # Temporarily needed if running on Windows.
                  

                  一個注釋被添加為:

                  現在,如果您在 Windows 上運行,您還需要包含 --disable-gpu 標志.

                  Right now, you'll also want to include the --disable-gpu flag if you're running on Windows.

                  根據討論 Headless:使 --disable-gpu 標志不必要 很明顯:

                  --disable-gpu 標志在 LinuxMac OSX 上不再需要.一旦錯誤 SwiftShader 在無頭模式下的 Windows 已修復.現在,由于這個問題被標記為 fixed,參數 --disable-gpu 現在應該是多余的了.

                  The --disable-gpu flag is no longer necessary on Linux or Mac OSX. It will also become unnecessary on Windows as soon as the bug SwiftShader fails an assert on Windows in headless mode is fixed. Now as this issue is marked fixed the argument --disable-gpu should be redundant now.

                  注意:您可以在 錯誤:gpu_process_transport_factory.cc(1007)-丟失 UI 共享上下文:在 Headless 模式下通過 ChromeDriver 初始化 Chrome 瀏覽器時

                  但是,您的主要問題是您使用的二進制文件版本之間的不兼容,如下所示:

                  However, your main issue is the incompatibility between the version of the binaries you are using as follows:

                  • 您正在使用 chromedriver=2.30
                  • chromedriver=2.30 的發布說明明確提到以下內容:

                  支持 Chrome v58-60

                  • 我們不知道您的 chrome 版本.假設您使用的是最新的 Chrome 版本之一:
                    • Chrome 版本 71
                    • Chrome 版本 72
                    • Chrome 版本 73
                      • Your chrome version is unknown to us. Assuming you are using on of the latest Chrome releases either among:
                        • Chrome version 71
                        • Chrome version 72
                        • Chrome version 73
                        • 所以 ChromeDriver v2.30Chrome 瀏覽器 v71-73

                          • 根據您的 Chrome 瀏覽器 版本升級 ChromeDriver 相應地遵循 指南如下:
                            • 如果您使用的是Chrome 73版,則需要下載ChromeDriver 73.0.3683.20
                            • 如果您使用的是 Chrome 版本 72,則需要下載 ChromeDriver 2.46 或 ChromeDriver 72.0.3626.69
                            • 如果您使用的是 Chrome 版本 71,則需要下載 ChromeDriver 2.46 或 ChromeDriver 71.0.3578.137
                            • 對于舊版本的 Chrome,請參閱 此討論 支持它的 ChromeDriver 版本.
                            • Depending on your Chrome Browser version upgrade ChromeDriver accordingly following the guidelines below:
                              • If you are using Chrome version 73, you need to download ChromeDriver 73.0.3683.20
                              • If you are using Chrome version 72, you need to download ChromeDriver 2.46 or ChromeDriver 72.0.3626.69
                              • If you are using Chrome version 71, you need to download ChromeDriver 2.46 or ChromeDriver 71.0.3578.137
                              • For older version of Chrome, see this discussion for the version of ChromeDriver that supports it.

                              您可以在以下位置找到一些相關討論:

                              You can find a couple of relevant discussions in:

                              • OpenQA.Selenium.WebDriverException: 未知錯誤:Chrome 無法啟動:在 linux 上通過 Selenium start 執行測試時異常退出
                              • WebDriverException:消息:未知錯誤:Chrome 無法啟動:在 debian 服務器上使用 ChromeDriver Chrome 和 Selenium 異常退出
                              • 消息:未知錯誤:Chrome 無法啟動:在 AWS Cloud9 上使用 Linux 4.9.85-38.58.amzn1.x86_64 x86_64 異常退出

                              這篇關于WebDriverException:消息:未知錯誤:Chrome 無法啟動:通過 VPS 上的 Python 使用 ChromeDriver Chrome 和 Selenium 異常退出的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                              【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                2. <small id='F9N4O'></small><noframes id='F9N4O'>

                        • <i id='F9N4O'><tr id='F9N4O'><dt id='F9N4O'><q id='F9N4O'><span id='F9N4O'><b id='F9N4O'><form id='F9N4O'><ins id='F9N4O'></ins><ul id='F9N4O'></ul><sub id='F9N4O'></sub></form><legend id='F9N4O'></legend><bdo id='F9N4O'><pre id='F9N4O'><center id='F9N4O'></center></pre></bdo></b><th id='F9N4O'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='F9N4O'><tfoot id='F9N4O'></tfoot><dl id='F9N4O'><fieldset id='F9N4O'></fieldset></dl></div>

                          • <bdo id='F9N4O'></bdo><ul id='F9N4O'></ul>
                            <legend id='F9N4O'><style id='F9N4O'><dir id='F9N4O'><q id='F9N4O'></q></dir></style></legend>
                              <tbody id='F9N4O'></tbody>
                            <tfoot id='F9N4O'></tfoot>

                            主站蜘蛛池模板: 自拍 亚洲 欧美 老师 丝袜 | 国产精品99免费视频 | 国产成人久久久 | 日韩在线精品视频 | 国产精品久久精品 | 亚洲一区在线日韩在线深爱 | 国产精品久久久久久久午夜片 | 日韩欧美在线视频 | 2018国产大陆天天弄 | 国产激情亚洲 | 国产女人第一次做爰毛片 | 91精品国产高清一区二区三区 | heyzo在线| 久久中文免费视频 | 日韩在线一区二区三区 | 中文字幕在线观看一区二区 | 久久里面有精品 | 免费一区二区 | 精品九九| 国产成人久久精品一区二区三区 | 美女在线视频一区二区三区 | 欧美激情网站 | 国产精品久久久久久久久久免费看 | 欧美在线日韩 | 99热精品6 | 欧美日韩成人影院 | 99精品国产一区二区三区 | 久久精品亚洲精品 | www.色五月.com | 久久伊人一区 | 国产91在线 | 亚洲 | 在线观看中文字幕 | 免费久久精品视频 | 毛片com | av激情在线| 免费看a| 91亚洲一区 | 国产欧美一区二区三区在线播放 | 热久久免费视频 | 欧洲一级毛片 | 日韩乱码一二三 |