1. <small id='g6BP9'></small><noframes id='g6BP9'>

      <bdo id='g6BP9'></bdo><ul id='g6BP9'></ul>
    <tfoot id='g6BP9'></tfoot>

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

    <i id='g6BP9'><tr id='g6BP9'><dt id='g6BP9'><q id='g6BP9'><span id='g6BP9'><b id='g6BP9'><form id='g6BP9'><ins id='g6BP9'></ins><ul id='g6BP9'></ul><sub id='g6BP9'></sub></form><legend id='g6BP9'></legend><bdo id='g6BP9'><pre id='g6BP9'><center id='g6BP9'></center></pre></bdo></b><th id='g6BP9'></th></span></q></dt></tr></i><div id='g6BP9'><tfoot id='g6BP9'></tfoot><dl id='g6BP9'><fieldset id='g6BP9'></fieldset></dl></div>
    1. 消息:未知错误:Chrome 无法启动:在使用 Linux 4.9.8

      时间:2023-10-08
      1. <legend id='K5GnT'><style id='K5GnT'><dir id='K5GnT'><q id='K5GnT'></q></dir></style></legend>
          <bdo id='K5GnT'></bdo><ul id='K5GnT'></ul>
          <tfoot id='K5GnT'></tfoot>

            <i id='K5GnT'><tr id='K5GnT'><dt id='K5GnT'><q id='K5GnT'><span id='K5GnT'><b id='K5GnT'><form id='K5GnT'><ins id='K5GnT'></ins><ul id='K5GnT'></ul><sub id='K5GnT'></sub></form><legend id='K5GnT'></legend><bdo id='K5GnT'><pre id='K5GnT'><center id='K5GnT'></center></pre></bdo></b><th id='K5GnT'></th></span></q></dt></tr></i><div id='K5GnT'><tfoot id='K5GnT'></tfoot><dl id='K5GnT'><fieldset id='K5GnT'></fieldset></dl></div>
              <tbody id='K5GnT'></tbody>

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

              • 本文介绍了消息:未知错误:Chrome 无法启动:在使用 Linux 4.9.85-38.58.amzn1.x86_64 x86_64 的 AWS Cloud9 上异常退出的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                问题描述

                在 AWS Cloud9 中工作,我的脚本是:

                Working in AWS Cloud9, my script is:

                from bs4 import BeautifulSoup
                from selenium import webdriver
                from selenium.webdriver.chrome.options import Options
                import requests
                
                
                options = Options()
                options.binary_location = '/usr/bin/google-chrome'
                driver = webdriver.Chrome(chrome_options=options, executable_path='/home/ec2-user/environment/downloads/chromedriver')
                url = 'http://google.com'
                driver.get(url)
                
                soup = BeautifulSoup(driver.page_source, 'lxml')
                
                # driver.quit()    
                
                print(soup)
                

                但是,当我运行文件时,运行配置会挂起,直到我用 ctrl+c 键盘中断.Traceback 会返回这个:

                However, when I run the file, the run configuration hangs until I keyboard interrupt with ctrl+c. Traceback returns this:

                > Traceback (most recent call last):   File
                > "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/hubspot-marketplace.py",
                > line 9, in <module>
                >     driver = webdriver.Chrome(chrome_options=options, executable_path='/home/ec2-user/environment/downloads/chromedriver')  
                > File
                > "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/chrome/webdriver.py",
                > line 75, in __init__
                >     desired_capabilities=desired_capabilities)   File "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py",
                > line 154, in __init__
                >     self.start_session(desired_capabilities, browser_profile)   File "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py",
                > line 243, in start_session
                >     response = self.execute(Command.NEW_SESSION, parameters)   File "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/remote/webdriver.py",
                > line 310, in execute
                >     response = self.command_executor.execute(driver_command, params)   File
                > "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/remote/remote_connection.py",
                > line 466, in execute
                >     return self._request(command_info[0], url, body=data)   File "/home/ec2-user/environment/vpy36/lib/python3.6/dist-packages/selenium/webdriver/remote/remote_connection.py",
                > line 490, in _request
                >     resp = self._conn.getresponse()   File "/usr/lib64/python3.6/http/client.py", line 1331, in getresponse
                >     response.begin()   File "/usr/lib64/python3.6/http/client.py", line 297, in begin
                >     version, status, reason = self._read_status()   File "/usr/lib64/python3.6/http/client.py", line 258, in _read_status
                >     line = str(self.fp.readline(_MAXLINE + 1), "iso-8859-1")   File "/usr/lib64/python3.6/socket.py", line 586, in readinto
                >     return self._sock.recv_into(b) KeyboardInterrupt
                

                刚刚花了 4 个小时尝试将 chrome 和 beautifulsoup 安装到 AWS Cloud 9 上.非常困难.

                Just spent the last 4 hours trying to install chrome and beautifulsoup onto AWS Cloud 9. Very difficult.

                我只是让它运行,直到它自行停止并返回 Message: unknown error: Chrome failed to start: exitedly

                I just let it run until it stopped by itself and returned Message: unknown error: Chrome failed to start: exited abnormally

                编辑 2:驱动程序信息:chromedriver=2.10.267518,

                Edit 2: Driver info: chromedriver=2.10.267518,

                平台=Linux 4.9.85-38.58.amzn1.x86_64 x86_64

                platform=Linux 4.9.85-38.58.amzn1.x86_64 x86_64

                谷歌浏览器 66.0.3359.117

                Google Chrome 66.0.3359.117

                推荐答案

                这个错误信息...

                Message: unknown error: Chrome failed to start: exited abnormally
                

                ...暗示 ChromeDriver 无法建立新的 Chrome 会话.

                ...implies that the ChromeDriver was unable to establish a new Chrome session.

                根据您的问题更新,您的主要问题是您使用的二进制文件之间的版本兼容性,如下所示:

                As per your question update your main issue is the version compatibility between the binaries you are using as follows :

                • 您正在使用 chromedriver=2.10,它非常oldancient
                • 您正在使用 chrome=66.0
                • ChromeDriver v2.38 明确提及以下内容:

                支持 Chrome v65-67

                • 我们不知道您的 Selenium 客户端 版本.
                • 所以 ChromeDriver 版本 (v2.10) 和 Chrome 浏览器 版本 (v66.0)

                  So there is a clear mismatch between the ChromeDriver version (v2.10) and the Chrome Browser version (v66.0)

                  • Selenium 升级到当前级别版本 3.11.0.
                  • ChromeDriver 升级到当前的 ChromeDriverv2.38 级别.
                  • Chrome 版本保持在 Chrome v66.x 级别.(根据 ChromeDriver v2.38 发行说明)
                  • 清理你的项目工作区通过你的IDE重建你的项目只需要依赖.
                  • 使用 CCleaner 工具清除之前和在您的测试套件执行之后.
                  • 如果您的基础 Web Client 版本太旧,请通过 卸载它Revo Uninstaller 并安装最新的 GA 和发布版本的 Web Client.
                  • 进行一次系统重启.
                  • 执行你的 @Test.
                  • Upgrade Selenium to current levels Version 3.11.0.
                  • Upgrade ChromeDriver to current ChromeDriver v2.38 level.
                  • Keep Chrome version at Chrome v66.x levels. (as per ChromeDriver v2.38 release notes)
                  • Clean your Project Workspace through your IDE and Rebuild your project with required dependencies only.
                  • Use CCleaner tool to wipe off all the OS chores before and after the execution of your test Suite.
                  • If your base Web Client version is too old, then uninstall it through Revo Uninstaller and install a recent GA and released version of Web Client.
                  • Take a System Reboot.
                  • Execute your @Test.

                  您可以在以下位置找到一些相关讨论:

                  You can find a couple of relevant discussions in:

                  • WebDriverException:消息:未知错误:Chrome 无法启动:在 VPS 上通过 Python 使用 ChromeDriver Chrome 和 Selenium 异常退出
                  • WebDriverException:消息:未知错误:Chrome 无法启动:在 VPS 上通过 Python 使用 ChromeDriver Chrome 和 Selenium 异常退出
                  • WebDriverException:消息:未知错误:Chrome 无法启动:在 VPS 上通过 Python 使用 ChromeDriver Chrome 和 Selenium 异常退出

                  这篇关于消息:未知错误:Chrome 无法启动:在使用 Linux 4.9.85-38.58.amzn1.x86_64 x86_64 的 AWS Cloud9 上异常退出的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                上一篇:WebDriverException:消息:长时间无法访问 chrome 下一篇:如何使用 Python 和 Selenium WebDriver 获取 localStorag

                相关文章

                最新文章

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

                  <bdo id='evVEm'></bdo><ul id='evVEm'></ul>

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

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

                  1. <tfoot id='evVEm'></tfoot>