问答交流

内存规格——aistudio遇到的问题

由dulian创建,最终由small_q 被浏览 25 用户

Canceled future for execute_request message before replies were done

在当前单元格或上一个单元格中执行代码时 Kernel 崩溃。请查看单元格中的代码,以确定故障的可能原因。有关详细信息,请单击 此处。有关更多详细信息,请查看 Jupyter log。

https://github.com/microsoft/vscode-jupyter/wiki/Kernel-crashes

AIStudio (1.76.1, bigquant.com, server-distro) Jupyter Extension Version: 2023.2.1200692131. Python Extension Version: 2023.4.1. Workspace folder /home/aiuser/work info 13:38:58.272: LSP Notebooks experiment is enabled info 13:38:59.689: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' (disableUI=true) warn 13:39:00.242: Failed to get activated env vars with python /bin/python3 in 554ms warn 13:39:00.242: Failed to get activated env vars with python /bin/python3 in 534ms warn 13:39:00.242: Failed to get activated env vars with python /bin/python3 in 507ms warn 13:39:00.242: Failed to get activated env vars with python /bin/python3 in 506ms info 13:39:00.343: Process Execution: > /bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"

/bin/python3 -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");" info 13:39:00.546: Process Execution: > /bin/python3 -m pip list /bin/python3 -m pip list info 13:39:00.614: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" info 13:39:00.701: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"7d2fac1b-0538-473c-b984-6e3eea0d2f4f" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197ZbFxhKtIoxKu.json /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"7d2fac1b-0538-473c-b984-6e3eea0d2f4f" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197ZbFxhKtIoxKu.json info 13:39:00.701: Process Execution: cwd: ~/work/股票 cwd: ~/work/股票 info 13:39:02.418: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/init.py for /bin/python3 warn 13:39:10.814: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5. warn(

warn 13:39:10.817: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '7d2fac1b-0538-473c-b984-6e3eea0d2f4f' instead of 'b"7d2fac1b-0538-473c-b984-6e3eea0d2f4f"'. warn(

warn 13:39:14.310: Didn't get response for requestKernelInfo after 3000ms. info 13:39:14.312: Started Kernel Python 3.8.12 (pid: 253) info 13:40:13.758: Dispose Kernel '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' associated with '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' info 13:40:13.761: Dispose Kernel process 253. info 13:40:15.805: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' (disableUI=true) warn 13:40:16.042: Failed to get activated env vars with python /bin/python3 in 143ms info 13:40:16.120: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"

/bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" warn 13:40:16.199: Failed to get activated env vars with python /bin/python3 in 290ms warn 13:40:16.199: Failed to get activated env vars with python /bin/python3 in 290ms info 13:40:16.300: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"8cd5560d-da96-4d16-8fe0-dad5d9410fb0" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197qshDJRSdHjLw.json /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"8cd5560d-da96-4d16-8fe0-dad5d9410fb0" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197qshDJRSdHjLw.json info 13:40:16.300: Process Execution: cwd: ~/work/股票 cwd: ~/work/股票 info 13:40:17.712: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/init.py for /bin/python3 warn 13:40:20.810: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5. warn(

warn 13:40:20.811: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '8cd5560d-da96-4d16-8fe0-dad5d9410fb0' instead of 'b"8cd5560d-da96-4d16-8fe0-dad5d9410fb0"'. warn(

warn 13:40:24.011: Didn't get response for requestKernelInfo after 3002ms. info 13:40:24.013: Started Kernel Python 3.8.12 (pid: 373) warn 13:40:31.949: Failed to get activated env vars with python /bin/python3 in 91ms info 13:40:31.973: Process Execution: > /bin/python3 ~/.local/share/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/pythonFiles/printJupyterDataDir.py

/bin/python3 ~/.local/share/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/pythonFiles/printJupyterDataDir.py info 13:41:48.034: Dispose Kernel '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' associated with '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' info 13:41:48.036: Dispose Kernel process 373. info 13:41:50.137: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd0916dbcbb3f70747c44a77c7bcd40155683ae19c65e1c03b4aa3499c5328201f1./bin/python3./bin/python3.-m#ipykernel_launcher (Python Path: , EnvType: Unknown, EnvName: '', Version: 3.8.12 (default, Dec 11 2022, 18:02:23) [GCC 7.3.1 20180303 (Red Hat 7.3.1-5)]) for '/home/aiuser/work/股票/02自己用-2303-暂用版-Copy1.ipynb' (disableUI=true) warn 13:41:50.322: Failed to get activated env vars with python /bin/python3 in 175ms warn 13:41:50.322: Failed to get activated env vars with python /bin/python3 in 168ms warn 13:41:50.322: Failed to get activated env vars with python /bin/python3 in 168ms info 13:41:50.416: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" info 13:41:50.506: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"4c049811-ae61-422f-8909-b7979518bc67" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197MGUmdQVmRzrI.json /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"4c049811-ae61-422f-8909-b7979518bc67" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197MGUmdQVmRzrI.json info 13:41:50.506: Process Execution: cwd: ~/work/股票 cwd: ~/work/股票 info 13:41:53.402: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/init.py for /bin/python3 warn 13:42:00.999: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5. warn(

warn 13:42:01.000: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '4c049811-ae61-422f-8909-b7979518bc67' instead of 'b"4c049811-ae61-422f-8909-b7979518bc67"'. warn(

warn 13:42:04.217: Didn't get response for requestKernelInfo after 3001ms. info 13:42:04.220: Started Kernel Python 3.8.12 (pid: 436) info 13:42:16.976: Cancel all remaining cells true || Error || undefined error 13:48:10.412: Disposing session as kernel process died ExitCode: undefined, Reason: /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5. warn( /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '4c049811-ae61-422f-8909-b7979518bc67' instead of 'b"4c049811-ae61-422f-8909-b7979518bc67"'. warn(

info 13:48:10.412: Dispose Kernel process 436. error 13:48:10.413: Raw kernel process exited code: undefined error 13:48:10.419: Error in waiting for cell to complete [Error: Canceled future for execute_request message before replies were done at t.KernelShellFutureHandler.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:33213) at /opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:52265 at Map.forEach (<anonymous>) at y._clearKernelState (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:52250) at y.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:45732) at /opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:127079 at ee (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:2:1552543) at dh.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:127055) at hh.dispose (/opt/aistudio/extensions/ms-toolsai.jupyter-2023.2.1200692131/out/extension.node.js:17:134354) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5)] warn 13:48:10.421: Cell completed with errors { message: 'Canceled future for execute_request message before replies were done' } info 13:48:10.425: Cancel all remaining cells true || Error || undefined info 13:49:59.928: Restart kernel execution info 13:49:59.928: Restart requested file:///home/aiuser/work/%E8%82%A1%E7%A5%A8/02%E8%87%AA%E5%B7%B1%E7%94%A8-2303-%E6%9A%82%E7%94%A8%E7%89%88-Copy1.ipynb info 13:49:59.930: Restarting undefined warn 13:50:00.038: Failed to get activated env vars with python /bin/python3 in 108ms info 13:50:00.060: Process Execution: > /bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"

/bin/python3 -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" warn 13:50:00.064: Failed to get activated env vars with python /bin/python3 in 117ms warn 13:50:00.064: Failed to get activated env vars with python /bin/python3 in 117ms info 13:50:00.091: Process Execution: > /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"27444f94-3b0b-4b7b-bc79-0e477151e158" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197fdMaWhLXwj4r.json /bin/python3 -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"27444f94-3b0b-4b7b-bc79-0e477151e158" --shell=9002 --transport="tcp" --iopub=9004 --f=/home/aiuser/.local/share/jupyter/runtime/kernel-v2-197fdMaWhLXwj4r.json info 13:50:00.091: Process Execution: cwd: ~/work/股票 cwd: ~/work/股票 info 13:50:00.900: ipykernel version & path 6.22.0, /usr/local/python3/lib/python3.8/site-packages/ipykernel/init.py for /bin/python3 warn 13:50:02.675: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2548: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use 'hmac-sha256' instead of '"hmac-sha256"' if you require traitlets >=5. warn(

warn 13:50:02.679: StdErr from Kernel Process /usr/local/python3/lib/python3.8/site-packages/traitlets/traitlets.py:2499: FutureWarning: Supporting extra quotes around Bytes is deprecated in traitlets 5.0. Use '27444f94-3b0b-4b7b-bc79-0e477151e158' instead of 'b"27444f94-3b0b-4b7b-bc79-0e477151e158"'. warn(

warn 13:50:05.719: Didn't get response for requestKernelInfo after 3001ms. info 13:50:05.724: Got new session be74981d-7fbe-4a57-8432-553c2d4b58e0 info 13:50:05.724: Started new restart session info 13:50:09.500: Cancel all remaining cells true || Error || undefined

log

标签

AIStudio
评论
  • 运行内存超过你自己的内存规格,一般选用较大的内存规格