Closed Fernando961226 closed 2 years ago
Thanks for the issue,
What versions of these extensions do you have installed?
This may be a dupe of https://github.com/microsoft/pylance-release/issues/2811. At least that would show these symptoms.
Oh wait I see that you have 2022.4.1021342353. You should definitely upgrade. VS code 1.68.1 is using a completely different API for talking with notebooks. The older version of the Jupyter extension may or may not work with it.
Oh okay let me try!
Well, I got another error. It was a timeout! [Error]: Unable to start Kernel 'texture (Python 3.10.4)' due to connection timeout. log.txt
I have attached the log for you to see. What else would you like me to try?
I also got another error (before trying these but with the updated extensions) saying "The connection to the terminal's pty host process is unresponsive, the terminals may stop working."
What's your version of the Python Extension? It's timing out because the Python extension cannot parse your anaconda environment.
Python: v2022.8.0 Pylance: v2022.6.30 Jupyter Notebook Renderers: v1.0.8 Jupyter Keymap: v1.0.0 Jupyter: v2022.5.1001601848
Can you start this python in a VS code terminal?
E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE\\PYTHON.EXE
Yep: This is what I did:
Microsoft Windows [Version 10.0.19044.1766]
(c) Microsoft Corporation. All rights reserved.
E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>python
E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>python
E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>E:/Programs/anaconda3/Scripts/activate
(base) E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>conda activate texture
(texture) E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE\\PYTHON.EXE
Python 3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> help
Type help() for interactive help, or help(object) for help about object.
>>> help()
Welcome to Python 3.10's help utility!
If this is your first time using Python, you should definitely check out
the tutorial on the internet at https://docs.python.org/3.10/tutorial/.
Enter the name of any module, ......
Additional Notes: The commands above took around 10 minutes to execute. Whenever VS code is open my computer is super slow. Again this did not use to be the case.
Can you include the output of the 'Python' tab? It's failing to activate your environment. Not sure why.
Hi, this is all that I see. I am not sure which python tab you are referring to?
Notes: to get to activate base, I needed to first disable pylance, jupyter, jupyter keymap and jupyter Notebook as VS code was simply not able to do anything. Then I re-enable them before running "E:\PROGRAMS\ANACONDA3\ENVS\TEXTURE\PYTHON.EXE"
Sorry but this tab:
It looks like this:
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
LSP Notebooks experiment is disabled -- not in treatment group
> conda info --json
Python interpreter path: E:\Programs\anaconda3\python.exe
> E:\Programs\anaconda3\Scripts\conda.exe info --json
> E:\Programs\anaconda3\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
> E:\Programs\anaconda3\condabin\conda.bat info --json
> E:\Programs\anaconda3\Scripts\conda.exe run -n base --no-capture-output python ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.8.0/pythonFiles/printEnvVariables.py
> E:\Programs\anaconda3\envs\Texture-2\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
> E:\Programs\anaconda3\envs\texture\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
Starting Pylance language server.
Oh maybe that needs full logging. Can you set this setting to debug and try again?
Okay, I did the change. However, I think it looks exactly the same.
E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>"E:\PROGRAMS\ANACONDA3\ENVS\TEXTURE\PYTHON.EXE"
Python 3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
LSP Notebooks experiment is disabled -- not in treatment group
> conda info --json
Python interpreter path: E:\Programs\anaconda3\python.exe
> E:\Programs\anaconda3\Scripts\conda.exe info --json
> E:\Programs\anaconda3\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
> E:\Programs\anaconda3\condabin\conda.bat info --json
> E:\Programs\anaconda3\Scripts\conda.exe info --json
> E:\Programs\anaconda3\Scripts\conda.exe run -n base --no-capture-output python ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.8.0/pythonFiles/printEnvVariables.py
> E:\Programs\anaconda3\envs\Texture-2\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
> E:\Programs\anaconda3\envs\texture\python.exe ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.0\pythonFiles\interpreterInfo.py
Starting Pylance language server.
Are there any more people reporting this error?
Are there any more people reporting this error?
No. But conda environment failure is a recurring issue. That may not be the root cause of the problem though. It looks to me like python is able to retrieve the conda information just fine.
What happens if you go to a conda terminal and you activate your texture env and then you run this:
e:\Programs\anaconda3\envs\texture\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"9a47085e-8771-441e-9f9e-821aa097e9da" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\Asus\AppData\Roaming\jupyter\runtime\kernel-v2-23348UsX03lVAvhe6.json
Does that show any output or any errors?
Here it is. I ran it in the Anaconda Prompt & in VS code command prompt.
Anaconda Prompt
(texture) C:\Users\Asus>e:\Programs\anaconda3\envs\texture\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"9a47085e-8771-441e-9f9e-821aa097e9da" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\Asus\AppData\Roaming\jupyter\runtime\kernel-v2-23348UsX03lVAvhe6.json
NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing c:\Users\Asus\AppData\Roaming\jupyter\runtime\kernel-v2-23348UsX03lVAvhe6.json
VS code command prompt
(texture) E:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features>e:\Programs\anaconda3\envs\texture\python.exe -m ipykernel_launcher --ip=127.0.0.1 --stdin=9003 --control=9001 --hb=9000 --Session.signature_scheme="hmac-sha256" --Session.key=b"9a47085e-8771-441e-9f9e-821aa097e9da" --shell=9002 --transport="tcp" --iopub=9004 --f=c:\Users\Asus\AppData\Roaming\jupyter\runtime\kernel-v2-23348UsX03lVAvhe6.json
NOTE: When using the `ipython kernel` entry point, Ctrl-C will not work.
To exit, you will have to explicitly quit this process, by either sending
"quit" from a client, or using Ctrl-\ in UNIX-like environments.
To read more about this, see https://github.com/ipython/ipython/issues/2049
To connect another client to this kernel, use:
--existing c:\Users\Asus\AppData\Roaming\jupyter\runtime\kernel-v2-23348UsX03lVAvhe6.json
The reason why ask is that one of my labmates mentioned that his interactive python has also stopped working. I wonder if it is any update.
Here is the python output in VS code:
Experiment 'pythonaa' is active
Experiment 'pythonTensorboardExperiment' is active
Experiment 'PythonPyTorchProfiler' is active
[DEBUG 2022-5-29 15:8:16.990]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_E:\\DOCUMENTS\\MY WORK SPACE\\WORK\\GRADUATE SCHOOL\\SOFTWARE\\PYTHON\\SEA-ICE-TEXTURE-FEATURES"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:16.994]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_E:\\DOCUMENTS\\MY WORK SPACE\\WORK\\GRADUATE SCHOOL\\SOFTWARE\\PYTHON\\SEA-ICE-TEXTURE-FEATURES"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:16.994]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_E:\\DOCUMENTS\\MY WORK SPACE\\WORK\\GRADUATE SCHOOL\\SOFTWARE\\PYTHON\\SEA-ICE-TEXTURE-FEATURES"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:16.995]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-e:\\Documents\\My Work Space\\Work\\Graduate School\\Software\\Python\\Sea-Ice-texture-features"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:17.233]: Testing: Setting up watcher for e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features
LSP Notebooks experiment is disabled -- not in treatment group
[DEBUG 2022-5-29 15:8:17.243]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-e:\\Documents\\My Work Space\\Work\\Graduate School\\Software\\Python\\Sea-Ice-texture-features"-Arg-Separator-undefined
[INFO 2022-5-29 15:8:17.245]: [
'Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-5-29 15:8:17.250]: Searching for conda.
[INFO 2022-5-29 15:8:17.250]: [
'Display locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-5-29 15:8:17.936]: Probing conda binary: conda
[DEBUG 2022-5-29 15:8:17.952]: Searching for workspace virtual envs in: e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features
[DEBUG 2022-5-29 15:8:17.953]: Getting roots
[DEBUG 2022-5-29 15:8:17.953]: Found roots
> conda info --json
[DEBUG 2022-5-29 15:8:18.83]: Failed to spawn conda binary conda [Error: spawn conda ENOENT
at Process.ChildProcess._handle.onexit (node:internal/child_process:282:19)
at onErrorNT (node:internal/child_process:477:16)
at processTicksAndRejections (node:internal/process/task_queues:83:21)] {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn conda',
path: 'conda',
spawnargs: [ 'info', '--json' ]
}
[DEBUG 2022-5-29 15:8:18.85]: Searching for workspace virtual envs in: e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features
Python interpreter path: E:\Programs\anaconda3\python.exe
[DEBUG 2022-5-29 15:8:18.475]: Getting roots
[DEBUG 2022-5-29 15:8:18.480]: Found roots
[DEBUG 2022-5-29 15:8:18.481]: Start watching root e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features for globs ["python.exe","*/python.exe","*/Scripts/python.exe"]
[DEBUG 2022-5-29 15:8:18.481]: Start watching: e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features with pattern python.exe using VSCode API
[DEBUG 2022-5-29 15:8:18.482]: Start watching: e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features with pattern */python.exe using VSCode API
[DEBUG 2022-5-29 15:8:18.482]: Start watching: e:\Documents\My Work Space\Work\Graduate School\Software\Python\Sea-Ice-texture-features with pattern */Scripts/python.exe using VSCode API
[INFO 2022-5-29 15:8:18.482]: Environments added to cache [{"name":"base","location":"E:\\Programs\\anaconda3","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\python.exe","sysPrefix":"E:\\Programs\\anaconda3","ctime":1656341834962,"mtime":1649068530000},"display":"Python 3.9.12 ('base')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"ContinuumAnalytics","defaultDisplayName":"Anaconda 2022.05"},"source":["windows registry"],"id":"E:\\PROGRAMS\\ANACONDA3\\PYTHON.EXE","detailedDisplayName":"Python 3.9.12 ('base': conda)"},{"name":"Texture-2","location":"E:\\Programs\\anaconda3\\envs\\Texture-2","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\envs\\Texture-2\\python.exe","sysPrefix":"E:\\Programs\\anaconda3\\envs\\Texture-2","ctime":1656341834962,"mtime":1649068530000},"display":"Python 3.9.12 ('Texture-2')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"id":"E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE-2\\PYTHON.EXE","detailedDisplayName":"Python 3.9.12 ('Texture-2': conda)"},{"name":"texture","location":"E:\\Programs\\anaconda3\\envs\\texture","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\envs\\texture\\python.exe","sysPrefix":"E:\\Programs\\anaconda3\\envs\\texture","ctime":1656339812901,"mtime":1648647532000},"display":"Python 3.10.4 ('texture')","version":{"major":3,"minor":10,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"id":"E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE\\PYTHON.EXE","detailedDisplayName":"Python 3.10.4 ('texture': conda)"}]
[DEBUG 2022-5-29 15:8:25.947]: Shell path '', base path ''
[DEBUG 2022-5-29 15:8:25.947]: Shell path identified as shell 'other'
[DEBUG 2022-5-29 15:8:25.947]: Terminal name '' identified as shell 'other'
[DEBUG 2022-5-29 15:8:25.947]: [object Object]. Shell identified as other (Terminal name is )
[DEBUG 2022-5-29 15:8:25.947]: [object Object]. Shell identified as undefined (Terminal name is )
[DEBUG 2022-5-29 15:8:25.948]: Shell path from user settings 'null'
[DEBUG 2022-5-29 15:8:25.948]: [object Object]. Shell identified as other (Terminal name is )
[DEBUG 2022-5-29 15:8:25.948]: Shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe', base path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell'
[DEBUG 2022-5-29 15:8:25.948]: Shell path identified as shell 'powershell'
[DEBUG 2022-5-29 15:8:25.948]: Shell path from user env 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe'
[DEBUG 2022-5-29 15:8:25.948]: [object Object]. Shell identified as powershell (Terminal name is )
[DEBUG 2022-5-29 15:8:25.949]: Shell identified as 'powershell'
[DEBUG 2022-5-29 15:8:27.144]: Probing conda binary: E:\Programs\anaconda3\Scripts\conda.exe
[DEBUG 2022-5-29 15:8:27.144]: Cached data exists getEnvironmentVariables, <No Resource>
> E:\Programs\anaconda3\Scripts\conda.exe info --json
[DEBUG 2022-5-29 15:8:30.12]: Cached data exists getEnvironmentVariables, <No Resource>
> E:\Programs\anaconda3\python.exe ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[INFO 2022-5-29 15:8:31.980]: Found interpreter for E:\Programs\anaconda3\python.exe,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[DEBUG 2022-5-29 15:8:32.273]: Shell path '', base path ''
[DEBUG 2022-5-29 15:8:32.273]: Shell path identified as shell 'other'
[DEBUG 2022-5-29 15:8:32.273]: Terminal name '' identified as shell 'other'
[DEBUG 2022-5-29 15:8:32.273]: [object Object]. Shell identified as other (Terminal name is )
[DEBUG 2022-5-29 15:8:32.273]: Shell path 'C:\WINDOWS\System32\cmd.exe', base path 'C:\WINDOWS\System32\cmd'
[DEBUG 2022-5-29 15:8:32.273]: Shell path identified as shell 'commandPrompt'
[DEBUG 2022-5-29 15:8:32.273]: Terminal shell path 'C:\WINDOWS\System32\cmd.exe' identified as shell 'commandPrompt'
[DEBUG 2022-5-29 15:8:32.273]: [object Object]. Shell identified as commandPrompt (Terminal name is )
[DEBUG 2022-5-29 15:8:32.274]: Shell identified as 'commandPrompt'
[DEBUG 2022-5-29 15:8:39.919]: conda info --json: {
"active_prefix": null,
"active_prefix_name": null,
"av_data_dir": "E:\\Programs\\anaconda3\\etc\\conda",
"av_metadata_url_base": null,
"channels": [
"https://repo.anaconda.com/pkgs/main/win-64",
"https://repo.anaconda.com/pkgs/main/noarch",
"https://repo.anaconda.com/pkgs/r/win-64",
"https://repo.anaconda.com/pkgs/r/noarch",
"https://repo.anaconda.com/pkgs/msys2/win-64",
"https://repo.anaconda.com/pkgs/msys2/noarch"
],
"conda_build_version": "3.21.8",
"conda_env_version": "4.13.0",
"conda_location": "E:\\Programs\\anaconda3\\lib\\site-packages\\conda",
"conda_prefix": "E:\\Programs\\anaconda3",
"conda_private": false,
"conda_shlvl": -1,
"conda_version": "4.13.0",
"config_files": [
"C:\\Users\\Asus\\.condarc"
],
"default_prefix": "E:\\Programs\\anaconda3",
"env_vars": {
"CIO_TEST": "<not set>",
"CONDA_ROOT": "E:\\Programs\\anaconda3",
"CURL_CA_BUNDLE": "<not set>",
"GENICAM_GENTL64_PATH": "C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\GenICam\\bin\\win64_x64\\TLIs",
"HOMEPATH": "\\Users\\Asus",
"PATH": "C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;E:\\Programs\\Matlab\\R2020d\\runtime\\win64;E:\\Programs\\Matlab\\R2020d\\bin;E:\\Programs\\MATLAB R2020a\\runtime\\win64;E:\\Programs\\MATLAB R2020a\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;E:\\Programs\\Inkscape\\bin;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\;C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\Qt\\;C:\\Users\\Asus\\anaconda3\\Scripts;C:\\Program Files\\Git\\cmd;E:\\Programs\\CMake\\bin;C:\\Users\\Asus\\AppData\\Local\\Microsoft\\WindowsApps;E:\\Programs\\Microsoft VS Code\\bin",
"PSMODULEPATH": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1",
"REQUESTS_CA_BUNDLE": "<not set>",
"SSL_CERT_FILE": "<not set>",
"VSCODE_CODE_CACHE_PATH": "C:\\Users\\Asus\\AppData\\Roaming\\Code\\CachedData\\30d9c6cd9483b2cc586687151bcbcd635f373630",
"VXIPNPPATH": "C:\\Program Files (x86)\\IVI Foundation\\VISA\\"
},
"envs": [
"E:\\Programs\\anaconda3",
"E:\\Programs\\anaconda3\\envs\\Texture-2",
"E:\\Programs\\anaconda3\\envs\\texture"
],
"envs_dirs": [
"E:\\Programs\\anaconda3\\envs",
"C:\\Users\\Asus\\.conda\\envs",
"C:\\Users\\Asus\\AppData\\Local\\conda\\conda\\envs"
],
"is_windows_admin": false,
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"E:\\Programs\\anaconda3\\pkgs",
"C:\\Users\\Asus\\.conda\\pkgs",
"C:\\Users\\Asus\\AppData\\Local\\conda\\conda\\pkgs"
],
"platform": "win-64",
"python_version": "3.9.12.final.0",
"rc_path": "C:\\Users\\Asus\\.condarc",
"requests_version": "2.27.1",
"root_prefix": "E:\\Programs\\anaconda3",
"root_writable": true,
"site_dirs": [
"C:\\Users\\Asus\\AppData\\Roaming\\Python\\Python37",
"C:\\Users\\Asus\\AppData\\Roaming\\Python\\share"
],
"sys.executable": "E:\\Programs\\anaconda3\\python.exe",
"sys.prefix": "E:\\Programs\\anaconda3",
"sys.version": "3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]",
"sys_rc_path": "E:\\Programs\\anaconda3\\.condarc",
"user_agent": "conda/4.13.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.19044",
"user_rc_path": "C:\\Users\\Asus\\.condarc",
"virtual_pkgs": [
[
"__cuda",
"11.7",
"0"
],
[
"__win",
"0",
"0"
],
[
"__archspec",
"1",
"x86_64"
]
]
}
[DEBUG 2022-5-29 15:8:39.920]: Cached data exists getEnvironmentVariables, <No Resource>
> E:\Programs\anaconda3\condabin\conda.bat info --json
[DEBUG 2022-5-29 15:8:47.110]: conda info --json: {
"active_prefix": null,
"active_prefix_name": null,
"av_data_dir": "E:\\Programs\\anaconda3\\etc\\conda",
"av_metadata_url_base": null,
"channels": [
"https://repo.anaconda.com/pkgs/main/win-64",
"https://repo.anaconda.com/pkgs/main/noarch",
"https://repo.anaconda.com/pkgs/r/win-64",
"https://repo.anaconda.com/pkgs/r/noarch",
"https://repo.anaconda.com/pkgs/msys2/win-64",
"https://repo.anaconda.com/pkgs/msys2/noarch"
],
"conda_build_version": "3.21.8",
"conda_env_version": "4.13.0",
"conda_location": "E:\\Programs\\anaconda3\\lib\\site-packages\\conda",
"conda_prefix": "E:\\Programs\\anaconda3",
"conda_private": false,
"conda_shlvl": -1,
"conda_version": "4.13.0",
"config_files": [
"C:\\Users\\Asus\\.condarc"
],
"default_prefix": "E:\\Programs\\anaconda3",
"env_vars": {
"CIO_TEST": "<not set>",
"CONDA_EXE": "E:\\Programs\\anaconda3\\condabin\\..\\Scripts\\conda.exe",
"CONDA_EXES": "\"E:\\Programs\\anaconda3\\condabin\\..\\Scripts\\conda.exe\" ",
"CONDA_ROOT": "E:\\Programs\\anaconda3",
"CURL_CA_BUNDLE": "<not set>",
"GENICAM_GENTL64_PATH": "C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\GenICam\\bin\\win64_x64\\TLIs",
"HOMEPATH": "\\Users\\Asus",
"PATH": "E:\\Programs\\anaconda3;E:\\Programs\\anaconda3\\Library\\mingw-w64\\bin;E:\\Programs\\anaconda3\\Library\\usr\\bin;E:\\Programs\\anaconda3\\Library\\bin;E:\\Programs\\anaconda3\\Scripts;E:\\Programs\\anaconda3\\bin;C:\\Program Files (x86)\\Razer Chroma SDK\\bin;C:\\Program Files\\Razer Chroma SDK\\bin;C:\\Program Files (x86)\\Razer\\ChromaBroadcast\\bin;C:\\Program Files\\Razer\\ChromaBroadcast\\bin;C:\\Program Files (x86)\\Common Files\\Oracle\\Java\\javapath;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files (x86)\\NVIDIA Corporation\\PhysX\\Common;C:\\Program Files\\NVIDIA Corporation\\NVIDIA NvDLISR;E:\\Programs\\Matlab\\R2020d\\runtime\\win64;E:\\Programs\\Matlab\\R2020d\\bin;E:\\Programs\\MATLAB R2020a\\runtime\\win64;E:\\Programs\\MATLAB R2020a\\bin;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin\\;C:\\Program Files\\IVI Foundation\\VISA\\Win64\\Bin\\;C:\\Program Files (x86)\\IVI Foundation\\VISA\\WinNT\\Bin;C:\\Windows\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\WINDOWS\\system32;C:\\WINDOWS;C:\\WINDOWS\\System32\\Wbem;C:\\WINDOWS\\System32\\WindowsPowerShell\\v1.0\\;C:\\WINDOWS\\System32\\OpenSSH\\;E:\\Programs\\Inkscape\\bin;C:\\WINDOWS\\system32\\config\\systemprofile\\AppData\\Local\\Microsoft\\WindowsApps;C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\;C:\\Program Files\\STEMMER IMAGING\\Common Vision Blox\\Qt\\;C:\\Users\\Asus\\anaconda3\\Scripts;C:\\Program Files\\Git\\cmd;E:\\Programs\\CMake\\bin;C:\\Users\\Asus\\AppData\\Local\\Microsoft\\WindowsApps;E:\\Programs\\Microsoft VS Code\\bin",
"PSMODULEPATH": "C:\\Program Files\\WindowsPowerShell\\Modules;C:\\WINDOWS\\system32\\WindowsPowerShell\\v1.0\\Modules",
"PYTHONIOENCODING": "utf-8",
"PYTHONUNBUFFERED": "1",
"REQUESTS_CA_BUNDLE": "<not set>",
"SSL_CERT_FILE": "<not set>",
"VSCODE_CODE_CACHE_PATH": "C:\\Users\\Asus\\AppData\\Roaming\\Code\\CachedData\\30d9c6cd9483b2cc586687151bcbcd635f373630",
"VXIPNPPATH": "C:\\Program Files (x86)\\IVI Foundation\\VISA\\"
},
"envs": [
"E:\\Programs\\anaconda3",
"E:\\Programs\\anaconda3\\envs\\Texture-2",
"E:\\Programs\\anaconda3\\envs\\texture"
],
"envs_dirs": [
"E:\\Programs\\anaconda3\\envs",
"C:\\Users\\Asus\\.conda\\envs",
"C:\\Users\\Asus\\AppData\\Local\\conda\\conda\\envs"
],
"is_windows_admin": false,
"netrc_file": null,
"offline": false,
"pkgs_dirs": [
"E:\\Programs\\anaconda3\\pkgs",
"C:\\Users\\Asus\\.conda\\pkgs",
"C:\\Users\\Asus\\AppData\\Local\\conda\\conda\\pkgs"
],
"platform": "win-64",
"python_version": "3.9.12.final.0",
"rc_path": "C:\\Users\\Asus\\.condarc",
"requests_version": "2.27.1",
"root_prefix": "E:\\Programs\\anaconda3",
"root_writable": true,
"site_dirs": [
"C:\\Users\\Asus\\AppData\\Roaming\\Python\\Python37",
"C:\\Users\\Asus\\AppData\\Roaming\\Python\\share"
],
"sys.executable": "E:\\Programs\\anaconda3\\python.exe",
"sys.prefix": "E:\\Programs\\anaconda3",
"sys.version": "3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]",
"sys_rc_path": "E:\\Programs\\anaconda3\\.condarc",
"user_agent": "conda/4.13.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.19044",
"user_rc_path": "C:\\Users\\Asus\\.condarc",
"virtual_pkgs": [
[
"__cuda",
"11.7",
"0"
],
[
"__win",
"0",
"0"
],
[
"__archspec",
"1",
"x86_64"
]
]
}
[DEBUG 2022-5-29 15:8:47.110]: Found conda via filesystem probing: E:\Programs\anaconda3\Scripts\conda.exe
[DEBUG 2022-5-29 15:8:47.111]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoImpl-Args="E:\\Programs\\anaconda3\\Scripts\\conda.exe"
[DEBUG 2022-5-29 15:8:47.111]: Searching for conda environments using E:\Programs\anaconda3\Scripts\conda.exe
[DEBUG 2022-5-29 15:8:47.111]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoImpl-Args="E:\\Programs\\anaconda3\\Scripts\\conda.exe"
[DEBUG 2022-5-29 15:8:47.111]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-5-29 15:8:47.111]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-5-29 15:8:47.111]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-5-29 15:8:47.112]: Looking into conda env for executable: {"prefix":"E:\\Programs\\anaconda3","name":"base"}
[DEBUG 2022-5-29 15:8:47.112]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-5-29 15:8:47.112]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-5-29 15:8:47.112]: Has Custom Env Vars
[DEBUG 2022-5-29 15:8:47.112]: Activating Environment to capture Environment variables, E:\Programs\anaconda3\Scripts\conda.exe run -n base --no-capture-output python c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py c:/Users/Asus/.vscode/extensions/ms-python.python-2022.8.1/pythonFiles/printEnvVariables.py
> E:\Programs\anaconda3\Scripts\conda.exe run -n base --no-capture-output python ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.8.1/pythonFiles/printEnvVariables.py
[DEBUG 2022-5-29 15:8:47.141]: Found executable within conda env {"prefix":"E:\\Programs\\anaconda3","name":"base"}
[DEBUG 2022-5-29 15:8:47.141]: Found conda executable: E:\Programs\anaconda3\python.exe
[DEBUG 2022-5-29 15:8:47.141]: Looking into conda env for executable: {"prefix":"E:\\Programs\\anaconda3\\envs\\Texture-2","name":"Texture-2"}
[DEBUG 2022-5-29 15:8:47.142]: Executable does not exist within conda env, assume the executable to be `python` {"name":"","prefix":""}
[DEBUG 2022-5-29 15:8:47.143]: Found executable within conda env {"prefix":"E:\\Programs\\anaconda3\\envs\\Texture-2","name":"Texture-2"}
[DEBUG 2022-5-29 15:8:47.143]: Found conda executable: E:\Programs\anaconda3\envs\Texture-2\python.exe
[DEBUG 2022-5-29 15:8:47.143]: Looking into conda env for executable: {"prefix":"E:\\Programs\\anaconda3\\envs\\texture","name":"texture"}
[DEBUG 2022-5-29 15:8:47.143]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=true
[DEBUG 2022-5-29 15:8:47.144]: Found executable within conda env {"prefix":"E:\\Programs\\anaconda3\\envs\\texture","name":"texture"}
[DEBUG 2022-5-29 15:8:47.144]: Found conda executable: E:\Programs\anaconda3\envs\texture\python.exe
[DEBUG 2022-5-29 15:8:47.234]: Cached data exists getEnvironmentVariables, <No Resource>
> E:\Programs\anaconda3\envs\Texture-2\python.exe ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[DEBUG 2022-5-29 15:8:47.279]: Cached data exists KeyPrefix=Cache_Method_Output_y.getEnvList-Args=true
[INFO 2022-5-29 15:8:47.339]: [
'Get Conda File from interpreter, Class name = d, completed in 197ms, has a truthy return value, Arg 1: "python", Arg 2: "", Return Value: "E:\\\\Programs\\\\anaconda3\\\\Scripts\\\\conda.exe"'
]
[DEBUG 2022-5-29 15:8:47.343]: Cached data exists getEnvironmentVariables, <No Resource>
> E:\Programs\anaconda3\envs\texture\python.exe ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[INFO 2022-5-29 15:8:49.578]: Found interpreter for E:\Programs\anaconda3\envs\texture\python.exe,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[INFO 2022-5-29 15:8:49.969]: Found interpreter for E:\Programs\anaconda3\envs\Texture-2\python.exe,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\get_output_via_markers.py,c:\Users\Asus\.vscode\extensions\ms-python.python-2022.8.1\pythonFiles\interpreterInfo.py
[INFO 2022-5-29 15:8:49.970]: Environments added to cache [{"name":"base","location":"E:\\Programs\\anaconda3","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\python.exe","sysPrefix":"E:\\Programs\\anaconda3","ctime":1656341834962,"mtime":1649068530000},"display":"Python 3.9.12 ('base')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"ContinuumAnalytics","defaultDisplayName":"Anaconda 2022.05"},"source":["windows registry"],"id":"E:\\PROGRAMS\\ANACONDA3\\PYTHON.EXE","detailedDisplayName":"Python 3.9.12 ('base': conda)"},{"name":"Texture-2","location":"E:\\Programs\\anaconda3\\envs\\Texture-2","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\envs\\Texture-2\\python.exe","sysPrefix":"E:\\Programs\\anaconda3\\envs\\Texture-2","ctime":1656341834962,"mtime":1649068530000},"display":"Python 3.9.12 ('Texture-2')","version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"id":"E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE-2\\PYTHON.EXE","detailedDisplayName":"Python 3.9.12 ('Texture-2': conda)"},{"name":"texture","location":"E:\\Programs\\anaconda3\\envs\\texture","kind":"virt-conda","executable":{"filename":"E:\\Programs\\anaconda3\\envs\\texture\\python.exe","sysPrefix":"E:\\Programs\\anaconda3\\envs\\texture","ctime":1656339812901,"mtime":1648647532000},"display":"Python 3.10.4 ('texture')","version":{"major":3,"minor":10,"micro":4,"release":{"level":"final","serial":0},"sysVersion":"3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)]"},"arch":3,"distro":{"org":"Anaconda, Inc."},"source":[],"id":"E:\\PROGRAMS\\ANACONDA3\\ENVS\\TEXTURE\\PYTHON.EXE","detailedDisplayName":"Python 3.10.4 ('texture': conda)"}]
[INFO 2022-5-29 15:8:49.970]: [
'Hide locator refreshing progress, Class name = g, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[INFO 2022-5-29 15:8:54.382]: [
'Starting language server, Class name = d, completed in 4391ms, has a falsy return value, , Return Value: undefined'
]
Starting Pylance language server.
[DEBUG 2022-5-29 15:8:54.386]: [object Object]. Shell identified as undefined
[DEBUG 2022-5-29 15:8:54.386]: Shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe', base path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell'
[DEBUG 2022-5-29 15:8:54.386]: Shell path identified as shell 'powershell'
[DEBUG 2022-5-29 15:8:54.386]: Terminal shell path 'C:\WINDOWS\System32\WindowsPowerShell\v1.0\powershell.exe' identified as shell 'powershell'
[DEBUG 2022-5-29 15:8:54.386]: [object Object]. Shell identified as powershell
[DEBUG 2022-5-29 15:8:54.387]: Shell identified as 'powershell'
[DEBUG 2022-5-29 15:8:54.387]: Cached data exists KeyPrefix=Cache_Method_Output_y.getCondaVersion-Args=
[DEBUG 2022-5-29 15:8:54.387]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_E:\\DOCUMENTS\\MY WORK SPACE\\WORK\\GRADUATE SCHOOL\\SOFTWARE\\PYTHON\\SEA-ICE-TEXTURE-FEATURES"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:54.387]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_E:\\DOCUMENTS\\MY WORK SPACE\\WORK\\GRADUATE SCHOOL\\SOFTWARE\\PYTHON\\SEA-ICE-TEXTURE-FEATURES"-Arg-Separator-undefined
[DEBUG 2022-5-29 15:8:54.388]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-e:\\Documents\\My Work Space\\Work\\Graduate School\\Software\\Python\\Sea-Ice-texture-features"-Arg-Separator-undefined
[INFO 2022-5-29 15:9:1.399]: [
'parseEnvironmentOutput, Class name = I, completed in 0ms, has a truthy return value'
]
[INFO 2022-5-29 15:9:1.400]: [
`getActivatedEnvironmentVariables, Class name = I, completed in 43442ms, has a truthy return value, Arg 1: undefined, Arg 2: {"id":"E:\\\\PROGRAMS\\\\ANACONDA3\\\\PYTHON.EXE","sysPrefix":"E:\\\\Programs\\\\anaconda3","envType":"Conda","envName":"base","envPath":"e:\\\\Programs\\\\anaconda3","architecture":3,"sysVersion":"3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]","version":{"raw":"3.9.12","major":3,"minor":9,"patch":12,"build":[],"prerelease":["final","0"]},"companyDisplayName":"ContinuumAnalytics","displayName":"Python 3.9.12 ('base')","detailedDisplayName":"Python 3.9.12 ('base': conda)","path":"e:\\\\Programs\\\\anaconda3\\\\python.exe"}, Arg 3: false`
]
[DEBUG 2022-5-29 15:18:8.465]: Cached data exists KeyPrefix=Cache_Method_Output_S.ensureEnvironmentContainsPython-Args="E:\\Programs\\anaconda3\\python.exe"
Okay that makes it look like ipykernel is installed and your environment looks okay AFAICT.
In your conda terminal (after starting your texture python) can you run this code and report on the result?
import ipykernel
print(ipykernel.__version__)
import IPython
print(IPython.__version__)
Here it is:
(base) C:\Users\Asus>activate texture
(texture) C:\Users\Asus>python
Python 3.10.4 | packaged by conda-forge | (main, Mar 30 2022, 08:38:02) [MSC v.1916 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import ipykernel
>>> print(ipykernel.__version__)
6.15.0
>>> import IPython
>>> print(IPython.__version__)
8.4.0
Okay that looks like it should work.
Can you try setting the log level for jupyter too and then reproing the issue:
It could actually be the failure of us activating the conda environment that is preventing the kernel from running correctly. We need to figure that out that first.
Oh no wait I was just looking through the replies you made above.
You said this:
The commands above took around 10 minutes to execute. Whenever VS code is open my computer is super slow. Again this did not use to be the case.
That would definitely cause the problem. This would be a fault of anaconda. Keras can sometimes cause this.
log2.txt Here is the log. I think it might be some kind of update that caused the error. I also have anaconda and VS code on another computer and it runs just fine.
Yeah it's anaconda. This line here shows it:
debug 12:47:53.898: Got env vars with python e:\Programs\anaconda3\python.exe in 138669ms
It takes 2 and 1/2 minutes to activate conda. We only wait 30 seconds for kernel launch.
So there's some things you can do (in order of what I think would be least to most painful)
For number 1, you'd do this:
conda install -c conda-forge jupyter
jupyter notebook --no-browser
Hi rchiodo.
Number 1 worked. However, it still had some issues. Despite activating conda outside, it still took around 10 minutes for interactive python to work. During the 10 minutes, twice VS code stopped responding. Furthermore, when trying to run some lines of code an error popped up saying "actual command NOT FOUND".
I am going to try number 3 again. However, I already tried it and it did not do anything.
This is what jupyter displayed if it helps.
[I 14:14:36.949 NotebookApp] Serving notebooks from local directory: C:\Users\Asus
[I 14:14:36.949 NotebookApp] Jupyter Notebook 6.4.12 is running at:
[I 14:14:36.951 NotebookApp] http://localhost:8888/?token=32dadaf195069c31fe8e4ababdfe545ffae2da2a91dbc630
[I 14:14:36.951 NotebookApp] or http://127.0.0.1:8888/?token=32dadaf195069c31fe8e4ababdfe545ffae2da2a91dbc630
[I 14:14:36.960 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 14:14:36.969 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Asus/AppData/Roaming/jupyter/runtime/nbserver-27744-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=32dadaf195069c31fe8e4ababdfe545ffae2da2a91dbc630
or http://127.0.0.1:8888/?token=32dadaf195069c31fe8e4ababdfe545ffae2da2a91dbc630
[I 14:22:44.197 NotebookApp] Creating new notebook in
[E 14:23:25.946 NotebookApp] Uncaught exception GET /api/kernels?1656699773790 (127.0.0.1)
HTTPServerRequest(protocol='http', host='localhost:8888', method='GET', uri='/api/kernels?1656699773790', version='HTTP/1.1', remote_ip='127.0.0.1')
Traceback (most recent call last):
File "E:\Programs\anaconda3\envs\texture\lib\site-packages\tornado\web.py", line 1704, in _execute
result = await result
File "E:\Programs\anaconda3\envs\texture\lib\site-packages\tornado\gen.py", line 234, in wrapper
yielded = ctx_run(next, result)
File "E:\Programs\anaconda3\envs\texture\lib\site-packages\notebook\services\kernels\handlers.py", line 36, in get
kernels = yield maybe_future(km.list_kernels())
File "E:\Programs\anaconda3\envs\texture\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 384, in list_kernels
model = self.kernel_model(kernel_id)
File "E:\Programs\anaconda3\envs\texture\lib\site-packages\notebook\services\kernels\kernelmanager.py", line 372, in kernel_model
"last_activity": isoformat(kernel.last_activity),
AttributeError: 'IOLoopKernelManager' object has no attribute 'last_activity'
[W 14:23:26.044 NotebookApp] Unhandled error
[E 14:23:26.054 NotebookApp] {
"Host": "localhost:8888",
"Accept": "*/*",
"User-Agent": "node-fetch/1.0 (+https://github.com/bitinn/node-fetch)"
}
[E 14:23:26.055 NotebookApp] 500 GET /api/kernels?1656699773790 (127.0.0.1) 109.110000ms referer=None
[I 14:23:26.069 NotebookApp] Kernel started: e6f137ee-8b73-4926-b075-435369283fdd, name: python3
[W 14:23:26.115 NotebookApp] delete /Artificial_Image.py-jvsc-b928fa2b-7ea8-4383-be1f-ab1873ac62dc9e9645fa-3a1b-4787-b288-7dd8fb989ecd.ipynb
I re-installed anaconda as well. It did not help or fix the issue.
Sorry to hear that. Something is making anaconda take a long time. At least you indicated activating a conda environment took ten minutes before? Perhaps I misunderstood though.
In the past others have hit similar problems with the startup script that conda runs. Keras in particular can slow things down a bunch. I'm not entirely sure all of the scripts conda runs on startup (some of which might be in your user folder, so an uninstall wouldn't remove them).
@Fernando961226 apologies for not getting back to you for a while. Please could you:
conda env export > environment.yml
AttributeError: 'IOLoopKernelManager' object has no attribute 'last_activity' [W 14:23:26.044 NotebookApp] Unhandled error
This seems to be related to https://github.com/jupyter/notebook/issues/5345 You might want to update the version of Jupyter Notebook on your machine.
Try to find the thing in anaconda that makes it take so long.
I'd like to get to the bottom of this, hence the request for the conda environment to be exported to a yml file.
Closing this issue as its been over 4 weeks, since the information was requested. We'll be happy to reopen the issue when the requested information has been provided.
For whahever it is worth !
I had similar issues for long time two things that took care of this slow running for me are here
And to my surprise its loads packages properly plus it runs without delay now... lol after gettiing frustrated for more than 6 months...
if it's running too long for installing dependency like ipykernel, you can try to maunally open the terminal and run the pip install, then you can try to rerun the job
Issue Type: Bug
Problem description:
When trying to use the interactive python. vscode gets stuck on "Connecting to kernel" for 15 to 20 minutes if it ever passes that step.
Steps to reproduce it:
Expected behaviour:
The interactive window should open and show me the result within 1 to 2 minutes at most.
Actual behaviour:
Other Notes:
Extension version: 2022.4.1021342353 VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:58.283Z) OS version: Windows_NT x64 10.0.19044 Restricted Mode: No
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-8750H CPU @ 2.20GHz (12 x 2208)| |GPU Status|2d_canvas: enabledcanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: unavailable_off
vulkan: disabled_off
webgl: enabled
webgl2: enabled| |Load (avg)|undefined| |Memory (System)|15.86GB (9.31GB free)| |Process Argv|--crash-reporter-id bc07a159-76b5-487f-a220-9cad0eaf0199| |Screen Reader|no| |VM|0%|
A/B Experiments
``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 vsaa593:30376534 vsc1dst:30438360 pythonvs932:30410667 wslgetstarted:30449410 vscscmwlcmt:30465135 cppdebug:30492333 pylanb8912cf:30515787 vsclangdf:30486550 ```