Closed marceloprates closed 2 weeks ago
I have similar issue but i didn't use conda. I only installed Jupyter extension.
I get this kind of problem when I try to restart a notebook on vscode, but when I run jupyter notebooks outside vscode there are no such issues.
19:00:35.575 [error] Failed to get activated conda env vars for ~/anaconda3/envs/main/bin/python in 60050ms 19:00:35.578 [error] Unable to determine site packages path for python ~/anaconda3/envs/main/bin/python (Conda)
9:30:22.336 [info] Starting Kernel (Python Path: ~/anaconda3/envs/main/bin/python, Conda, 3.10.15) for 'Untitled-1.ipynb' (disableUI=true) 19:31:23.503 [error] Failed to get activated conda env vars for ~/anaconda3/envs/main/bin/python in 61182ms 19:31:23.506 [error] Unable to determine site packages path for python ~/anaconda3/envs/main/bin/python (Conda) 19:31:23.538 [info] Process Execution: ~/anaconda3/envs/main/bin/python -m pip list 19:31:23.541 [error] Failed to get activated conda env vars for ~/anaconda3/envs/main/bin/python in 61187ms 19:31:23.542 [error] Unable to determine site packages path for python ~/anaconda3/envs/main/bin/python (Conda) 19:31:23.562 [info] Process Execution: ~/anaconda3/envs/main/bin/python -c "import ipykernel; print(ipykernel.version); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.file)" 19:31:23.606 [info] Process Execution: ~/anaconda3/envs/main/bin/python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v3278984fd0d116ba3daf746488b29f3c1e510165f.json
cwd: /home/~ 19:31:24.339 [info] Kernel successfully started
@wyatt-wong @marceloprates I'm sorry you are running into this issue.
19:31:23.503 [error] Failed to get activated conda env vars for ~/anaconda3/envs/main/bin/python in 61182ms
Looks like there's a failure to get the activated environment variables for the Conda environment. This seems to be an issue coming from the Python extension.
Please could you enable logging as follows:
Jupyter->Logging
trace
Developer: Set Log Level
and then select Trace
Jupyter
output panel (use the command Jupyter: Show Output
to get to the logs).Python
output panel (use the command Python: Show Output
to get to the logs).This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Does this issue occur when all extensions are disabled?: Yes
VS Code Version: 1.94.2
OS Version: Ubuntu 22.04.5 LTS
Conda 24.5.0
Loading jupyter kernels started taking too long (>10s).
I already checked and the problem doesn't seem to be related to jupyter itself, since kernels take about 1 second to run using jupyter outside vscode
It also doesn't seem to be related with anaconda (I reinstalled it, tested different environments)
It also takes too long to load venv environments, but loads the default python version (/usr/bin/python) very fast
Steps to Reproduce: