Not able to connect with venv python kernal. #13722
Unanswered
SleepyOwL00
asked this question in
Questions and Answers
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When I am creating the venv in vscode and then trying to run the program using that python venv, I am getting the following error.
18:56:23.524 [info] Handle Execution of Cells 0 for ~\Desktop\FP DATA ANALYSIS\test.ipynb 18:56:23.526 [info] Starting Kernel startUsingPythonInterpreter, .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher (Python Path: ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe, Venv, .venv, 3.8.5) for '~\Desktop\FP DATA ANALYSIS\test.ipynb' (disableUI=false) 18:56:23.544 [info] Process Execution: ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)" 18:56:23.747 [info] Process Execution: ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"0df5975b-a741-4088-80fa-1d6a50bc2b9c" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\rahul\AppData\Roaming\jupyter\runtime\kernel-v2-32920p1XPfdDWLviW.json > cwd: ~\Desktop\FP DATA ANALYSIS 18:56:24.341 [info] ipykernel version & path 6.23.2, ~\Desktop\FP DATA ANALYSIS\.venv\lib\site-packages\ipykernel\__init__.py for ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe 18:56:26.199 [error] Disposing kernel process due to an error Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.199 [error] 18:56:26.199 [info] Dispose Kernel process 21216. 18:56:26.201 [error] Kernel Launcher. launch, Class name = Hg, completed in 2671ms, has a falsy return value, Arg 1: "~\\Desktop\\FP DATA ANALYSIS\\.venv\\Scripts\\python.exe.c:\\Users\\rahul\\Desktop\\FP DATA ANALYSIS\\.venv\\Scripts\\python.exe.-m#ipykernel_launcher", Arg 2: 60000, Arg 3: "/c:/Users/rahul/Desktop/FP DATA ANALYSIS/test.ipynb", Arg 4: "~\\Desktop\\FP DATA ANALYSIS", Arg 5: "" Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.202 [error] Failed to connect raw kernel session: Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. 18:56:26.203 [warn] Error occurred while trying to start the kernel, options.disableUI=false Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.203 [warn] Kernel Error, context = start Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.220 [info] Process Execution: ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 18:56:26.884 [info] Dispose Kernel '~\Desktop\FP DATA ANALYSIS\test.ipynb' associated with '~\Desktop\FP DATA ANALYSIS\test.ipynb' 18:56:26.885 [error] Error in execution Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.886 [error] Error in execution (get message for cell) Error: The kernel died. Error: ... View Jupyter [log](command:jupyter.viewOutput) for further details. > Kernel Id = .jvsc74a57bd0ee355376fd542de39b8d0a0b9034f797d2f06b02fcdc99c8ca3a11dbf13ac80d.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.c:\Users\rahul\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe.-m#ipykernel_launcher > Interpreter Id = c:\USERS\RAHUL\DESKTOP\FP DATA ANALYSIS\.VENV\SCRIPTS\PYTHON.EXE > at ChildProcess.<anonymous> (c:\Users\rahul\.vscode\extensions\ms-toolsai.jupyter-2023.5.1001582324-win32-x64\out\extension.node.js:24:92741) > stdErr = 18:56:26.894 [info] Process Execution: ~\Desktop\FP DATA ANALYSIS\.venv\Scripts\python.exe -c "import ipykernel;print('6af208d0-cb9c-427f-b937-ff563e17efdf')" 18:56:27.550 [info] End cell 0 execution @ undefined, started @ undefined, elapsed time = 0s
Dont know what is the issue.
I am trying this on Windows.
Beta Was this translation helpful? Give feedback.
All reactions