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.

Kernels with invalid Python executables get displayed & auto selected by kernel picker

See original GitHub issue

A specific environment on my machine cannot install ipykernel.

Log looks like this:

Info 2021-03-25 14:32:35: Process Execution: > d:\Source\Testing_3\newEnv5\Scripts\python.exe c:\Users\aku91\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.4.687458533\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
> d:\Source\Testing_3\newEnv5\Scripts\python.exe c:\Users\aku91\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.4.687458533\pythonFiles\pyvsc-run-isolated.py -c "import ipykernel"
Error 2021-03-25 14:32:36: Install Missing Dependencies, Class name = v, completed in 1612ms, has a falsy return value, Return Value: undefined [a [Error]: IPyKernel not installed into interpreter Python 3.8.5  ('newEnv5': venv):d:\Source\Testing_3\newEnv5\Scripts\python.exe
	at v.installMissingDependencies (c:\Users\aku91\.vscode-insiders\extensions\ms-toolsai.jupyter-2021.4.687458533\out\client\extension.js:49:560241)
	at runMicrotasks (<anonymous>)
	at processTicksAndRejections (internal/process/task_queues.js:97:5)] {
  category: 'noipykernel',
  reason: 2
}

Looks like it’s not even asking.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
rchiodocommented, Mar 26, 2021

The python.exe is a some sort of redirecting exe. It’s not even a symlink.

0reactions
DonJayamannecommented, Mar 26, 2021

The python.exe is a some sort of redirecting exe. It’s not even a symlink.

Suggestions

  • When get get list of interpreters from Python, we can check if the information is cached or not
  • If cached, we get call getInterpreterDetails to get the details, if we get a response we know its valid
Read more comments on GitHub >

github_iconTop Results From Across the Web

Ipython notebook, how to set the correct path to kernel
I have looked into C:\ProgramData\jupyter\kernels\python2\kernel.json file and there was a wrong path set for python2. I have fixed the path ...
Read more >
October 2021 (version 1.62) - Visual Studio Code
To manage the list of kernels displayed, you can use the command Jupyter: Filter Kernels from the Command Palette. Kernel filtering via the...
Read more >
Using Python - Quarto
Overview. Quarto supports executable Python code blocks within markdown. This allows you to create fully reproducible documents and reports—the Python code ...
Read more >
The Buildroot user manual
Why are some packages not visible in the Buildroot config menu? ... configuration tool similar to the one you can find in the...
Read more >
Chapter 26. Working with GRUB 2 Red Hat Enterprise Linux 7
To find out the file name of the default kernel, enter a command as follows: ... Instead, to prevent GRUB 2 from displaying...
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