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

Issues with new conda env on WSL #11813

Closed
roblourens opened this issue Oct 26, 2022 · 11 comments
Closed

Issues with new conda env on WSL #11813

roblourens opened this issue Oct 26, 2022 · 11 comments
Assignees
Labels
notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel)

Comments

@roblourens
Copy link
Member

Testing #11755

  • Install conda on WSL, set up a new environment, select it in the picker
  • Get a message "The version of python is not supported anymore" or something like that, I ignored it- the environment has 3.10
  • Run a cell, get prompted to install ipykernel, the install runs
  • Run the cell again, get prompted to install ipykernel again, but the progress notification seems to say that it's already installed

Log
jupyter-log.log

@roblourens
Copy link
Member Author

This environment worked after reloading the window though

@DonJayamanne
Copy link
Contributor

Install conda on WSL, set up a new environment, select it in the picker

What was the sequence of events here?

  • Install WSL
  • Open VS Code
  • Create new Enviroment
  • Select it in the picker

I.e. did you create the environment while in VS Code

This environment worked after reloading the window though

If you run into this, please could you set logging to debug so we can see what's going on

@DonJayamanne DonJayamanne added notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel) WSL labels Oct 26, 2022
@roblourens
Copy link
Member Author

I.e. did you create the environment while in VS Code

Yes. Here, I

  • Opened a notebook
  • cleared the Jupyter log
  • Ran conda create --name conda3
  • Opened the kernel picker
  • Copied the log:
info 12:10:20.678: Preferred Remote kernel for /root/project1/notebook.ipynb is undefined
info 12:10:22.324: Starting Jupyter Session startUsingPythonInterpreter, .jvsc74a57bd05b8abe0cf4c22f489280b8ff27f1106a6cfbbcae0bb38a35384fa71ec0c76b08./root/miniconda3/envs/conda1/python./root/miniconda3/envs/conda1/python.-m#ipykernel_launcher (Python Path: /root/miniconda3/envs/conda1/bin/python, EnvType: Conda, EnvName: 'conda1', Version: 3.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0]) for '/root/project1/notebook.ipynb' (disableUI=true)
info 12:10:22.336: Computing working directory for resource '/root/project1/notebook.ipynb'
info 12:10:22.360: Preferred Remote kernel for /root/project1/notebook.ipynb is undefined
info 12:10:22.360: Find preferred kernel for /root/project1/notebook.ipynb with metadata {"kernelspec":{"display_name":"conda1","language":"python","name":"python3"},"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.10.6 | packaged by conda-forge | (main, Aug 22 2022, 20:36:39) [GCC 10.4.0]"},"orig_nbformat":4,"vscode":{"interpreter":{"hash":"5b8abe0cf4c22f489280b8ff27f1106a6cfbbcae0bb38a35384fa71ec0c76b08"}}} & preferred interpreter /bin/python3
info 12:10:22.372: Preferred Remote kernel for /root/project1/notebook.ipynb is undefined
info 12:10:22.372: Preferred kernel .jvsc74a57bd05b8abe0cf4c22f489280b8ff27f1106a6cfbbcae0bb38a35384fa71ec0c76b08./root/miniconda3/envs/conda1/python./root/miniconda3/envs/conda1/python.-m#ipykernel_launcher is exact match or top match for non python kernels, (false, undefined, true, false)
info 12:10:22.378: PreferredConnection: .jvsc74a57bd05b8abe0cf4c22f489280b8ff27f1106a6cfbbcae0bb38a35384fa71ec0c76b08./root/miniconda3/envs/conda1/python./root/miniconda3/envs/conda1/python.-m#ipykernel_launcher found for NotebookDocument: /root/project1/notebook.ipynb
error 12:11:00.077: Execing shell command, Class name = b, completed in 37683ms, has a falsy return value, Arg 1: "~/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.10.1103011060/pythonFiles/printEnvVariables.py", Arg 2: "" [Error: Command failed: conda activate conda1 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /root/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.10.1103011060/pythonFiles/printEnvVariables.py

CommandNotFoundError: Your shell has not been properly configured to use 'conda activate'.
To initialize your shell, run

    $ conda init <SHELL_NAME>

Currently supported shells are:
  - bash
  - fish
  - tcsh
  - xonsh
  - zsh
  - powershell

See 'conda init --help' for more information and options.

IMPORTANT: You may need to close and restart your shell after running 'conda init'.



	at ChildProcess.exithandler (node:child_process:399:12)
	at ChildProcess.emit (node:events:526:28)
	at maybeClose (node:internal/child_process:1092:16)
	at Socket.<anonymous> (node:internal/child_process:451:11)
	at Socket.emit (node:events:526:28)
	at Pipe.<anonymous> (node:net:687:12)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: "conda activate conda1 && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /root/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2022.10.1103011060/pythonFiles/printEnvVariables.py"
}
info 12:11:19.716: Got env vars with python /root/miniconda3/envs/conda1/bin/python, with env var count 40 and custom env var count 0 in 57070ms
info 12:11:19.750: Got env vars with python /root/miniconda3/envs/conda1/bin/python, with env var count 40 and custom env var count 0 in 59060ms
info 12:11:19.804: Process Execution: > ~/miniconda3/envs/conda1/bin/python -m pip list
> ~/miniconda3/envs/conda1/bin/python -m pip list
info 12:11:19.824: Got env vars with python /root/miniconda3/envs/conda1/bin/python, with env var count 40 and custom env var count 0 in 57174ms
info 12:11:19.890: Process Execution: > ~/miniconda3/envs/conda1/bin/python -m ipykernel_launcher --ip=127.0.0.1 --stdin=9024 --control=9022 --hb=9021 --Session.signature_scheme="hmac-sha256" --Session.key=b"ccc8f5db-b4b4-4bb7-95a0-823f0ea85b23" --shell=9023 --transport="tcp" --iopub=9025 --f=/root/.local/share/jupyter/runtime/kernel-v2-1168DM6RPrFQ8QoI.json
> ~/miniconda3/envs/conda1/bin/python -m ipykernel_launcher --ip=127.0.0.1 --stdin=9024 --control=9022 --hb=9021 --Session.signature_scheme="hmac-sha256" --Session.key=b"ccc8f5db-b4b4-4bb7-95a0-823f0ea85b23" --shell=9023 --transport="tcp" --iopub=9025 --f=/root/.local/share/jupyter/runtime/kernel-v2-1168DM6RPrFQ8QoI.json
info 12:11:19.890: Process Execution: cwd: ~/project1
cwd: ~/project1
error 12:11:22.855: Failed to get activated conda env variables from Python for /root/miniconda3/envs/conda1/bin/python
info 12:11:22.855: Got empty env vars with python /root/miniconda3/envs/conda1/bin/python in 60387ms
info 12:11:23.282: Process Execution: > ~/miniconda3/envs/conda1/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
> ~/miniconda3/envs/conda1/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
info 12:11:38.260: ipykernel version & path 6.16.2, ~/miniconda3/envs/conda1/lib/python3.10/site-packages/ipykernel/__init__.py for /root/miniconda3/envs/conda1/bin/python

@roblourens
Copy link
Member Author

conda1 is the selected kernel, I guess that's why it has that stuff, however I'm not sure what the error about conda activate means

@DonJayamanne
Copy link
Contributor

error 12:11:22.855: Failed to get activated conda env variables from Python for /root/miniconda3/envs/conda1/bin/python
info 12:11:22.855: Got empty env vars with python /root/miniconda3/envs/conda1/bin/python in 60387ms

Basically both Python and Jupyter extensions fail to activate the Conda enviornment.
I know how to fix this, but its more fixes for conda activation in our extesnion, something that should go into the Python extension.

I believe this is the same as microsoft/vscode-python#19965

We must have a lot of users running into this and never get stuff working.. & just give up and leave

@karrtikr
Copy link
Contributor

karrtikr commented Nov 10, 2022

@roblourens Was conda init run for bash? If so can you provide the conda version

@roblourens
Copy link
Member Author

4.12.0

@karrtikr
Copy link
Contributor

@DonJayamanne I checked that script is ran using child_process.exec so it appears the bash shell is used to run it. So I do not understand why the error message asks to use conda init when the shell is already initialized.

I cannot reproduce it on my Docker or codespace, so I would need your help in filing this as a bug on conda.

@DonJayamanne
Copy link
Contributor

so I would need your help in filing this as a bug on conda.

not sure what you need from me. Rob can replicate this. I'd suggest setting up wsl at your end and trying this, ive seen this in the past as well, probably ssh .

i think the issue is the fact that the paths aren't setup correctly, because the login she'll scripts do not run, i found that activating the base env fixed this.

@roblourens
Copy link
Member Author

I've installed the latest jupyter and python pre-release in insiders, and tried the same steps that I listed above, and now I see

  • Open vscode, open a notebook
  • Run conda create --name newConda1
  • Click the kernel picker, I don't see that env listed
debug 15:12:00.146: Detected a new conda environment, triggering a refresh
debug 15:12:01.786: Detected change in Python environments via Python API
debug 15:12:01.798: Get Active Interpreter, Class name = x (started execution), Arg 1: "~/project1"
debug 15:12:01.800: Detected change in Python environments via Python API
debug 15:12:01.808: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 9ms, has a truthy return value, , Return Value: <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.812: Get Jupyter Kernel Paths, Class name = j, completed in 14ms, has a truthy return value, Arg 1: "", Return Value: 
debug 15:12:01.812: Get Active Interpreter, Class name = x (started execution), Arg 1: "~/project1"
debug 15:12:01.815: Get KernelSpec root path, Class name = j, completed in 17ms, has a truthy return value, Arg 1: {"_isCancelled":true,"_emitter":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.815: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 2ms, has a truthy return value, , Return Value: <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.817: Get Jupyter Kernel Paths, Class name = j, completed in 4ms, has a truthy return value, Arg 1: "", Return Value: 
debug 15:12:01.819: Full interpreter list after refreshing (total 17ms, resolve 12ms, refresh 5ms) is length: 6, /bin/python3:undefined::/bin/python3:/bin/python3, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /root/project1/venv1/bin/python:venv1:Venv:/root/project1/venv1/bin/python:/root/project1/venv1/bin/python, /root/project1/venv2/bin/python:venv2:Venv:/root/project1/venv2/bin/python:/root/project1/venv2/bin/python, /root/miniconda3/bin/python:base:Conda:/root/miniconda3/bin/python:/root/miniconda3/bin/python, /root/miniconda3/envs/newConda1:newConda1:Conda::/root/miniconda3/envs/newConda1
debug 15:12:01.826: Get KernelSpec root path, Class name = j, completed in 13ms, has a truthy return value, Arg 1: {"_isCancelled":false,"_emitter":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.826: Get Active Interpreter, Class name = x, completed in 28ms, has a truthy return value, Arg 1: "~/project1", Return Value: {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.827: Python environment for /bin/python3 is /bin/python3 from Python Extension API is {"internal":{"path":"/bin/python3","id":"/bin/python3","executable":{"uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/bin/python3"} and translated is {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.827: Python environment for /usr/bin/python3 is /usr/bin/python3 from Python Extension API is {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.827: Python environment for /root/project1/venv1/bin/python is /root/project1/venv1/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv1/bin/python","id":"/root/project1/venv1/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv1"},"environment":{"type":"VirtualEnvironment","name":"venv1","folderUri":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv1/bin/python"} and translated is {"id":"/root/project1/venv1/bin/python","sysPrefix":"/root/project1/venv1","envPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"envName":"venv1","uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"displayName":"venv1","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.827: Python environment for /root/project1/venv2/bin/python is /root/project1/venv2/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv2/bin/python","id":"/root/project1/venv2/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv2"},"environment":{"type":"VirtualEnvironment","name":"venv2","folderUri":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv2/bin/python"} and translated is {"id":"/root/project1/venv2/bin/python","sysPrefix":"/root/project1/venv2","envPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"envName":"venv2","uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"displayName":"venv2","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.827: Python environment for /root/miniconda3/bin/python is /root/miniconda3/bin/python from Python Extension API is {"internal":{"path":"/root/miniconda3/bin/python","id":"/root/miniconda3/bin/python","executable":{"uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/miniconda3"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/root/miniconda3","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/root/miniconda3/bin/python"} and translated is {"id":"/root/miniconda3/bin/python","sysPrefix":"/root/miniconda3","envPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"envName":"base","uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 15:12:01.828: Get Active Interpreter, Class name = x, completed in 16ms, has a truthy return value, Arg 1: "~/project1", Return Value: {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.831: Detected change in Python environments via Python API
debug 15:12:01.845: Get Active Interpreter, Class name = x (started execution), Arg 1: "~/project1"
debug 15:12:01.848: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 2ms, has a truthy return value, , Return Value: <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.851: Get Jupyter Kernel Paths, Class name = j, completed in 5ms, has a truthy return value, Arg 1: "", Return Value: 
debug 15:12:01.853: Full interpreter list after refreshing (total 20ms, resolve 14ms, refresh 6ms) is length: 6, /bin/python3:undefined::/bin/python3:/bin/python3, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /root/project1/venv1/bin/python:venv1:Venv:/root/project1/venv1/bin/python:/root/project1/venv1/bin/python, /root/project1/venv2/bin/python:venv2:Venv:/root/project1/venv2/bin/python:/root/project1/venv2/bin/python, /root/miniconda3/bin/python:base:Conda:/root/miniconda3/bin/python:/root/miniconda3/bin/python, /root/miniconda3/envs/newConda1:newConda1:Conda::/root/miniconda3/envs/newConda1
debug 15:12:01.860: Get KernelSpec root path, Class name = j, completed in 14ms, has a truthy return value, Arg 1: {"_isCancelled":false,"_emitter":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.861: Python environment for /bin/python3 is /bin/python3 from Python Extension API is {"internal":{"path":"/bin/python3","id":"/bin/python3","executable":{"uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/bin/python3"} and translated is {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.861: Python environment for /usr/bin/python3 is /usr/bin/python3 from Python Extension API is {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.861: Python environment for /root/project1/venv1/bin/python is /root/project1/venv1/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv1/bin/python","id":"/root/project1/venv1/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv1"},"environment":{"type":"VirtualEnvironment","name":"venv1","folderUri":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv1/bin/python"} and translated is {"id":"/root/project1/venv1/bin/python","sysPrefix":"/root/project1/venv1","envPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"envName":"venv1","uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"displayName":"venv1","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.861: Python environment for /root/project1/venv2/bin/python is /root/project1/venv2/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv2/bin/python","id":"/root/project1/venv2/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv2"},"environment":{"type":"VirtualEnvironment","name":"venv2","folderUri":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv2/bin/python"} and translated is {"id":"/root/project1/venv2/bin/python","sysPrefix":"/root/project1/venv2","envPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"envName":"venv2","uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"displayName":"venv2","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.861: Python environment for /root/miniconda3/bin/python is /root/miniconda3/bin/python from Python Extension API is {"internal":{"path":"/root/miniconda3/bin/python","id":"/root/miniconda3/bin/python","executable":{"uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/miniconda3"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/root/miniconda3","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/root/miniconda3/bin/python"} and translated is {"id":"/root/miniconda3/bin/python","sysPrefix":"/root/miniconda3","envPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"envName":"base","uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 15:12:01.861: Get Active Interpreter, Class name = x, completed in 16ms, has a truthy return value, Arg 1: "~/project1", Return Value: {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.868: Detected change in Python environments via Python API
debug 15:12:01.883: Get Active Interpreter, Class name = x (started execution), Arg 1: "~/project1"
debug 15:12:01.884: Getting Jupyter KernelSpec Root Path, Class name = j, completed in 1ms, has a truthy return value, , Return Value: <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.885: Get Jupyter Kernel Paths, Class name = j, completed in 2ms, has a truthy return value, Arg 1: "", Return Value: 
debug 15:12:01.890: Full interpreter list after refreshing (total 19ms, resolve 15ms, refresh 4ms) is length: 6, /bin/python3:undefined::/bin/python3:/bin/python3, /usr/bin/python3:undefined::/usr/bin/python3:/usr/bin/python3, /root/project1/venv1/bin/python:venv1:Venv:/root/project1/venv1/bin/python:/root/project1/venv1/bin/python, /root/project1/venv2/bin/python:venv2:Venv:/root/project1/venv2/bin/python:/root/project1/venv2/bin/python, /root/miniconda3/bin/python:base:Conda:/root/miniconda3/bin/python:/root/miniconda3/bin/python, /root/miniconda3/envs/newConda1:newConda1:Conda::/root/miniconda3/envs/newConda1
debug 15:12:01.897: Get KernelSpec root path, Class name = j, completed in 14ms, has a truthy return value, Arg 1: {"_isCancelled":false,"_emitter":null}, Return Value: <Uri:/usr/share/jupyter/kernels>, <Uri:/usr/local/share/jupyter/kernels>, <Uri:/root/.local/share/jupyter/kernels>
debug 15:12:01.897: Python environment for /bin/python3 is /bin/python3 from Python Extension API is {"internal":{"path":"/bin/python3","id":"/bin/python3","executable":{"uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/bin/python3"} and translated is {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.898: Python environment for /usr/bin/python3 is /usr/bin/python3 from Python Extension API is {"internal":{"path":"/usr/bin/python3","id":"/usr/bin/python3","executable":{"uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"bitness":"64-bit","sysPrefix":"/usr"},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":[]},"id":"/usr/bin/python3"} and translated is {"id":"/usr/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/usr/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.898: Python environment for /root/project1/venv1/bin/python is /root/project1/venv1/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv1/bin/python","id":"/root/project1/venv1/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv1"},"environment":{"type":"VirtualEnvironment","name":"venv1","folderUri":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv1/bin/python"} and translated is {"id":"/root/project1/venv1/bin/python","sysPrefix":"/root/project1/venv1","envPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv1","scheme":"file"},"envName":"venv1","uri":{"$mid":1,"path":"/root/project1/venv1/bin/python","scheme":"file"},"displayName":"venv1","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.898: Python environment for /root/project1/venv2/bin/python is /root/project1/venv2/bin/python from Python Extension API is {"internal":{"path":"/root/project1/venv2/bin/python","id":"/root/project1/venv2/bin/python","executable":{"uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/project1/venv2"},"environment":{"type":"VirtualEnvironment","name":"venv2","folderUri":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"workspaceFolder":{"uri":{"$mid":1,"fsPath":"/root/project1","external":"file:///root/project1","path":"/root/project1","scheme":"file"},"name":"project1","index":0}},"version":{"major":3,"minor":10,"micro":6,"release":{"level":"final","serial":0},"sysVersion":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"},"tools":["Venv"]},"id":"/root/project1/venv2/bin/python"} and translated is {"id":"/root/project1/venv2/bin/python","sysPrefix":"/root/project1/venv2","envPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/project1/venv2","scheme":"file"},"envName":"venv2","uri":{"$mid":1,"path":"/root/project1/venv2/bin/python","scheme":"file"},"displayName":"venv2","envType":"Venv","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.898: Python environment for /root/miniconda3/bin/python is /root/miniconda3/bin/python from Python Extension API is {"internal":{"path":"/root/miniconda3/bin/python","id":"/root/miniconda3/bin/python","executable":{"uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"bitness":"64-bit","sysPrefix":"/root/miniconda3"},"environment":{"type":"Conda","name":"base","folderUri":{"$mid":1,"path":"/root/miniconda3","scheme":"file"}},"version":{"major":3,"minor":9,"micro":12,"release":{"level":"final","serial":0},"sysVersion":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"},"tools":["Conda"]},"id":"/root/miniconda3/bin/python"} and translated is {"id":"/root/miniconda3/bin/python","sysPrefix":"/root/miniconda3","envPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"displayPath":{"$mid":1,"path":"/root/miniconda3","scheme":"file"},"envName":"base","uri":{"$mid":1,"path":"/root/miniconda3/bin/python","scheme":"file"},"displayName":"base","envType":"Conda","version":{"major":3,"minor":9,"patch":12,"raw":"3.9.12 (main, Apr  5 2022, 06:56:58) \n[GCC 7.5.0]"}}
debug 15:12:01.898: Get Active Interpreter, Class name = x, completed in 15ms, has a truthy return value, Arg 1: "~/project1", Return Value: {"id":"/bin/python3","sysPrefix":"/usr","displayPath":{"$mid":1,"path":"/bin/python3","scheme":"file"},"envName":"","uri":{"$mid":1,"path":"/bin/python3","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":3,"minor":10,"patch":6,"raw":"3.10.6 (main, Aug 10 2022, 11:40:04) [GCC 11.3.0]"}}
debug 15:12:01.900: Python environment for /root/miniconda3/envs/newConda1 is /root/miniconda3/envs/newConda1 from Python Extension API is {"internal":{"path":"/root/miniconda3/envs/newConda1","id":"/root/miniconda3/envs/newConda1","executable":{"bitness":"Unknown","sysPrefix":""},"environment":{"type":"Conda","name":"newConda1","folderUri":{"$mid":1,"path":"/root/miniconda3/envs/newConda1","scheme":"file"}},"tools":["Conda"]},"id":"/root/miniconda3/envs/newConda1"} and translated is undefined
error 15:12:01.900: Failed to get env details from Python API for /root/miniconda3/envs/newConda1 without an error
debug 15:12:01.942: Python environment for /root/miniconda3/envs/newConda1 is /root/miniconda3/envs/newConda1 from Python Extension API is {"internal":{"path":"/root/miniconda3/envs/newConda1","id":"/root/miniconda3/envs/newConda1","executable":{"bitness":"Unknown","sysPrefix":""},"environment":{"type":"Conda","name":"newConda1","folderUri":{"$mid":1,"path":"/root/miniconda3/envs/newConda1","scheme":"file"}},"tools":["Conda"]},"id":"/root/miniconda3/envs/newConda1"} and translated is undefined
error 15:12:01.942: Failed to get env details from Python API for /root/miniconda3/envs/newConda1 without an error
debug 15:12:01.948: Python environment for /root/miniconda3/envs/newConda1 is /root/miniconda3/envs/newConda1 from Python Extension API is {"internal":{"path":"/root/miniconda3/envs/newConda1","id":"/root/miniconda3/envs/newConda1","executable":{"bitness":"Unknown","sysPrefix":""},"environment":{"type":"Conda","name":"newConda1","folderUri":{"$mid":1,"path":"/root/miniconda3/envs/newConda1","scheme":"file"}},"tools":["Conda"]},"id":"/root/miniconda3/envs/newConda1"} and translated is undefined
error 15:12:01.948: Failed to get env details from Python API for /root/miniconda3/envs/newConda1 without an error
debug 15:12:01.948: Full interpreter list is length: 5, /bin/python3::Unknown:/bin/python3, /usr/bin/python3::Unknown:/usr/bin/python3, /root/project1/venv1/bin/python:venv1:Venv:/root/project1/venv1/bin/python, /root/project1/venv2/bin/python:venv2:Venv:/root/project1/venv2/bin/python, /root/miniconda3/bin/python:base:Conda:/root/miniconda3/bin/python
debug 15:12:01.960: Kernel venv1-kernel matches venv1 based on path in argv.
debug 15:12:01.960: Kernel venv1-kernel2 matches venv1 based on path in argv.
debug 15:12:01.960: Kernel venv1-kernel3 matches venv1 based on path in argv.
debug 15:12:01.962: Hiding default kernel spec 'Python 3 (ipykernel)', 'pythonjvsc74a57bd06394ebacf2b7e7492d273479fb09c9c04bd570ace7fe55d5b1fd53c39b111ed3', /python

@DonJayamanne
Copy link
Contributor

Duplicate of #11855

@DonJayamanne DonJayamanne marked this as a duplicate of #11855 Dec 4, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
notebook-execution Kernels issues (start/restart/switch/execution, install ipykernel)
Projects
None yet
Development

No branches or pull requests

3 participants