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

IPyKernel not installing #5728

Closed
rchiodo opened this issue May 3, 2021 · 13 comments
Closed

IPyKernel not installing #5728

rchiodo opened this issue May 3, 2021 · 13 comments
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@rchiodo
Copy link
Contributor

rchiodo commented May 3, 2021

i have a problem that might be similar .
i have already been working on jupyter notebooks on vscode for a long time and then suddenly a notification pops up that ipykernel is not installed even when it meets the requirements when i try to install it. i tried to force reinstall it, also reinstall all the plugins in vsc and still nothing got better what should I do?
image

Originally posted by @roboroaster in #693 (comment)

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

@roboroaster, can you open the 'Output' window, switch to the 'Jupyter' tab and copy the contents of that panel to this bug?

Thanks.

@rchiodo rchiodo added bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster labels May 3, 2021
@roboroaster
Copy link

User belongs to experiment group 'pythonJediLSPcf'
User belongs to experiment group 'jupyterTestcf'
User belongs to experiment group 'pythonDiscoveryModulecf'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 2021-05-03 22:22:49: ZMQ install verified.
Info 2021-05-03 22:22:49: id is d5fd4c13-dbc4-4e7b-82b9-44012de1663d
Info 2021-05-03 22:22:49: Attempting to start a server because of preload conditions ...
Info 2021-05-03 22:22:51: Found existing keyfile at c:\Users\rachi\AppData\Roaming\Code\User\globalStorage\ms-toolsai.jupyter\nbsecret
Info 2021-05-03 22:22:51: Loading web panel for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:22:51: Loading webview. View is notset
Info 2021-05-03 22:22:51: Attempting to start a server because of preload conditions ...
Info 2021-05-03 22:22:51: Loading web view...
Info 2021-05-03 22:22:51: Webview panel created.
Info 2021-05-03 22:22:53: Web view react rendered
Info 2021-05-03 22:22:53: Request for onigasm file at c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\node_modules\onigasm\lib\onigasm.wasm
Info 2021-05-03 22:22:53: Request for tmlanguage file.
Info 2021-05-03 22:22:53: Searching for token colors ...
Info 2021-05-03 22:22:53: Attempting search for colors ...
Info 2021-05-03 22:22:53: Searching for token colors ...
Info 2021-05-03 22:22:53: Attempting search for colors ...
Info 2021-05-03 22:22:53: Searching for token colors ...
Info 2021-05-03 22:22:53: Attempting search for colors ...
Info 2021-05-03 22:22:53: Searching for token colors ...
Info 2021-05-03 22:22:53: Attempting search for colors ...
Info 2021-05-03 22:22:54: Searching for token colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Searching for token colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Searching for token colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Searching for token colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Attempting search for colors ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Loading base colors from c:\Users\rachi.vscode\extensions\lucabockmann.midnight-color-1.4.0\themes\Midnight Color-color-theme.json ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:22:54: Using colors to generate CSS ...
Info 2021-05-03 22:23:12: Creating raw notebook for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:12: Getting preferred kernel for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:14: Search all interpreters C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
Info 2021-05-03 22:23:14: Executing cell NotebookImport#0
Info 2021-05-03 22:23:14: Waiting for jupyter server and web panel ...
Info 2021-05-03 22:23:15: Loading kernelspec from C:\Users\rachi\AppData\Local\Programs\Python\Python39\share\jupyter\kernels\python3\kernel.json for C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
Info 2021-05-03 22:23:15: findPreferredKernel score for Python 3.9.2 64-bit is 19
Info 2021-05-03 22:23:15: Find kernel spec, Class name = D, completed in 2839ms, has a truthy return value, Arg 1: <Uri:c:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab\lab.ipynb>, Arg 2: {"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.2"},"orig_nbformat":2,"kernelspec":{"name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","display_name":"Python 3.9.2 64-bit"},"metadata":{"interpreter":{"hash":"f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7"}}}, Arg 3: undefined, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\share\jupyter\kernels\python3\kernel.json","interpreterPath":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.2 64-bit"},"interpreter":{"architecture":3,"path":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.9.2","major":3,"minor":9,"patch":2,"prerelease":[],"build":[],"version":"3.9.2"},"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","sysPrefix":"C:\Users\rachi\AppData\Local\Programs\Python\Python39","fileHash":"8b32bf73bdb7e43a6d539151f9fa4c4894e33f7cd529e49b5137475eb102e4a5cc30e95e14802f3a2dbe0c51a8d41c68caac70e93fac842769ab5af2528119cd","companyDisplayName":"Python Software Foundation","envType":"Unknown","cachedEntry":true,"displayName":"Python 3.9.2 64-bit"},"id":".python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7.python.C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe.Python 3.9.2 64-bit"}
Info 2021-05-03 22:23:15: Computing working directory file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:15: Connecting to raw session for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\share\jupyter\kernels\python3\kernel.json","interpreterPath":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.2 64-bit"},"interpreter":{"architecture":3,"path":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.9.2","major":3,"minor":9,"patch":2,"prerelease":[],"build":[],"version":"3.9.2"},"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","sysPrefix":"C:\Users\rachi\AppData\Local\Programs\Python\Python39","fileHash":"8b32bf73bdb7e43a6d539151f9fa4c4894e33f7cd529e49b5137475eb102e4a5cc30e95e14802f3a2dbe0c51a8d41c68caac70e93fac842769ab5af2528119cd","companyDisplayName":"Python Software Foundation","envType":"Unknown","cachedEntry":true,"displayName":"Python 3.9.2 64-bit"},"id":".python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7.python.C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe.Python 3.9.2 64-bit"}
Info 2021-05-03 22:23:15: Starting raw kernel Python 3.9.2 64-bit
Info 2021-05-03 22:23:15: installMissingDependencies C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
Info 2021-05-03 22:23:15: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"

~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import jupyter"
Info 2021-05-03 22:23:15: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:15: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:15: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import notebook"
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py pip list
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py pip list
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py pip list
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py pip list
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-05-03 22:23:15: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-05-03 22:23:15: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-05-03 22:23:16: Executing cell NotebookImport#0
Error 2021-05-03 22:23:17: Install Missing Dependencies, Class name = v, completed in 1669ms, has a falsy return value, Return Value: undefined a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1
}
Error 2021-05-03 22:23:17: Raw session failed to start because dependencies not installed
Info 2021-05-03 22:23:17: Shutdown session -- complete
Error 2021-05-03 22:23:17: DataScience Error a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Error 2021-05-03 22:23:17: Exception attempting to start notebook: a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Info 2021-05-03 22:23:17: Exception executing cell NotebookImport#0: a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Info 2021-05-03 22:23:17: Finished executing cell NotebookImport#0
Info 2021-05-03 22:23:17: Exception executing cell NotebookImport#0: a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Info 2021-05-03 22:23:17: Finished executing cell NotebookImport#0
Error 2021-05-03 22:23:17: DataScience Error a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Error 2021-05-03 22:23:17: DataScience Error a [Error]: IPyKernel not installed into interpreter Python 3.9.2 64-bit:C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
at v.installMissingDependencies (c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\out\client\extension.js:49:561242)
at processTicksAndRejections (internal/process/task_queues.js:97:5) {
category: 'noipykernel',
reason: 1,
vslsStack: [ CallSite {}, CallSite {} ]
}
Info 2021-05-03 22:23:52: Executing cell NotebookImport#0
Info 2021-05-03 22:23:52: Waiting for jupyter server and web panel ...
Info 2021-05-03 22:23:52: Creating raw notebook for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:52: Getting preferred kernel for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:52: findPreferredKernel score for Python 3.9.2 64-bit is 19
Info 2021-05-03 22:23:52: Find kernel spec, Class name = D, completed in 2ms, has a truthy return value, Arg 1: <Uri:c:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab\lab.ipynb>, Arg 2: {"language_info":{"codemirror_mode":{"name":"ipython","version":3},"file_extension":".py","mimetype":"text/x-python","name":"python","nbconvert_exporter":"python","pygments_lexer":"ipython3","version":"3.9.2"},"orig_nbformat":2,"kernelspec":{"name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","display_name":"Python 3.9.2 64-bit"},"metadata":{"interpreter":{"hash":"f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7"}}}, Arg 3: undefined, Return Value: {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\share\jupyter\kernels\python3\kernel.json","interpreterPath":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.2 64-bit"},"interpreter":{"architecture":3,"path":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.9.2","major":3,"minor":9,"patch":2,"prerelease":[],"build":[],"version":"3.9.2"},"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","sysPrefix":"C:\Users\rachi\AppData\Local\Programs\Python\Python39","fileHash":"8b32bf73bdb7e43a6d539151f9fa4c4894e33f7cd529e49b5137475eb102e4a5cc30e95e14802f3a2dbe0c51a8d41c68caac70e93fac842769ab5af2528119cd","companyDisplayName":"Python Software Foundation","envType":"Unknown","cachedEntry":true,"displayName":"Python 3.9.2 64-bit"},"id":".python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7.python.C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe.Python 3.9.2 64-bit"}
Info 2021-05-03 22:23:52: Computing working directory file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb
Info 2021-05-03 22:23:52: Connecting to raw session for file:///c%3A/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction%20to%20Python%20Programming%20Lab/lab.ipynb with connection {"kind":"startUsingPythonInterpreter","kernelSpec":{"specFile":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\share\jupyter\kernels\python3\kernel.json","interpreterPath":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","name":"python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7","argv":["python","-m","ipykernel_launcher","-f","{connection_file}"],"language":"python","path":"python","display_name":"Python 3.9.2 64-bit"},"interpreter":{"architecture":3,"path":"C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe","version":{"options":{"loose":false,"includePrerelease":false},"loose":false,"raw":"3.9.2","major":3,"minor":9,"patch":2,"prerelease":[],"build":[],"version":"3.9.2"},"sysVersion":"3.9.2 (tags/v3.9.2:1a79785, Feb 19 2021, 13:44:55) [MSC v.1928 64 bit (AMD64)]","sysPrefix":"C:\Users\rachi\AppData\Local\Programs\Python\Python39","fileHash":"8b32bf73bdb7e43a6d539151f9fa4c4894e33f7cd529e49b5137475eb102e4a5cc30e95e14802f3a2dbe0c51a8d41c68caac70e93fac842769ab5af2528119cd","companyDisplayName":"Python Software Foundation","envType":"Unknown","cachedEntry":true,"displayName":"Python 3.9.2 64-bit"},"id":".python392jvsc74a57bd0f1e732d8b08c4226728e4e7395266acfef02fb36d979f50cf2ae9b3b9ab2c7f7.python.C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe.Python 3.9.2 64-bit"}
Info 2021-05-03 22:23:52: Starting raw kernel Python 3.9.2 64-bit
Info 2021-05-03 22:23:52: installMissingDependencies C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe
Info 2021-05-03 22:23:52: Cached data exists getEnvironmentVariables,
Info 2021-05-03 22:23:52: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Info 2021-05-03 22:23:52: Process Execution: > ~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
~\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"

@roboroaster
Copy link

is this the one ? @rchiodo

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

Yep. It looks like C:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe does not have ipykernel installed. Is this the python you expect to be running?

@roboroaster
Copy link

@rchiodo yes, this is the python i'm using

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

And when you ran the terminal in your screenshot, it was this same python (and not a virtual environment)?
image

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

There's some difference between what's running in that terminal and what we're trying to do.

We run this command here:

c:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi\.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"

Can you try running that command from a command prompt?

@roboroaster
Copy link

PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab> & C:/Users/rachi/AppData/Local/Programs/Python/Python39/python.exe "c:/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction to Python Programming Lab/bleh.py"
ho
PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab> c:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Traceback (most recent call last):
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\utils\timing.py", line 27, in
import resource
ModuleNotFoundError: No module named 'resource'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py", line 26, in
exec(code, ns, ns)
File "", line 1, in
File "C:\Users\rachi\AppData\Roaming\Python\Python39\site-packages\ipykernel_init_.py", line 2, in
from .connect import *
File "C:\Users\rachi\AppData\Roaming\Python\Python39\site-packages\ipykernel\connect.py", line 11, in
from IPython.core.profiledir import ProfileDir
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython_init_.py", line 49, in
from .terminal.embed import embed
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\terminal\embed.py", line 19, in
from IPython.terminal.ipapp import load_default_config
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\terminal\ipapp.py", line 30, in
from IPython.core.magics import ScriptMagics
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\magics_init_.py", line 21, in
from .execution import ExecutionMagics
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\magics\execution.py", line 46, in
from IPython.utils.timing import clock, clock2
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\utils\timing.py", line 64, in
clocku = clocks = clock = time.clock
AttributeError: module 'time' has no attribute 'clock'

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

That sounds like this error here:
jupyter/notebook#5651

Try running this:

C:/Users/rachi/AppData/Local/Programs/Python/Python39/python.exe -m pip install --upgrade ipython

@roboroaster
Copy link

PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab> & C:/Users/rachi/AppData/Local/Programs/Python/Python39/python.exe "c:/Users/rachi/Documents/Uni/SEM-2/LAB/BCS01T1005-Introduction to Python Programming Lab/bleh.py"
ho
PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab> c:\Users\rachi\AppData\Local\Programs\Python\Python39\python.exe c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Traceback (most recent call last):
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\utils\timing.py", line 27, in
import resource
ModuleNotFoundError: No module named 'resource'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "c:\Users\rachi.vscode\extensions\ms-toolsai.jupyter-2021.5.745244803\pythonFiles\pyvsc-run-isolated.py", line 26, in
File "", line 1, in
File "C:\Users\rachi\AppData\Roaming\Python\Python39\site-packages\ipykernel_init_.py", line 2, in
from .connect import *
File "C:\Users\rachi\AppData\Roaming\Python\Python39\site-packages\ipykernel\connect.py", line 11, in
from IPython.core.profiledir import ProfileDir
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython_init_.py", line 49, in
from .terminal.embed import embed
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\terminal\embed.py", line 19, in
from IPython.terminal.ipapp import load_default_config
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\terminal\ipapp.py", line 30, in
from IPython.core.magics import ScriptMagics
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\magics_init_.py", line 21, in
from .execution import ExecutionMagics
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\core\magics\execution.py", line 46, in
from IPython.utils.timing import clock, clock2
File "C:\Users\rachi\AppData\Local\Programs\Python\Python39\lib\site-packages\IPython\utils\timing.py", line 64, in
clocku = clocks = clock = time.clock
AttributeError: module 'time' has no attribute 'clock'
PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab> C:/Users/rachi/AppData/Local/Programs/Python/Python39/python.exe -m pip install --upgrade ipython
Requirement already satisfied: ipython in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (5.5.0)
Collecting ipython
Downloading ipython-7.23.0-py3-none-any.whl (785 kB)
|████████████████████████████████| 785 kB 344 kB/s
Collecting matplotlib-inline
Downloading matplotlib_inline-0.1.2-py3-none-any.whl (8.2 kB)
Requirement already satisfied: traitlets>=4.2 in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (from ipython) (4.3.3)
Collecting prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0
Downloading prompt_toolkit-3.0.18-py3-none-any.whl (367 kB)
|████████████████████████████████| 367 kB 88 kB/s
Requirement already satisfied: colorama in c:\users\rachi\appdata\roaming\python\python39\site-packages (from ipython) (0.4.4)
Requirement already satisfied: backcall in c:\users\rachi\appdata\roaming\python\python39\site-packages (from ipython) (0.2.0)
Requirement already satisfied: decorator in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (from ipython) (5.0.7)Requirement already satisfied: pickleshare in c:\users\rachi\appdata\roaming\python\python39\site-packages (from ipython) (0.7.5)
Requirement already satisfied: jedi>=0.16 in c:\users\rachi\appdata\roaming\python\python39\site-packages (from ipython) (0.18.0)
Requirement already satisfied: setuptools>=18.5 in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (from ipython)
(56.0.0)
Requirement already satisfied: pygments in c:\users\rachi\appdata\roaming\python\python39\site-packages (from ipython) (2.7.4)
Requirement already satisfied: parso<0.9.0,>=0.8.0 in c:\users\rachi\appdata\roaming\python\python39\site-packages (from jedi>=0.16->ipython) (0.8.1)
Requirement already satisfied: wcwidth in c:\users\rachi\appdata\roaming\python\python39\site-packages (from prompt-toolkit!=3.0.0,!=3.0.1,<3.1.0,>=2.0.0->ipython) (0.2.5)
Requirement already satisfied: ipython-genutils in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (from traitlets>=4.2->ipython) (0.2.0)
Requirement already satisfied: six in c:\users\rachi\appdata\local\programs\python\python39\lib\site-packages (from traitlets>=4.2->ipython) (1.15.0)
Installing collected packages: prompt-toolkit, matplotlib-inline, ipython
Attempting uninstall: prompt-toolkit
Found existing installation: prompt-toolkit 1.0.18
Uninstalling prompt-toolkit-1.0.18:
Successfully uninstalled prompt-toolkit-1.0.18
Attempting uninstall: ipython
Found existing installation: ipython 5.5.0
Uninstalling ipython-5.5.0:
Successfully uninstalled ipython-5.5.0
Successfully installed ipython-7.23.0 matplotlib-inline-0.1.2 prompt-toolkit-3.0.18
PS C:\Users\rachi\Documents\Uni\SEM-2\LAB\BCS01T1005-Introduction to Python Programming Lab>

@roboroaster
Copy link

Thanks a lot !! it reinstalled it and worked.

@rchiodo
Copy link
Contributor Author

rchiodo commented May 3, 2021

Thanks for replying.

Note to team: We should probably always use --upgrade when installing or maybe even during checking.

@joyceerhl
Copy link
Contributor

Dupe of #4758

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants