question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cannot choose kernels

See original GitHub issue

Issue Type: Bug

No matter which kernel I’m choosing, when I tried to run a cell it always tries to activate Python 3.8.2, and failed to activate the conda environment for some reason (this part may be due to the special set up on my server, but always activating Python even I’m specifying a Julia kernel seems like a bug).

See below for the log output:


Error 2021-03-01 23:45:45: failed to create INotebook in kernel [Error: Activating Python 3.8.2 64-bit ('base': conda) to run Jupyter failed with Error: Command failed: . activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/pyvsc-run-isolated.py /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/printEnvVariables.py

CondaEnvironmentNotFoundError: Could not find environment: base .
You can list all discoverable environments with `conda info --envs`.

.
	at S.checkUsable (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:379738)
	at async S.startServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:378279)
	at async S.createServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:377668)
	at async c.getNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:502773)
	at async m.getOrCreateNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:374795)
	at async /home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:695974]
Error 2021-03-01 23:45:45: DataScience Error [Error: Activating Python 3.8.2 64-bit ('base': conda) to run Jupyter failed with Error: Command failed: . activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/pyvsc-run-isolated.py /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/printEnvVariables.py

CondaEnvironmentNotFoundError: Could not find environment: base .
You can list all discoverable environments with `conda info --envs`.

.
	at S.checkUsable (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:379738)
	at async S.startServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:378279)
	at async S.createServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:377668)
	at async c.getNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:502773)
	at async m.getOrCreateNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:374795)
	at async /home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:695974]
Error 2021-03-01 23:45:45: failed to start INotebook in kernel [Error: Activating Python 3.8.2 64-bit ('base': conda) to run Jupyter failed with Error: Command failed: . activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/pyvsc-run-isolated.py /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/printEnvVariables.py

CondaEnvironmentNotFoundError: Could not find environment: base .
You can list all discoverable environments with `conda info --envs`.

.
	at S.checkUsable (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:379738)
	at async S.startServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:378279)
	at async S.createServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:377668)
	at async c.getNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:502773)
	at async m.getOrCreateNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:374795)
	at async /home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:695974]
Error 2021-03-01 23:45:45: Failed to execute cells in CellExecutionQueue [Error: Activating Python 3.8.2 64-bit ('base': conda) to run Jupyter failed with Error: Command failed: . activate base && echo 'e8b39361-0157-4923-80e1-22d70d46dee6' && python /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/pyvsc-run-isolated.py /home/zhiyufu/.vscode-server-insiders/extensions/ms-python.python-2021.2.582707922/pythonFiles/printEnvVariables.py

CondaEnvironmentNotFoundError: Could not find environment: base .
You can list all discoverable environments with `conda info --envs`.

.
	at S.checkUsable (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:379738)
	at async S.startServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:378279)
	at async S.createServer (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:377668)
	at async c.getNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:502773)
	at async m.getOrCreateNotebook (/home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:374795)
	at async /home/zhiyufu/.vscode-server-insiders/extensions/ms-toolsai.jupyter-2021.3.600686576/out/client/extension.js:49:695974]

Extension version: 2021.3.600686576 VS Code version: Code - Insiders 1.54.0-insider (e7989863202eac0ec4e66ca82733d968bca7527a, 2021-03-01T21:13:40.027Z) OS version: Darwin x64 20.3.0 Remote OS version: Linux x64 3.10.0-1160.6.1.el7.x86_64

System Info
Item Value
CPUs Apple M1 (8 x 2400)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
webgl: enabled
webgl2: enabled
Load (avg) 2, 3, 3
Memory (System) 16.00GB (0.02GB free)
Process Argv –crash-reporter-id 8759ecb8-1bc8-4b31-8247-a1013e757f64
Screen Reader no
VM 0%
Item Value
Remote SSH: athensx.uchicago.edu
OS Linux x64 3.10.0-1160.6.1.el7.x86_64
CPUs Intel® Xeon® CPU E7-8891 v2 @ 3.20GHz (80 x 2575)
Memory (System) 2015.58GB (348.97GB free)
VM 0%
A/B Experiments
vsliv695:30137379
vsins829:30139715
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspyt653:30253241
pythonvspyt602:30263608
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstry244:30244315
pythonvsdeb440:30224570
pythonvsded773:30223139
pythonvspyt875:30259475
pythonvsnew554:30265444
pythontb:30258533

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
FuZhiyucommented, Mar 11, 2021

@masaki9 sorry I was busy with other things last week and forgot to update, but I can confirm this bug is fixed. Thanks so much for the amazing productivity!

0reactions
DonJayamannecommented, Mar 11, 2021

Closing as validated

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot select Jupyter Python Kernel in notebook
I am using Visual Studio Code, Jupyter and Anaconda 3.8.5. I have a notebook, in that notebook I cannot select the kernel I...
Read more >
Unable to select python kernel for my .ipynb jupyter notebook ...
I'm sometimes (seems random) unable to select my python kernel. The Select Kernel options shows an empty list and I don't see any...
Read more >
Install kernels and libraries in an EMR Studio Workspace
Install Jupyter Notebook kernels and Python libraries for EMR Studio. ... EMR Studio Workspace comes with a set of pre-installed libraries and kernels....
Read more >
Recover Azure Linux VM from kernel-related boot issues
This article provides solutions to an issue in which a Linux virtual machine (VM) can't boot after applying kernel changes.
Read more >
sklearn.gaussian_process.kernels.ConstantKernel
If set to “fixed”, constant_value cannot be changed during hyperparameter tuning. Attributes: bounds. Returns the log-transformed bounds on the theta.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found