(session not created: devtoolsactiveport file doesn't exist) 16:47:03 (the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.)怎么处理
这个错误提示通常发生在你尝试使用ChromeDriver控制已经关闭或崩溃的Google Chrome浏览器时。为了解决这个问题,你可以按照以下步骤操作: 1. 检查Chrome版本和ChromeDriver版本是否匹配: 确保你的ChromeDriver与正在运行的Chrome浏览器版本兼容。你可以在Chrome浏览器的"About Google Chrome"(关于Google Chrome)中查看版本号,然后访问`https://sites.google.com/a/chromium.org/chromedriver/downloads`下载最新的ChromeDriver。 2. 重启Chrome浏览器: 有时,简单的重启浏览器就能解决问题。 3. 确认ChromeDriver路径: 确保你的ChromeDriver可执行文件在系统路径中或者在你的项目路径下。如果不在,需要添加到环境变量或指定完整的路径。 4. 清理旧的DevToolsActivePort文件: 这个文件可能由于之前的会话未正常结束而残留。在你的ChromeDriver目录下找到`DevToolsActivePort`文件,删除它。例如,在Linux上,可能在`~/.config/chromedriver/`目录下,Windows用户则可能在`%USERPROFILE%\.config\chromedriver\`目录下。 5. 重启ChromeDriver服务: 如果上述步骤无法解决,尝试重启ChromeDriver服务。在命令行中,使用如下命令停止和启动ChromeDriver(假设你安装在默认位置): - 停止:`chromedriver --stop` - 启动:`chromedriver` 6. 检查防火墙和安全软件设置: 确保没有防火墙或安全软件阻止了ChromeDriver与Chrome之间的通信。 7. 检查session是否超时: 如果长时间无操作,Chrome可能会自动退出,这时需要重新打开浏览器。 如果问题依然存在,可能需要查阅更详细的ChromeDriver文档或者寻求更多专业的帮助。 [2024-07-02 16:52:25 | AI写代码神器 | 398点数解答]
- [阿里通义] (session not created: devtoolsactiveport file doesn't exist) 16:47:03 (the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.)(388点数解答 | 2024-07-02 16:52:01)272
- [阿里通义] (session not created: devtoolsactiveport file doesn't exist) 16:47:03 (the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.)怎么处理(398点数解答 | 2024-07-02 16:52:25)277
- [百度文心] (session not created: devtoolsactiveport file doesn't exist) 16:47:03 (the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.)怎么处理(566点数解答 | 2024-07-02 16:53:50)201
- [讯飞星火] message: session not created: chrome failed to start: exited normally. (session not created: devtoolsactiveport file doesn't exist) (the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that怎么处理(222点数解答 | 2024-07-02 17:22:16)259
- [讯飞星火] the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.(134点数解答 | 2024-07-02 17:37:08)208
- [阿里通义] the process started from chrome location /usr/bin/google-chrome is no longer running, so chromedriver is assuming that chrome has crashed.(413点数解答 | 2024-07-02 17:37:25)231
- [字节豆包] 最后一次提交时间:2025-07-10 21:24:47 得分:0.00 WA e01.c: Wrong e02.c: Error: Invalid variable name '_' Error: Undeclared variable '_' /usr/bin/ld: /tmp/cc6l5bH4.o: in function `main': (.text+0x3b): undefined reference to `_ANJDFnjkl_jnnjk121212' /usr/bin/ld: (.text+0x49): undefined reference to `_ANJDFnjkl_jnnjk121212' /usr/bin/ld: (.text+0x57): undefined reference to `_ANJDFnjkl_jnnjk121212' /usr/bin/ld: (.text+0x66): undefined reference to `_ANJDFnjkl_jnnjk121212' collect2: error: ld returned 1 exit (857点数解答 | 2025-07-10 21:26:21)139
- w tensorflow/stream_executor/platform/default/dso_loader.cc:64] could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: no such file or directory 2024-03-01 14:19:13.225439: i tensorflow/stream_executor/cuda/cudart_stub.cc:29] ignore above cudart dlerror if you do not have a gpu set up on your machine.(337点数解答 | 2024-03-01 14:20:05)309
- [阿里通义] w tensorflow/stream_executor/platform/default/dso_loader.cc:64] could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: no such file or directory 2024-03-01 14:19:13.225439: i tensorflow/stream_executor/cuda/cudart_stub.cc:29] ignore above cudart dlerror if you do not have a gpu set up on your machine.(347点数解答 | 2024-03-01 14:20:45)448
- w tensorflow/stream_executor/platform/default/dso_loader.cc:64] could not load dynamic library 'libcudart.so.11.0'; dlerror: libcudart.so.11.0: cannot open shared object file: no such file or directory(549点数解答 | 2024-03-11 17:53:15)375
- [阿里通义] /usr/sbin/vsftpd: relocation error: /lib64/libnss_files.so.2: symbol __libc_readline_unlocked, version GLIBC_PRIVATE not defined in file libc.so.6 with link time reference 密码长度:8位(149点数解答 | 2025-01-20 11:15:28)155
- [字节豆包] *** Using Compiler 'V5.06 update 6 (build 750)', folder: 'E:\keilmdk\ARM\ARMCC\Bin' Rebuild target 'Target 1' compiling oled.c... E:\keilmdk\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No such file or directory #include "core_cm3.h" oled.c: 0 warnings, 1 error compiling dht11.c... E:\keilmdk\ARM\PACK\Keil\STM32F1xx_DFP\2.2.0\Device\Include\stm32f10x.h(483): error: #5: cannot open source input file "core_cm3.h": No (666点数解答 | 2025-11-12 18:26:21)30