File "G:\python\lib\site-packages\selenium\webdriver\common\service.py", line 81, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'login' executable needs to be in PATH. Please see https://chromedriver.chromium.org/home Total 1 0 0 1

时间: 2024-04-26 12:25:28 浏览: 192
这是一个错误提示,它说明启动WebDriver时找不到 ChromeDriver 可执行文件。你需要将ChromeDriver的可执行文件添加到系统的PATH环境变量中,或者在代码中指定ChromeDriver可执行文件的路径。你可以去ChromeDriver官网下载对应的版本,并将其解压到某个目录下,然后将该目录添加到系统的PATH环境变量中即可。如果你使用的是Python,也可以使用selenium库提供的webdriver.Chrome()方法指定ChromeDriver的路径来启动WebDriver。
相关问题

Traceback (most recent call last): File "D:\lianxi\venv\lib\site-packages\selenium\webdriver\common\service.py", line 72, in start self.process = subprocess.Popen(cmd, env=self.env, File "D:\python\lib\subprocess.py", line 951, in __init__ self._execute_child(args, executable, preexec_fn, close_fds, File "D:\python\lib\subprocess.py", line 1420, in _execute_child hp, ht, pid, tid = _winapi.CreateProcess(executable, args, FileNotFoundError: [WinError 2] 系统找不到指定的文件。 During handling of the above exception, another exception occurred: Traceback (most recent call last): File "D:\lianxi\爬虫\test.py", line 3, in <module> driver = webdriver.Chrome() # 指定使用Chrome浏览器 File "D:\lianxi\venv\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 62, in __init__ self.service.start() File "D:\lianxi\venv\lib\site-packages\selenium\webdriver\common\service.py", line 79, in start raise WebDriverException( selenium.common.exceptions.WebDriverException: Message: 'chromedriver' executable needs to be in PATH. Please see https://sites.google.com/a/chromium.org/chromedriver/home Exception ignored in: <function Service.__del__ at 0x000001F6C43F7700> Traceback (most recent call last): File "D:\lianxi\venv\lib\site-packages\selenium\webdriver\common\service.py", line 173, in __del__ self.stop() File "D:\lianxi\venv\lib\site-packages\selenium\webdriver\common\service.py", line 145, in stop if self.process is None: AttributeError: 'Service' object has no attribute 'process'

这个错误提示是因为webdriver无法找到chromedriver的路径。您需要将chromedriver的路径添加到系统环境变量中,或者在webdriver.Chrome()中指定chromedriver的路径,例如: ```python from selenium import webdriver driver = webdriver.Chrome(executable_path='D:/chromedriver.exe') # 指定chromedriver的路径 driver.get('https://www.sto.cn/Service/CustomerService?active_li=2&active_span=23') ``` 请将代码中的chromedriver.exe路径改为您自己的chromedriver路径。

Traceback (most recent call last): File "cesu.py", line 15, in <module> driver = webdriver.Chrome(executable_path=chromedriver_path, chrome_options=chrome_options) File "C:\python27\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__ desired_capabilities=desired_capabilities) File "C:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 90, in __init__ self.start_session(desired_capabilities, browser_profile) File "C:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 177, in start_session response = self.execute(Command.NEW_SESSION, capabilities) File "C:\python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 236, in execute self.error_handler.check_response(response) File "C:\python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 192, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: unable to discover open pages (Driver info: chromedriver=104.0.5112.80 (62f83a7521ae1f32e563795732dff0c9da1b660d-refs/heads/master@{#812354}),platform=Windows NT 10.0.22621 x86_64) 这个报错是什么意思,如何解决

这个报错意味着无法打开网页或与浏览器建立会话。这可能是由于以下原因导致的: 1. Chrome 驱动与 Chrome 浏览器版本不匹配:请确保你的 Chrome 驱动版本与你的 Chrome 浏览器版本相匹配。你可以在 Chrome 浏览器的设置中找到版本号,并从 Chrome 驱动官方网站下载与之对应的驱动版本。 2. Chrome 驱动路径错误:请确保你已正确设置了 `chromedriver_path` 变量,指向你本地的 Chrome 驱动程序的路径。 3. Chrome 浏览器未安装或未正确安装:请确保你已经安装了 Chrome 浏览器,并且可以正常启动和访问网页。 4. 其他问题:如果以上步骤都没有解决问题,可能是其他环境或配置问题导致的。你可以尝试重新安装 Selenium 和 Chrome 驱动,或者尝试在不使用无头模式的情况下运行脚本,以便查看更详细的错误信息。 希望这些解决方案能帮助你解决问题。如果问题仍然存在,请提供更多详细信息,以便我能够更好地帮助你。
阅读全文

相关推荐

from selenium import webdriver from selenium.webdriver.chrome.service import Service as ChromeService from selenium.webdriver.common.by import By import time options = webdriver.ChromeOptions() # 设置远程调试端口号为9222 options.add_argument("--remote-debugging-port=9222") # 必须与debuggerAddress端口一致 options.debugger_address = "127.0.0.1:9222" # 显式指定连接地址 options.add_argument("--user-data-dir=C:/Users/fzh13/Desktop/selenium/cookie") options.add_argument('--start-maximized') service = webdriver.ChromeService(executable_path='chromedriver.exe') driver = webdriver.Chrome(service=service, options=options) try: # 打开目标网站 driver.get("https://www.csdn.net/") # 等待页面加载完成 time.sleep(5) finally: pass 运行后报错:Traceback (most recent call last): File "C:\Users\fzh13\Desktop\selenium\test.py", line 18, in <module> driver = webdriver.Chrome(service=service, options=options) File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__( File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 241, in __init__ self.start_session(capabilities) File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 329, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 384, in execute self.error_handler.check_response(response) File "D:\DeepLearning\anaconda\envs\chatelink\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionN

Python 3.10.11 (tags/v3.10.11:7d4cc5a, Apr 5 2023, 00:38:17) [MSC v.1929 64 bit (AMD64)] on win32 Type "help", "copyright", "credits" or "license()" for more information. ===================== RESTART: G:\chashan\python案例\爬虫案例.py ===================== Traceback (most recent call last): File "G:\chashan\python案例\爬虫案例.py", line 3, in <module> driver = webdriver.Chrome() File "G:\chashan\python\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 84, in __init__ super().__init__( File "G:\chashan\python\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 104, in __init__ super().__init__( File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 286, in __init__ self.start_session(capabilities, browser_profile) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 378, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 440, in execute self.error_handler.check_response(response) File "G:\chashan\python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 245, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary Stacktrace: Backtrace: GetHandleVerifier [0x010F8893+48451] (No symbol) [0x0108B8A1] (No symbol) [0x00F95058] (No symbol) [0x00FB164E] (No symbol) [0x00FB0019] (No symbol) [0x00FE0798] (No symbol) [0x00FE047C] (No symbol) [0x00FDA0B6] (No symbol) [0x00FB7E08] (No symbol) [0x00FB8F2D] GetHandleVerifier [0x01358E3A+2540266] GetHandleVerifier [0x01398959+2801161] GetHandleVerifier [0x0139295C+2776588] GetHandleVerifier [0x01182280+612144] (No symbol) [0x01094F6C] (No symbol) [0x010911D8] (No symbol) [0x010912BB] (No symbol) [0x01084857] BaseThreadInitThunk [0x75587D59+25] RtlInitializeExceptionChain [0x76FBB74B+107] RtlClearBits [0x76FBB6CF+191]

"D:\Program Files\python\python.exe" D:\pcWJ\测试项目\cs.py The chromedriver version (101.0.4951.41) detected in PATH at D:\download\火狐下载\chromedriver.exe might not be compatible with the detected chrome version (134.0.6998.178); currently, chromedriver 134.0.6998.165 is recommended for chrome 134.*, so it is advised to delete the driver in PATH and retry Traceback (most recent call last): File "D:\pcWJ\测试项目\cs.py", line 5, in <module> driver = webdriver.Chrome() ^^^^^^^^^^^^^^^^^^ File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__( File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in __init__ self.start_session(capabilities) File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 342, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute self.error_handler.check_response(response) File "D:\Program Files\python\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 101 Current browser version is 134.0.6998.178 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: Ordinal0 [0x00F1B8F3+2406643] Ordinal0 [0x00EAAF31+1945393] Ordinal0 [0x00D9C748+837448] Ordinal0 [0x00DBC8B3+968883] Ordinal0 [0x00DB84BA+951482] Ordinal0 [0x00DB5D71+941

The chromedriver version (114.0.5735.90) detected in PATH at D:\py\chromedriver.exe might not be compatible with the detected chrome version (133.0.6943.99); currently, chromedriver 133.0.6943.141 is recommended for chrome 133.*, so it is advised to delete the driver in PATH and retry Traceback (most recent call last): File "D:\py\pythonProject\WebUITestAutomation\demo1_selenium.py", line 5, in <module> driver = webdriver.Chrome() ^^^^^^^^^^^^^^^^^^ File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__( File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in __init__ self.start_session(capabilities) File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 342, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute self.error_handler.check_response(response) File "D:\py\pythonProject\WebUITestAutomation\venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 114 Current browser version is 133.0.6943.99 with binary path C:\Users\SSY\AppData\Local\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: GetHandleVerifier [0x00E7A813+48355] (No symbol) [0x00E0C4B1] (No sym

Exception in thread Thread-5: Traceback (most recent call last): File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\threading.py", line 932, in _bootstrap_inner self.run() File "ICP.py", line 197, in run self.workType1() File "ICP.py", line 53, in workType1 dt = self.openBrowserAndLoadPath() File "ICP.py", line 181, in openBrowserAndLoadPath dt.OpenBrowser(index, proxy) File "C:\Users\11834\Desktop\icpTool\Ahao_ToolsForThis.py", line 328, in OpenBrowser self.browser = webdriver.Chrome(options=chrome_options) File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 76, in __init__ RemoteWebDriver.__init__( File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 157, in __init__ self.start_session(capabilities, browser_profile) File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 252, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute self.error_handler.check_response(response) File "C:\Users\11834\miniconda3\envs\cv2_cp38\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created from no such execution context: uniqueContextId not found (Session info: chrome=114.0.5735.110)

启动程序报错libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile libpng warning: iCCP: known incorrect sRGB profile Traceback (most recent call last): File "D:\2_stydy\python_study\pc\text.py", line 79, in <module> main() File "D:\2_stydy\python_study\pc\text.py", line 65, in main driver = login_xiaohongshu() ^^^^^^^^^^^^^^^^^^^ File "D:\2_stydy\python_study\pc\text.py", line 29, in login_xiaohongshu driver = webdriver.Chrome(service=Service(ChromeDriverManager().install()), options=options) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__( File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in __init__ self.start_session(capabilities) File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 342, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute self.error_handler.check_response(response) File "D:\2_stydy\python_study\pc\venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.WebDriverException: Message: unknown error: cannot find Chrome binary Stacktrace: Backtrace: GetHandleVerifier [0x004

Traceback (most recent call last): File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 67, in _binary_paths output = SeleniumManager().binary_paths(self._to_args()) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/common/selenium_manager.py", line 46, in binary_paths args = [str(self._get_binary())] + args ^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/common/selenium_manager.py", line 93, in _get_binary raise WebDriverException(f"Unsupported platform/architecture combination: {sys.platform}/{arch}") selenium.common.exceptions.WebDriverException: Message: Unsupported platform/architecture combination: linux/aarch64 The above exception was the direct cause of the following exception: Traceback (most recent call last): File "/data/user/0/com.cscjapp.python/files/ide_files/ide_run.py", line 31, in <module> start(fakepyfile,mainpyfile) File "/data/user/0/com.cscjapp.python/files/ide_files/ide_run.py", line 30, in start exec(open(mainpyfile).read(), __main__.__dict__) File "<string>", line 5, in <module> File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/chrome/webdriver.py", line 47, in __init__ super().__init__( File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/chromium/webdriver.py", line 53, in __init__ if finder.get_browser_path(): ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 47, in get_browser_path return self._binary_paths()["browser_path"] ^^^^^^^^^^^^^^^^^^^^ File "/data/user/0/com.cscjapp.python/files/aarch64-linux-android/lib/python3.11/site-packages/selenium/webdriver/common/driver_finder.py", line 78, in _binary_paths raise NoSuchDriverException(msg) from err selenium.common.exceptions.NoSuchDriverException: Message: Unable to obtain driver for chrome; For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors/driver_location /storage/emulated/0/Android/data/com.cscjapp.python/files/CJ_IDE/PythonProject/默认目录/王爷,计划/src $

C:\Users\86156\PycharmProjects\PythonProject3\.venv\Scripts\python.exe C:\Users\86156\PycharmProjects\PythonProject3\day1\driver_func.py C:\Users\86156\PycharmProjects\PythonProject3\day1\driver_func.py:17: SyntaxWarning: invalid escape sequence '\P' os.popen('"C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe" --remote-debugging-port=2099 --user-data-dir="C:\Program Files \Application\driverData\msedgedata"') Traceback (most recent call last): File "C:\Users\86156\PycharmProjects\PythonProject3\day1\driver_func.py", line 26, in <module> driver = webdriver.Edge(service=webdriver.EdgeService("../msedgedriver.exe"), options=option) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\edge\webdriver.py", line 45, in __init__ super().__init__( File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in __init__ self.start_session(capabilities) File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 342, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute self.error_handler.check_response(response) File "C:\Users\86156\PycharmProjects\PythonProject3\.venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCrea

解决一下这个问题Traceback (most recent call last): File "D:\pythonchengxu\untitled12\zuoye.py", line 12, in <module> driver = webdriver.Chrome(options=chrome_options) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 69, in __init__ super().__init__(DesiredCapabilities.CHROME['browserName'], "goog", File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 92, in __init__ super().__init__( File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 270, in __init__ self.start_session(capabilities, browser_profile) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 363, in start_session response = self.execute(Command.NEW_SESSION, parameters) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 428, in execute self.error_handler.check_response(response) File "D:\Program Files\Python39\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 112 Current browser version is 114.0.5735.110 with binary path C:\Program Files\Google\Chrome\Application\chrome.exe Stacktrace: Backtrace: GetHandleVerifier [0x00B9DCE3+50899] (No symbol) [0x00B2E111] (No symbol) [0x00A35588] (No symbol) [0x00A5570C] (No symbol) [0x00A51471] (No symbol) [0x00A4F479] (No symbol) [0x00A81FFE] (No symbol) [0x00A81CEC] (No symbol) [0x00A7B6F6] (No symbol) [0x00A57708] (No symbol) [0x00A5886D] GetHandleVerifier [0x00E03EAE+2566302] GetHandleVerifier [0x00E392B1+2784417] GetHandleVerifier [0x00E3327C+2759788] GetHandleVerifier [0x00C35740+672048] (No symbol) [0x00B38872] (No symbol) [0x00B341C8] (No symbol) [0x00B342AB] (No symbol) [0x00B271B7] BaseThreadInitThunk [0x76847D59+25] RtlInitializeExceptionChain [0x77B6B74B+107] RtlClearBits [0x77B6B6CF+191]

使用上面的代码之后报错Traceback (most recent call last): File "C:\Users\Administrator\Desktop\PY日志\test.py", line 18, in <module> driver = webdriver.Chrome( ^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\chrome\webdriver.py", line 45, in __init__ super().__init__( File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\chromium\webdriver.py", line 66, in __init__ super().__init__(command_executor=executor, options=options) File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 250, in __init__ self.start_session(capabilities) File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 342, in start_session response = self.execute(Command.NEW_SESSION, caps)["value"] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 429, in execute self.error_handler.check_response(response) File "C:\Users\Administrator\Desktop\pythonProject\.venv\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 232, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.SessionNotCreatedException: Message: session not created: This version of ChromeDriver only supports Chrome version 108 Current browser version is 14.1.1278.0 with binary path C:\Users\Administrator\AppData\Roaming\360se6\Application\360se.exe Stacktrace: Backtrace: (No symbol) [0x0068F243] (No symbol) [0x00617FD1] (No symbol) [0x0050D04D] (No symbol) [0x0052F6B4] (No symbol) [0x0052A97C] (No symbol) [0x005282E9] (No symbol) [0x0055F056] (No symbol) [0x0055EB2A] (No symbol) [0x00558386] (No symbol) [0x0053163C] (No symbol) [0x0053269D] GetHandleVerifier [0x00929A22+2655074

最新推荐

recommend-type

本科毕业设计论文--操作系统课程设计报告进程调度算法模拟(1).doc

本科毕业设计论文--操作系统课程设计报告进程调度算法模拟(1).doc
recommend-type

基于非标自动化机械设计管控的策略探究(1).docx

基于非标自动化机械设计管控的策略探究(1).docx
recommend-type

可测性设计及DFT软件的使用(1).pptx

可测性设计及DFT软件的使用(1).pptx
recommend-type

第5章-FX系列基本指令及编程讲课教案(1).ppt

第5章-FX系列基本指令及编程讲课教案(1).ppt
recommend-type

单片机实验开发板程序编写指南

单片机实验程序的知识点可以从单片机的概念、开发板的作用、实验的目的以及具体程序编写与调试方面进行详细阐述。 首先,单片机(Single-Chip Microcomputer),又称微控制器,是将中央处理单元(CPU)、随机存取存储器(RAM)、只读存储器(ROM)、输入输出接口等主要计算机功能部件集成在一片芯片上的微小型计算机。它具备独立处理特定任务的能力,广泛应用于嵌入式系统中。单片机由于其成本低廉、体积小、功耗低、控制简单等特点,被广泛应用于家用电器、办公自动化、汽车电子、工业控制等众多领域。 接着,开发板(Development Board)是为了方便开发者使用单片机而设计的一种实验平台,通常集成了单片机、电源管理模块、外围接口电路、调试接口、编程接口等。开发板的主要作用是提供一个简洁的硬件环境,让开发者可以更容易地进行实验、测试和程序开发。在使用开发板进行单片机实验时,可以通过编程器将用户编写的程序烧录到单片机中,然后进行实际操作和测试。 实验的目的通常是为了验证某些特定的功能或者算法。在实验中,开发者可以使用单片机开发板来实现对输入信号的检测、处理和输出控制。例如,可以编写程序使单片机控制LED灯的亮灭,或者读取按键输入并根据按键的不同进行不同的控制。实验程序可以是一个简单的循环处理,也可以是复杂的算法实现,如数据通信、中断处理、定时器使用等。 在编写单片机实验程序时,首先需要了解所使用的单片机的指令集和硬件资源。以常用的8051单片机为例,需要熟悉其寄存器配置、特殊功能寄存器(SFR)的使用以及I/O口操作等。编写程序时,通常会使用C语言或者汇编语言。C语言因其可读性好、编写效率高而更受欢迎。开发者可以使用Keil uVision、IAR Embedded Workbench等集成开发环境(IDE)来编写、编译和调试代码。 在程序调试阶段,可以通过开发板上的调试接口,如JTAG、ISP等,将编译好的程序下载到单片机中。调试过程通常包括设置断点、单步执行、查看寄存器和内存内容等操作。通过调试可以发现并修正程序中的逻辑错误或硬件交互问题。 另外,为了保证程序的可靠性和稳定性,实验程序设计时还应考虑异常处理、资源管理以及功耗优化等因素。编写高效的单片机程序不仅仅是让程序按预期运行,还要考虑到程序运行的效率、资源消耗以及对异常情况的应对。 总之,基于开发板的单片机实验程序开发涉及到硬件理解、软件编程、程序调试等多个环节。开发者需要将理论知识与实际操作相结合,通过不断的学习和实践,掌握单片机编程和应用开发的关键技能。这不仅需要对单片机的基础知识有深入的了解,还需要对开发板的功能和特性有充分的认识,从而能够设计出高效、稳定和实用的单片机应用系统。
recommend-type

【性能测试基准】:为RK3588选择合适的NVMe性能测试工具指南

# 1. NVMe性能测试基础 ## 1.1 NVMe协议简介 NVMe,全称为Non-Volatile Memory Express,是专为固态驱动器设计的逻辑设备接口规范。与传统的SATA接口相比,NVMe通过使用PCI Express(PCIe)总线,大大提高了存储设备的数据吞吐量和IOPS(每秒输入输出操作次数),特别适合于高速的固态存储设备。
recommend-type

ubuntu 检查下载源

<think>我们正在讨论Ubuntu系统中检查和配置下载源(软件源)的方法。用户的需求很明确:如何检查当前配置的下载源,以及如何修改它们。根据引用[1]和[2]中的信息,我们知道在Ubuntu中,软件源配置存储在`/etc/apt/sources.list`文件中以及`/etc/apt/sources.list.d/`目录下的额外文件中。修改源通常包括备份当前配置、编辑源列表文件、更新软件包列表等步骤。步骤分解:1.检查当前下载源:可以通过查看`sources.list`文件和`sources.list.d/`目录中的文件内容来实现。2.修改下载源:包括备份、编辑源列表(替换为新的镜像源地址
recommend-type

办公软件:下载使用指南与资源包

标题中提到的“offices办公软件”,指的是Office套件,这是一系列办公应用程序的集合,通常包括文字处理软件(如Microsoft Word)、电子表格软件(如Microsoft Excel)、演示文稿制作软件(如Microsoft PowerPoint),以及邮件管理软件等。该软件包旨在帮助用户提高工作效率,完成文档撰写、数据分析、演示制作等多种办公任务。 描述部分非常简单,提到“一个很好公办软件你一定很爱他快来下载吧加强团结”,表达了对软件的高度评价和期待用户下载使用,以促进工作中的团结协作。不过,这段描述中可能存在错别字或排版问题,正确的表达可能是“一款非常好的办公软件,你一定很爱它,快来下载吧,加强团结”。 标签部分为“dddd”,这显然不是一个有效的描述或分类标签,它可能是由于输入错误或者故意设置的占位符。 压缩包子文件的文件名称列表中包含了以下文件: - keygen.exe:这是一个序列号生成器的可执行文件,通常用于生成软件的注册码或激活码,使得用户能够在不支付授权费用的情况下使用某些付费软件。然而,这通常是违反软件许可协议的行为,也可能涉及到法律风险。 - 说明_Readme.html:这是一个HTML格式的说明文件,通常会包含该软件的安装指南、使用方法、版本信息、已知问题、版权声明和致谢等内容。阅读这个文件可以帮助用户正确安装和使用软件。 - OfficeSuite 4_50.sis:这是一个适用于Symbian操作系统的安装包文件,SIS是Symbian Install File的缩写。从文件名可以看出,这是一个名为“OfficeSuite”的软件的第50个版本,版本号为4.0。Symbian曾是智能手机操作系统之一,通常用于诺基亚等品牌的设备上,但随着智能手机市场的变化,现在已很少见,市场上主流的智能手机操作系统已转向Android和iOS。 - resource:这个名称很模糊,没有文件扩展名,因此无法确定具体是什么类型的资源。它可能是一个包含字体、图像或其他资源文件的文件夹,这些资源文件用于支持Office套件在不同设备或操作系统上的运行。 在使用这些文件时,特别是涉及到keygen.exe这类软件时,用户应谨慎行事。应避免使用未经授权的软件,不仅因为其可能违反法律,还可能对计算机系统造成安全风险。在下载和安装任何软件时,应确保来源的可靠性,并从官方渠道获取正版授权。此外,对于已经过时或不再受支持的软件,比如针对Symbian系统的OfficeSuite,用户可能需要寻找其他替代方案来满足当前的办公需求。
recommend-type

【固态硬盘寿命延长】:RK3588平台NVMe维护技巧大公开

# 1. 固态硬盘寿命延长的基础知识 ## 1.1 固态硬盘的基本概念 固态硬盘(SSD)是现代计算设备中不可或缺的存储设备之一。与传统的机械硬盘(HDD)相比,SSD拥有更快的读写速度、更小的体积和更低的功耗。但是,SSD也有其生命周期限制,主要受限于NAND闪存的写入次数。 ## 1.2 SSD的写入次数和寿命 每块SSD中的NAND闪存单元都有有限的写入次数。这意味着,随着时间的推移,SSD的
recommend-type

DSNPx是什么

<think>我们正在处理一个关于保险精算领域的问题,具体是定期寿险净保费计算。用户询问的是"DSNPx"的定义或含义,特别是在计算机领域的含义。根据提供的代码和上下文,我们可以分析如下:1.在代码中,变量名`NPxM`和`NPxF`分别代表男性(M)和女性(F)的净保费(NetPremium)。而前缀"DS"可能是"定期寿险"(DingQiShouXian)的缩写,因为函数名为`DingQi`,代表定期寿险。2.因此,`DSNPxM`和`DSNPxF`分别表示定期寿险(DS)的净保费(NP)对于男性(x年龄,M)和女性(x年龄,F)。3.在精算学中,净保费是指不考虑费用和利润的纯风险保费,根