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.

Can't select interpreter nor debug

See original GitHub issue

I have searched for similar issues but there was no solution exhibited.

Environment data

  • VS Code version: 1.51.1
  • Extension version (available under the Extensions sidebar): 2020.11.358366026
  • OS and version: Windows 10 Home 64 Bit
  • Python version: 2.7, 3.86, 3.9
  • Type of virtual environment used: conda envs are also not showing

Expected behaviour

Being able to select interpreter and debug:

image

Actual behaviour

The extension insisting that python is not installed, even though multiple versions of it are installed image

image

interpreter gif

Logs

Output for User belongs to experiment group 'AlwaysDisplayTestExplorer - experiment' User belongs to experiment group 'ShowPlayIcon - start' User belongs to experiment group 'ShowExtensionSurveyPrompt - enabled' User belongs to experiment group 'DebugAdapterFactory - experiment' User belongs to experiment group 'PtvsdWheels37 - experiment' User belongs to experiment group 'UseTerminalToGetActivatedEnvVars - control' User belongs to experiment group 'AA_testing - control' User belongs to experiment group 'LocalZMQKernel - experiment' User belongs to experiment group 'CollectLSRequestTiming - control' User belongs to experiment group 'CollectNodeLSRequestTiming - experiment' User belongs to experiment group 'EnableIPyWidgets - experiment' User belongs to experiment group 'RunByLine - experiment' User belongs to experiment group 'CustomEditorSupport - control' User belongs to experiment group 'pythonaacf' > conda --version > pyenv root > python3.7 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3.6 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python2 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > py -3.7 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > python3 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > py -3.6 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > py -3 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > py -2 c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" > conda info --json Python in the Output panel (rror 2020-11-14 01:40:21: Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension. Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension. Error 2020-11-14 01:40:23: Failed to get interpreter information for 'c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe' [Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:81:21)] { errno: 'ENOENT', code: 'ENOENT', syscall: 'spawn cmd.exe', path: 'cmd.exe', spawnargs: [ '/d', '/s', '/c', '""c:\\\\Users\\Noam\\AppData\\Local\\Programs\\Python\\Python38\\python.exe" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\pyvsc-run-isolated.py" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\interpreterInfo.py""' ], cmd: '"c:\\\\Users\\Noam\\AppData\\Local\\Programs\\Python\\Python38\\python.exe" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\pyvsc-run-isolated.py" "c:\\Users\\Noam\\.vscode\\extensions\\ms-python.python-2020.11.358366026\\pythonFiles\\interpreterInfo.py"' } > pyenv root > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.prefix)" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.prefix)" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "import sys;print(sys.executable)" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())" cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py site --user-site cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py site --user-site cwd: c:\Users\Noam\Documents\Try > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\completion.py > c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\completion.py Error 2020-11-14 01:40:25: stderr jediProxy Error (stderr) c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\completion.py:584: DeprecationWarning: Deprecated since version 0.16.0. Use Script(...).get_names instead. jedi.api.names(

Error 2020-11-14 01:40:26: Failed to get interpreter information for ‘c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe’ [Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:81:21)] { errno: ‘ENOENT’, code: ‘ENOENT’, syscall: ‘spawn cmd.exe’, path: ‘cmd.exe’, spawnargs: [ ‘/d’, ‘/s’, ‘/c’, ‘““c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py””’ ], cmd: ‘“c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py”’ }

pyenv root Error 2020-11-14 01:40:27: Failed to get interpreter information for ‘c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe’ [Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:81:21)] { errno: ‘ENOENT’, code: ‘ENOENT’, syscall: ‘spawn cmd.exe’, path: ‘cmd.exe’, spawnargs: [ ‘/d’, ‘/s’, ‘/c’, ‘““c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py””’ ], cmd: ‘“c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py”’ } Error 2020-11-14 01:40:27: Failed to get interpreter information for ‘c:\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe’ [Error: spawn cmd.exe ENOENT at Process.ChildProcess._handle.onexit (internal/child_process.js:264:19) at onErrorNT (internal/child_process.js:456:16) at processTicksAndRejections (internal/process/task_queues.js:81:21)] { errno: ‘ENOENT’, code: ‘ENOENT’, syscall: ‘spawn cmd.exe’, path: ‘cmd.exe’, spawnargs: [ ‘/d’, ‘/s’, ‘/c’, ‘““c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py””’ ], cmd: ‘“c:\\Users\Noam\AppData\Local\Programs\Python\Python38\python.exe” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\pyvsc-run-isolated.py” “c:\Users\Noam\.vscode\extensions\ms-python.python-2020.11.358366026\pythonFiles\interpreterInfo.py”’ } pyenv root pyenv rootOutput, change the drop-down the upper-right of the Output panel to Python)

XXX

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:4
  • Comments:18

github_iconTop GitHub Comments

2reactions
aasmprocommented, Nov 21, 2020

same problem here on Arch. just installed electron 9.3.3 from the archive

sudo pacman -U https://archive.archlinux.org/packages/e/electron9/electron9-9.3.3-1-x86_64.pkg.tar.zst
0reactions
karrtikrcommented, Dec 16, 2020

Closing as no further info was provided.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Select Python interpreter does not work in VScode
Press F1 to open the menu. Menu · Select Python:Select Interpreter. If you don't see it, try to type it. · Select the...
Read more >
Unable to debug and select interpreter · Issue #1039 - GitHub
"command 'python.setInterpreter' not found". I've tried uninstalling and reinstalling vs code and also disabled the extensions and then checked ...
Read more >
Using Python environments in VS Code
Select and activate an environment​​ To select a specific environment, use the Python: Select Interpreter command from the Command Palette (Ctrl+Shift+P). Note: ...
Read more >
I can't select the Interpreter in Visual Studio Code
In visual studio code in windows 10, when I try to select the interpreter it flashes and I can't click on it. Can...
Read more >
Manage Python environments and interpreters - Visual Studio ...
Manually identify an existing environment · In the Python environment window, select the environment, and then select the Configure tab. · After ...
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