Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pylance 在过去 3 分钟内崩溃了 5 次。Pylance 不会重新启动。有关详细信息,请参阅输出 #15688

Open
xiezhipeng-git opened this issue May 11, 2024 · 4 comments

Comments

@xiezhipeng-git
Copy link

Environment data

  • Language Server version: Pylance Extension Version: 2024.5.100.
  • OS and version: windows
  • Python version (& distribution if applicable, e.g. Anaconda): 3.10.10

Code Snippet

XXX

Repro Steps

  1. XXX

Expected behavior

no crashed

Actual behavior

now Pylance 已崩溃。是否要尝试使用 Node.js 可执行文件运行语言服务器? Client Pylance: connection to server is erroring.
Channel closed

Logs

Visual Studio Code (1.89.1, undefined, desktop)
Jupyter Extension Version: 2024.4.0.
Python Extension Version: 2024.6.0.
Pylance Extension Version: 2024.5.100.
Platform: win32 (x64).
Workspace folder \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math, Home = c:\Users\Admin
18:01:01.554 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher (Python Path: d:\my\env\python3.10.10\python.exe, Unknown, Python 3.10.10, 3.10.10) for '\wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\deepseek_do_math.ipynb' (disableUI=true)
18:01:01.703 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 150ms
18:01:01.706 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import site;print("USER_BASE_VALUE");print(site.USER_SITE);print("USER_BASE_VALUE");"
18:01:01.708 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 107ms
18:01:01.754 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m pip list
18:01:01.756 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
18:01:01.758 [info] Process Execution: d:\my\env\python3.10.10\python.exe c:\Users~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\pythonFiles\vscode_datascience_helpers\kernel_interrupt_daemon.py --ppid 12704
> cwd: ~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\pythonFiles\vscode_datascience_helpers
18:01:01.983 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m ipykernel_launcher --f=c:\Users~\AppData\Roaming\jupyter\runtime\kernel-v2-12704TuE0tWNEK8Yt.json
> cwd: \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math
18:01:03.134 [info] Process Execution: d:\my\env\python3.10.10\python.exe c:\Users~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\pythonFiles\printJupyterDataDir.py
18:02:06.895 [info] Handle Execution of Cells 0,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\deepseek_do_math.ipynb
18:02:06.916 [info] Cell 0 completed in 0.01s (start: 1715421726906, end: 1715421726916)
18:02:09.064 [info] Cell 2 completed in 2.145s (start: 1715421726919, end: 1715421729064)
18:02:09.078 [info] Cell 3 completed in 0.01s (start: 1715421729068, end: 1715421729078)
18:02:09.093 [info] Cell 4 completed in 0.012s (start: 1715421729081, end: 1715421729093)
18:02:09.109 [info] Cell 5 completed in 0.013s (start: 1715421729096, end: 1715421729109)
18:02:09.125 [info] Cell 6 completed in 0.014s (start: 1715421729111, end: 1715421729125)
18:02:09.141 [info] Cell 7 completed in 0.011s (start: 1715421729130, end: 1715421729141)
18:02:09.142 [info] Cell 8 completed in 0s (start: undefined, end: undefined)
18:02:09.612 [info] Cell 9 completed in 0.467s (start: 1715421729145, end: 1715421729612)
18:02:09.643 [info] Cell 10 completed in 0.028s (start: 1715421729615, end: 1715421729643)
18:02:09.659 [info] Cell 11 completed in 0.013s (start: 1715421729646, end: 1715421729659)
18:02:09.675 [info] Cell 12 completed in 0.013s (start: 1715421729662, end: 1715421729675)
18:02:09.691 [info] Cell 13 completed in 0.014s (start: 1715421729677, end: 1715421729691)
18:03:26.020 [info] Cell 14 completed in 76.327s (start: 1715421729693, end: 1715421806020)
18:03:26.051 [info] Cell 15 completed in 0.01s (start: 1715421806041, end: 1715421806051)
18:03:26.052 [info] Cell 16 completed in 0s (start: undefined, end: undefined)
18:03:26.067 [info] Cell 17 completed in 0.006s (start: 1715421806061, end: 1715421806067)
18:03:26.082 [info] Cell 18 completed in 0.011s (start: 1715421806071, end: 1715421806082)
18:03:26.764 [info] Cell 19 completed in 0.678s (start: 1715421806086, end: 1715421806764)
18:03:26.780 [info] Cell 20 completed in 0.01s (start: 1715421806770, end: 1715421806780)
18:03:26.796 [info] Cell 21 completed in 0.013s (start: 1715421806783, end: 1715421806796)
18:03:27.243 [info] Cell 22 completed in 0.444s (start: 1715421806799, end: 1715421807243)
18:03:27.258 [info] Cell 23 completed in 0.009s (start: 1715421807248, end: 1715421807257)
18:03:27.272 [info] Cell 24 completed in 0.01s (start: 1715421807262, end: 1715421807272)
18:03:27.288 [info] Cell 25 completed in 0.011s (start: 1715421807277, end: 1715421807288)
18:03:27.305 [info] Cell 26 completed in 0.014s (start: 1715421807291, end: 1715421807305)
18:03:27.319 [info] Cell 27 completed in 0.009s (start: 1715421807310, end: 1715421807319)
18:03:27.335 [info] Cell 28 completed in 0.014s (start: 1715421807321, end: 1715421807335)
18:03:27.351 [info] Cell 29 completed in 0.013s (start: 1715421807338, end: 1715421807351)
18:03:27.367 [info] Cell 30 completed in 0.014s (start: 1715421807353, end: 1715421807367)
18:03:27.367 [info] Cell 31 completed in 0s (start: undefined, end: undefined)
18:03:27.383 [info] Cell 32 completed in 0.011s (start: 1715421807372, end: 1715421807383)
18:03:27.384 [info] Cell 33 completed in 0s (start: undefined, end: undefined)
18:03:27.399 [info] Cell 34 completed in 0.012s (start: 1715421807387, end: 1715421807399)
18:03:27.415 [info] Cell 35 completed in 0.013s (start: 1715421807402, end: 1715421807415)
18:03:27.415 [info] Cell 36 completed in 0s (start: undefined, end: undefined)
18:03:27.431 [info] Cell 37 completed in 0.012s (start: 1715421807419, end: 1715421807431)
18:03:27.447 [info] Cell 38 completed in 0.014s (start: 1715421807433, end: 1715421807447)
18:03:27.462 [info] Cell 39 completed in 0.011s (start: 1715421807451, end: 1715421807462)
18:03:27.478 [info] Cell 40 completed in 0.012s (start: 1715421807466, end: 1715421807478)
18:03:27.494 [info] Cell 41 completed in 0.013s (start: 1715421807481, end: 1715421807494)
18:03:27.509 [info] Cell 42 completed in 0.013s (start: 1715421807496, end: 1715421807509)
18:03:27.525 [info] Cell 43 completed in 0.014s (start: 1715421807511, end: 1715421807525)
18:03:27.525 [info] Cell 44 completed in 0s (start: undefined, end: undefined)
18:06:24.964 [info] Cell 45 completed in 177.433s (start: 1715421807531, end: 1715421984964)
18:06:24.996 [info] Cell 46 completed in 0.012s (start: 1715421984984, end: 1715421984996)
18:06:25.011 [info] Cell 47 completed in 0.011s (start: 1715421985000, end: 1715421985011)
18:38:30.490 [info] Cell 48 completed in 1925.471s (start: 1715421985018, end: 1715423910489)
18:38:30.520 [info] Cell 49 completed in 0.011s (start: 1715423910509, end: 1715423910520)
18:38:30.536 [info] Cell 50 completed in 0.012s (start: 1715423910523, end: 1715423910535)
18:38:30.552 [info] Cell 51 completed in 0.012s (start: 1715423910539, end: 1715423910551)
18:38:30.567 [info] Cell 52 completed in 0.012s (start: 1715423910555, end: 1715423910567)
18:38:30.583 [info] Cell 53 completed in 0.013s (start: 1715423910570, end: 1715423910583)
18:38:30.599 [info] Cell 54 completed in 0.011s (start: 1715423910588, end: 1715423910599)
18:38:30.614 [info] Cell 55 completed in 0.012s (start: 1715423910602, end: 1715423910614)
18:38:30.629 [info] Cell 56 completed in 0.012s (start: 1715423910617, end: 1715423910629)
18:38:30.630 [info] Cell 57 completed in 0s (start: undefined, end: undefined)
18:38:30.630 [info] Cell 58 completed in 0s (start: undefined, end: undefined)
18:38:30.631 [info] Cell 59 completed in 0s (start: undefined, end: undefined)
18:38:30.661 [info] Cell 60 completed in 0.025s (start: 1715423910635, end: 1715423910660)
18:38:30.677 [info] Cell 61 completed in 0.014s (start: 1715423910663, end: 1715423910677)
18:38:30.756 [info] Cell 62 completed in 0.077s (start: 1715423910679, end: 1715423910756)
18:38:30.757 [info] Cell 63 completed in 0s (start: undefined, end: undefined)
21:41:41.482 [info] Execution of code ms-toolsai.jupyter-1 completed in 24ms
22:36:07.050 [info] Execution of code ms-toolsai.jupyter-2 completed in 21ms
22:48:39.071 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher (Python Path: d:\my\env\python3.10.10\python.exe, Unknown, Python 3.10.10, 3.10.10) for '\wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\improved-code-interpretation.ipynb' (disableUI=true)
22:48:39.270 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 198ms
22:48:39.275 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m pip list
22:48:39.276 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 189ms
22:48:39.280 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
22:48:39.290 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m ipykernel_launcher --f=c:\Users~\AppData\Roaming\jupyter\runtime\kernel-v2-12704Kkh070NAXz3R.json
> cwd: \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math
23:08:38.442 [info] Handle Execution of Cells 2 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\deepseek_do_math.ipynb
23:08:38.452 [info] Cell 2 completed in 0.002s (start: 1715440118450, end: 1715440118452)
23:08:46.236 [info] Execution of code ms-toolsai.jupyter-3 completed in 38ms
23:08:48.403 [info] Execution of code ms-toolsai.jupyter-4 completed in 36ms
23:08:48.863 [info] Execution of code ms-toolsai.jupyter-5 completed in 25ms
23:08:48.904 [info] Execution of code ms-toolsai.jupyter-6 completed in 38ms
23:09:03.504 [info] Handle Execution of Cells 4 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\deepseek_do_math.ipynb
23:09:05.823 [info] Cell 4 completed in 2.308s (start: 1715440143515, end: 1715440145823)
23:23:52.376 [info] Execution of code ms-toolsai.jupyter-7 completed in 18ms
23:23:54.199 [info] Execution of code ms-toolsai.jupyter-8 completed in 21ms
23:23:54.364 [info] Execution of code ms-toolsai.jupyter-9 completed in 43ms
23:23:55.065 [info] Execution of code ms-toolsai.jupyter-10 completed in 23ms
23:23:59.120 [info] Execution of code ms-toolsai.jupyter-11 completed in 26ms
23:24:04.951 [info] Execution of code ms-toolsai.jupyter-12 completed in 17ms
23:24:09.226 [info] Execution of code ms-toolsai.jupyter-13 completed in 41ms
23:24:31.228 [info] Execution of code ms-toolsai.jupyter-14 completed in 23ms
23:24:32.552 [info] Execution of code ms-toolsai.jupyter-15 completed in 25ms
23:25:13.015 [info] Execution of code ms-toolsai.jupyter-16 completed in 25ms
00:07:31.968 [info] Handle Execution of Cells 2,3,4,5,8,9,10,11,12,13,14,15,16,17,18,21,22,23,24,25,26,27,28,29 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
00:07:31.970 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0d9556678d02f556b8171da6f4234414674566ea60e98b9cfd43bc7620eeeef71.d:\my\env\python3.10.10\python.exe.d:\my\env\python3.10.10\python.exe.-m#ipykernel_launcher (Python Path: d:\my\env\python3.10.10\python.exe, Unknown, Python 3.10.10, 3.10.10) for '\wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb' (disableUI=false)
00:07:32.012 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 31ms
00:07:32.015 [info] Process Execution: d:\my\env\python3.10.10\python.exe -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)"
00:07:32.016 [warn] Failed to get activated env vars for d:\my\env\python3.10.10\python.exe in 37ms
00:07:32.018 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m pip list
00:07:32.027 [info] Process Execution: d:\my\env\python3.10.10\python.exe -m ipykernel_launcher --f=c:\Users~\AppData\Roaming\jupyter\runtime\kernel-v2-12704HM84zg9D0Qdu.json
> cwd: \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math
00:07:33.057 [info] Cell 2 completed in 0.007s (start: 1715443653050, end: 1715443653057)
00:07:34.685 [info] Cell 3 completed in 1.626s (start: 1715443653059, end: 1715443654685)
00:07:35.000 [info] Cell 4 completed in 0.311s (start: 1715443654689, end: 1715443655000)
00:07:35.014 [info] Cell 5 completed in 0.011s (start: 1715443655003, end: 1715443655014)
00:07:35.030 [info] Cell 8 completed in 0.013s (start: 1715443655017, end: 1715443655030)
00:07:35.868 [info] Cell 9 completed in 0.836s (start: 1715443655032, end: 1715443655868)
00:07:35.884 [info] Cell 10 completed in 0.012s (start: 1715443655872, end: 1715443655884)
00:07:35.899 [info] Cell 11 completed in 0.013s (start: 1715443655886, end: 1715443655899)
00:07:36.340 [warn] Cell completed with errors [hd [Error]: Error tokenizing data. C error: Expected 3 fields in line 14, saw 19

at r.execute (c:\Users\~\.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\dist\extension.node.js:311:4943)] {

ename: 'ParserError',
evalue: 'Error tokenizing data. C error: Expected 3 fields in line 14, saw 19\n',
traceback: [
'\x1B[1;31m---------------------------------------------------------------------------\x1B[0m',
'\x1B[1;31mParserError\x1B[0m Traceback (most recent call last)',
'Cell \x1B[1;32mIn[9], line 68\x1B[0m\n' +
'\x1B[0;32m 64\x1B[0m \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39mset_sub_answer(submitter[\x1B[38;5;124m"\x1B[39m\x1B[38;5;124mid\x1B[39m\x1B[38;5;124m"\x1B[39m],submitter[\x1B[38;5;124m"\x1B[39m\x1B[38;5;124manswer\x1B[39m\x1B[38;5;124m"\x1B[39m])\n' +
'\x1B[0;32m 67\x1B[0m PRIVATE \x1B[38;5;241m=\x1B[39m \x1B[38;5;28;01mFalse\x1B[39;00m\n' +
"\x1B[1;32m---> 68\x1B[0m env \x1B[38;5;241m=\x1B[39m \x1B[43mEnvironment\x1B[49m\x1B[43m(\x1B[49m\x1B[43mpath_pre\x1B[49m\x1B[38;5;241;43m+\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43m/kaggle/input/ai-mathematical-olympiad-prize/train.csv\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m)\x1B[49m\n" +

...

3:01.727 [info] Cell 29 completed in 0s (start: undefined, end: undefined)
02:03:01.727 [info] Cell 30 completed in 0s (start: undefined, end: undefined)
02:03:01.727 [info] Cell 31 completed in 0s (start: undefined, end: undefined)
02:03:01.727 [info] Cell 32 completed in 0s (start: undefined, end: undefined)
02:04:06.605 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:04:06.628 [info] Cell 22 completed in 0.011s (start: 1715450646617, end: 1715450646628)
02:04:49.966 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:04:49.992 [info] Cell 22 completed in 0.02s (start: 1715450689971, end: 1715450689991)
02:04:52.656 [info] Handle Execution of Cells 23 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:04:52.685 [info] Cell 23 completed in 0.02s (start: 1715450692665, end: 1715450692685)
02:05:45.492 [info] Execution of code ms-toolsai.jupyter-37 completed in 41ms
02:05:47.334 [info] Execution of code ms-toolsai.jupyter-38 completed in 19ms
02:05:50.162 [info] Execution of code ms-toolsai.jupyter-39 completed in 22ms
02:05:50.189 [info] Execution of code ms-toolsai.jupyter-40 completed in 21ms
02:06:07.245 [info] Execution of code ms-toolsai.jupyter-41 completed in 19ms
02:06:14.929 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:06:14.949 [info] Cell 22 completed in 0.011s (start: 1715450774938, end: 1715450774949)
02:07:33.053 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:07:33.082 [info] Cell 22 completed in 0.021s (start: 1715450853061, end: 1715450853082)
02:07:39.210 [info] Handle Execution of Cells 23,24,25,26,27,28,29,30,31,32 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:07:39.278 [warn] Cell completed with errors [hd [Error]: 'list' object has no attribute 'get'
at r.execute (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\dist\extension.node.js:311:4943)] {
ename: 'AttributeError',
evalue: "'list' object has no attribute 'get'",
traceback: [
'\x1B[1;31m---------------------------------------------------------------------------\x1B[0m',
'\x1B[1;31mAttributeError\x1B[0m Traceback (most recent call last)',
'Cell \x1B[1;32mIn[54], line 55\x1B[0m\n' +
'\x1B[0;32m 53\x1B[0m outputs \x1B[38;5;241m=\x1B[39m total_outputs\x1B[38;5;241m.\x1B[39mget(i,[])\n' +
'\x1B[0;32m 54\x1B[0m text_answers, code_answers \x1B[38;5;241m=\x1B[39m question_type_counts\x1B[38;5;241m.\x1B[39mget(i,starting_counts)\n' +
'\x1B[1;32m---> 55\x1B[0m results \x1B[38;5;241m=\x1B[39m \x1B[43mtotal_results\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mget\x1B[49m(i,[])\n' +
'\x1B[0;32m 56\x1B[0m answers \x1B[38;5;241m=\x1B[39m total_answers\x1B[38;5;241m.\x1B[39mget(i,[])\n' +
'\x1B[0;32m 58\x1B[0m \x1B[38;5;28;01mfor\x1B[39;00m _ \x1B[38;5;129;01min\x1B[39;00m \x1B[38;5;28mrange\x1B[39m(\x1B[38;5;241m5\x1B[39m):\n',
"\x1B[1;31mAttributeError\x1B[0m: 'list' object has no attribute 'get'"
]
}
02:07:39.278 [info] Cell 23 completed in 0.047s (start: 1715450859231, end: 1715450859278)
02:07:39.279 [warn] Cancel all remaining cells due to cancellation or failure in execution
02:07:39.279 [info] Cell 24 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 25 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 26 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 27 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 28 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 29 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 30 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 31 completed in 0s (start: undefined, end: undefined)
02:07:39.279 [info] Cell 32 completed in 0s (start: undefined, end: undefined)
02:09:35.956 [info] Execution of code ms-toolsai.jupyter-42 completed in 23ms
02:09:52.171 [info] Execution of code ms-toolsai.jupyter-43 completed in 41ms
02:09:52.373 [info] Execution of code ms-toolsai.jupyter-44 completed in 22ms
02:09:53.212 [info] Execution of code ms-toolsai.jupyter-45 completed in 46ms
02:09:55.445 [info] Execution of code ms-toolsai.jupyter-46 completed in 18ms
02:10:06.364 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:10:06.384 [info] Cell 22 completed in 0.015s (start: 1715451006369, end: 1715451006384)
02:10:09.037 [info] Handle Execution of Cells 23,24,25,26,27,28,29,30,31,32 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:20:34.781 [info] Cell 23 completed in 625.727s (start: 1715451009054, end: 1715451634781)
02:20:34.828 [info] Cell 24 completed in 0.017s (start: 1715451634811, end: 1715451634828)
02:20:34.845 [info] Cell 25 completed in 0.013s (start: 1715451634832, end: 1715451634845)
02:20:34.860 [info] Cell 26 completed in 0.01s (start: 1715451634850, end: 1715451634860)
02:20:35.132 [warn] Cell completed with errors [hd [Error]: 17
at r.execute (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\dist\extension.node.js:311:4943)] {
ename: 'KeyError',
evalue: '17',
traceback: [
'\x1B[1;31m---------------------------------------------------------------------------\x1B[0m',
'\x1B[1;31mValueError\x1B[0m Traceback (most recent call last)',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\indexes\range.py:391\x1B[0m, in \x1B[0;36mRangeIndex.get_loc\x1B[1;34m(self, key, method, tolerance)\x1B[0m\n' +
'\x1B[0;32m 390\x1B[0m \x1B[38;5;28;01mtry\x1B[39;00m:\n' +
'\x1B[1;32m--> 391\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28;43mself\x1B[39;49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43m_range\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mindex\x1B[49m\x1B[43m(\x1B[49m\x1B[43mnew_key\x1B[49m\x1B[43m)\x1B[49m\n' +
'\x1B[0;32m 392\x1B[0m \x1B[38;5;28;01mexcept\x1B[39;00m \x1B[38;5;167;01mValueError\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m err:\n',
'\x1B[1;31mValueError\x1B[0m: 17 is not in range',
'\nThe above exception was the direct cause of the following exception:\n',
'\x1B[1;31mKeyError\x1B[0m Traceback (most recent call last)',
'Cell \x1B[1;32mIn[60], line 16\x1B[0m\n' +
'\x1B[0;32m 14\x1B[0m true_answer \x1B[38;5;241m=\x1B[39m \x1B[38;5;124m"\x1B[39m\x1B[38;5;124m"\x1B[39m\n' +
'\x1B[0;32m 15\x1B[0m \x1B[38;5;66;03m# if PRIVATE_STATUS == "train":\x1B[39;00m\n' +
"\x1B[1;32m---> 16\x1B[0m true_answer \x1B[38;5;241m=\x1B[39m \x1B[43mdf\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[38;5;124;43manswer\x1B[39;49m\x1B[38;5;124;43m'\x1B[39;49m\x1B[43m]\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mloc\x1B[49m\x1B[43m[\x1B[49m\x1B[43mi\x1B[49m\x1B[43m]\x1B[49m\n" +
'\x1B[0;32m 17\x1B[0m \x1B[38;5;28;01mif\x1B[39;00m true_answer\x1B[38;5;241m==\x1B[39mfinal_answers[i]:\n' +
'\x1B[0;32m 18\x1B[0m true_count\x1B[38;5;241m+\x1B[39m\x1B[38;5;241m=\x1B[39m\x1B[38;5;241m1\x1B[39m\n',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\indexing.py:1073\x1B[0m, in \x1B[0;36m_LocationIndexer.getitem\x1B[1;34m(self, key)\x1B[0m\n' +
'\x1B[0;32m 1070\x1B[0m axis \x1B[38;5;241m=\x1B[39m \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39maxis \x1B[38;5;129;01mor\x1B[39;00m \x1B[38;5;241m0\x1B[39m\n' +
'\x1B[0;32m 1072\x1B[0m maybe_callable \x1B[38;5;241m=\x1B[39m com\x1B[38;5;241m.\x1B[39mapply_if_callable(key, \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39mobj)\n' +
'\x1B[1;32m-> 1073\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28;43mself\x1B[39;49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43m_getitem_axis\x1B[49m\x1B[43m(\x1B[49m\x1B[43mmaybe_callable\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43maxis\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43maxis\x1B[49m\x1B[43m)\x1B[49m\n',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\indexing.py:1312\x1B[0m, in \x1B[0;36m_LocIndexer._getitem_axis\x1B[1;34m(self, key, axis)\x1B[0m\n' +
'\x1B[0;32m 1310\x1B[0m \x1B[38;5;66;03m# fall thru to straight lookup\x1B[39;00m\n' +
'\x1B[0;32m 1311\x1B[0m \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39m_validate_key(key, axis)\n' +
'\x1B[1;32m-> 1312\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28;43mself\x1B[39;49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43m_get_label\x1B[49m\x1B[43m(\x1B[49m\x1B[43mkey\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43maxis\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43maxis\x1B[49m\x1B[43m)\x1B[49m\n',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\indexing.py:1260\x1B[0m, in \x1B[0;36m_LocIndexer.get_label\x1B[1;34m(self, label, axis)\x1B[0m\n' +
'\x1B[0;32m 1258\x1B[0m \x1B[38;5;28;01mdef\x1B[39;00m \x1B[38;5;21m_get_label\x1B[39m(\x1B[38;5;28mself\x1B[39m, label, axis: \x1B[38;5;28mint\x1B[39m):\n' +
'\x1B[0;32m 1259\x1B[0m \x1B[38;5;66;03m# GH#5567 this will fail if the label is not present in the axis.\x1B[39;00m\n' +
'\x1B[1;32m-> 1260\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28;43mself\x1B[39;49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mobj\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mxs\x1B[49m\x1B[43m(\x1B[49m\x1B[43mlabel\x1B[49m\x1B[43m,\x1B[49m\x1B[43m \x1B[49m\x1B[43maxis\x1B[49m\x1B[38;5;241;43m=\x1B[39;49m\x1B[43maxis\x1B[49m\x1B[43m)\x1B[49m\n',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\generic.py:4056\x1B[0m, in \x1B[0;36mNDFrame.xs\x1B[1;34m(self, key, axis, level, drop_level)\x1B[0m\n' +
'\x1B[0;32m 4054\x1B[0m new_index \x1B[38;5;241m=\x1B[39m index[loc]\n' +
'\x1B[0;32m 4055\x1B[0m \x1B[38;5;28;01melse\x1B[39;00m:\n' +
'\x1B[1;32m-> 4056\x1B[0m loc \x1B[38;5;241m=\x1B[39m \x1B[43mindex\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mget_loc\x1B[49m\x1B[43m(\x1B[49m\x1B[43mkey\x1B[49m\x1B[43m)\x1B[49m\n' +
'\x1B[0;32m 4058\x1B[0m \x1B[38;5;28;01mif\x1B[39;00m \x1B[38;5;28misinstance\x1B[39m(loc, np\x1B[38;5;241m.\x1B[39mndarray):\n' +
'\x1B[0;32m 4059\x1B[0m \x1B[38;5;28;01mif\x1B[39;00m loc\x1B[38;5;241m.\x1B[39mdtype \x1B[38;5;241m==\x1B[39m np\x1B[38;5;241m.\x1B[39mbool
:\n',
'File \x1B[1;32md:\my\env\python3.10.10\lib\site-packages\pandas\core\indexes\range.py:393\x1B[0m, in \x1B[0;36mRangeIndex.get_loc\x1B[1;34m(self, key, method, tolerance)\x1B[0m\n' +
'\x1B[0;32m 391\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39m_range\x1B[38;5;241m.\x1B[39mindex(new_key)\n' +
'\x1B[0;32m 392\x1B[0m \x1B[38;5;28;01mexcept\x1B[39;00m \x1B[38;5;167;01mValueError\x1B[39;00m \x1B[38;5;28;01mas\x1B[39;00m err:\n' +
'\x1B[1;32m--> 393\x1B[0m \x1B[38;5;28;01mraise\x1B[39;00m \x1B[38;5;167;01mKeyError\x1B[39;00m(key) \x1B[38;5;28;01mfrom\x1B[39;00m \x1B[38;5;21;01merr\x1B[39;00m\n' +
'\x1B[0;32m 394\x1B[0m \x1B[38;5;28mself\x1B[39m\x1B[38;5;241m.\x1B[39m_check_indexing_error(key)\n' +
'\x1B[0;32m 395\x1B[0m \x1B[38;5;28;01mraise\x1B[39;00m \x1B[38;5;167;01mKeyError\x1B[39;00m(key)\n',
'\x1B[1;31mKeyError\x1B[0m: 17'
]
}
02:20:35.132 [info] Cell 27 completed in 0.247s (start: 1715451634885, end: 1715451635132)
02:20:35.133 [warn] Cancel all remaining cells due to cancellation or failure in execution
02:20:35.133 [info] Cell 28 completed in 0s (start: undefined, end: undefined)
02:20:35.133 [info] Cell 29 completed in 0s (start: undefined, end: undefined)
02:20:35.133 [info] Cell 30 completed in 0s (start: undefined, end: undefined)
02:20:35.133 [info] Cell 31 completed in 0s (start: undefined, end: undefined)
02:20:35.134 [info] Cell 32 completed in 0s (start: undefined, end: undefined)
02:27:45.648 [info] Handle Execution of Cells 22 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:27:45.671 [info] Cell 22 completed in 0.015s (start: 1715452065656, end: 1715452065671)
02:27:48.338 [info] Handle Execution of Cells 23,24,25,26,27,28,29,30,31,32 for \wsl.localhost\Ubuntu-22.04\home\xzpwsl2\my\work\kaggle_code\deepseek-math\updated-code-interpretation-ef73d6.ipynb
02:40:36.154 [info] Cell 23 completed in 767.804s (start: 1715452068349, end: 1715452836153)
02:40:36.201 [info] Cell 24 completed in 0.013s (start: 1715452836187, end: 1715452836200)
02:40:36.216 [info] Cell 25 completed in 0.012s (start: 1715452836204, end: 1715452836216)
02:40:36.232 [info] Cell 26 completed in 0.013s (start: 1715452836219, end: 1715452836232)
02:40:36.248 [info] Cell 27 completed in 0.012s (start: 1715452836236, end: 1715452836248)
02:40:36.295 [warn] Cell completed with errors [hd [Error]: 9
at r.execute (c:\Users~.vscode\extensions\ms-toolsai.jupyter-2024.4.0-win32-x64\dist\extension.node.js:311:4943)] {
ename: 'KeyError',
evalue: '9',
traceback: [
'\x1B[1;31m---------------------------------------------------------------------------\x1B[0m',
'\x1B[1;31mKeyError\x1B[0m Traceback (most recent call last)',
'Cell \x1B[1;32mIn[67], line 4\x1B[0m\n' +
'\x1B[0;32m 1\x1B[0m \x1B[38;5;28;01mif\x1B[39;00m \x1B[38;5;129;01mnot\x1B[39;00m PRIVATE:\n' +
"\x1B[0;32m 2\x1B[0m \x1B[38;5;66;03m# df = pd.read_csv(path_pre+'/kaggle/input/ai-mathematical-olympiad-prize/train.csv')\x1B[39;00m\n" +
"\x1B[0;32m 3\x1B[0m \x1B[38;5;66;03m# df['model_answer'] = [best_stats[ii][0] for ii in range(len(df))]\x1B[39;00m\n" +
"\x1B[1;32m----> 4\x1B[0m df[\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mmodel_answer\x1B[39m\x1B[38;5;124m'\x1B[39m] \x1B[38;5;241m=\x1B[39m [env\x1B[38;5;241m.\x1B[39mget_sub_answer(ii) \x1B[38;5;28;01mfor\x1B[39;00m ii \x1B[38;5;129;01min\x1B[39;00m \x1B[38;5;28mrange\x1B[39m(\x1B[38;5;28mlen\x1B[39m(df))]\n" +
"\x1B[0;32m 6\x1B[0m \x1B[38;5;66;03m# df['answer'].loc\x1B[39;00m\n" +
'\x1B[0;32m 7\x1B[0m \x1B[38;5;66;03m# [best_stats[ii][0] for ii in range(len(df))]\x1B[39;00m\n' +
"\x1B[0;32m 8\x1B[0m df[\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mmatch\x1B[39m\x1B[38;5;124m'\x1B[39m] \x1B[38;5;241m=\x1B[39m df\x1B[38;5;241m.\x1B[39manswer \x1B[38;5;241m==\x1B[39m df\x1B[38;5;241m.\x1B[39mmodel_answer\n",
'Cell \x1B[1;32mIn[67], line 4\x1B[0m, in \x1B[0;36m\x1B[1;34m(.0)\x1B[0m\n' +
'\x1B[0;32m 1\x1B[0m \x1B[38;5;28;01mif\x1B[39;00m \x1B[38;5;129;01mnot\x1B[39;00m PRIVATE:\n' +
"\x1B[0;32m 2\x1B[0m \x1B[38;5;66;03m# df = pd.read_csv(path_pre+'/kaggle/input/ai-mathematical-olympiad-prize/train.csv')\x1B[39;00m\n" +
"\x1B[0;32m 3\x1B[0m \x1B[38;5;66;03m# df['model_answer'] = [best_stats[ii][0] for ii in range(len(df))]\x1B[39;00m\n" +
"\x1B[1;32m----> 4\x1B[0m df[\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mmodel_answer\x1B[39m\x1B[38;5;124m'\x1B[39m] \x1B[38;5;241m=\x1B[39m [\x1B[43menv\x1B[49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43mget_sub_answer\x1B[49m\x1B[43m(\x1B[49m\x1B[43mii\x1B[49m\x1B[43m)\x1B[49m \x1B[38;5;28;01mfor\x1B[39;00m ii \x1B[38;5;129;01min\x1B[39;00m \x1B[38;5;28mrange\x1B[39m(\x1B[38;5;28mlen\x1B[39m(df))]\n" +
"\x1B[0;32m 6\x1B[0m \x1B[38;5;66;03m# df['answer'].loc\x1B[39;00m\n" +
'\x1B[0;32m 7\x1B[0m \x1B[38;5;66;03m# [best_stats[ii][0] for ii in range(len(df))]\x1B[39;00m\n' +
"\x1B[0;32m 8\x1B[0m df[\x1B[38;5;124m'\x1B[39m\x1B[38;5;124mmatch\x1B[39m\x1B[38;5;124m'\x1B[39m] \x1B[38;5;241m=\x1B[39m df\x1B[38;5;241m.\x1B[39manswer \x1B[38;5;241m==\x1B[39m df\x1B[38;5;241m.\x1B[39mmodel_answer\n",
'Cell \x1B[1;32mIn[9], line 43\x1B[0m, in \x1B[0;36mEnvironment.get_sub_answer\x1B[1;34m(self, id)\x1B[0m\n' +
'\x1B[0;32m 42\x1B[0m \x1B[38;5;28;01mdef\x1B[39;00m \x1B[38;5;21mget_sub_answer\x1B[39m(\x1B[38;5;28mself\x1B[39m,\x1B[38;5;28mid\x1B[39m):\n' +
'\x1B[1;32m---> 43\x1B[0m \x1B[38;5;28;01mreturn\x1B[39;00m \x1B[38;5;28;43mself\x1B[39;49m\x1B[38;5;241;43m.\x1B[39;49m\x1B[43msub_answers\x1B[49m\x1B[43m[\x1B[49m\x1B[38;5;28;43mid\x1B[39;49m\x1B[43m]\x1B[49m\n',
'\x1B[1;31mKeyError\x1B[0m: 9'
]
}
02:40:36.295 [info] Cell 28 completed in 0.039s (start: 1715452836256, end: 1715452836295)
02:40:36.296 [warn] Cancel all remaining cells due to cancellation or failure in execution
02:40:36.296 [info] Cell 29 completed in 0s (start: undefined, end: undefined)
02:40:36.296 [info] Cell 30 completed in 0s (start: undefined, end: undefined)
02:40:36.296 [info] Cell 31 completed in 0s (start: undefined, end: undefined)
02:40:36.296 [info] Cell 32 completed in 0s (start: undefined, end: undefined)
02:42:01.538 [info] Execution of code ms-toolsai.jupyter-47 completed in 24ms
02:42:05.177 [info] Execution of code ms-toolsai.jupyter-48 completed in 26ms
02:42:07.438 [info] Execution of code ms-toolsai.jupyter-49 completed in 41ms
02:42:09.080 [info] Execution of code ms-toolsai.jupyter-50 completed in 39ms
02:42:09.120 [info] Execution of code ms-toolsai.jupyter-51 completed in 36ms
02:42:09.842 [info] Execution of code ms-toolsai.jupyter-52 completed in 33ms
02:42:10.156 [info] Execution of code ms-toolsai.jupyter-53 completed in 23ms
02:42:10.534 [info] Execution of code ms-toolsai.jupyter-54 completed in 21ms
02:42:15.215 [info] Execution of code ms-toolsai.jupyter-55 completed in 42ms

XXX
@rchiodo
Copy link
Contributor

rchiodo commented May 13, 2024

Thanks for the issue but your problem looks like an error in execution of notebook cells. Transferring to the jupyter extension.

@rchiodo rchiodo transferred this issue from microsoft/pylance-release May 13, 2024
@xiezhipeng-git
Copy link
Author

Why was it transferred? It's because I don't know why it was transferred. So I don't know if the problem is specifically on the vscode side or on the balance side?

@rchiodo
Copy link
Contributor

rchiodo commented May 17, 2024

This was transfered from Pylance because the logs looked like a problem with jupyter cell execution. Jupyter cell execution is handled by the vscode-jupyter extension. Pylance is for providing completions and other intellisense, but doesn't ever execute any python code.

@xiezhipeng-git
Copy link
Author

Additionally. Edit the code while the program is running. There is a high probability that Plance will crash

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants