Can't select interpreter nor debug
See original GitHub issueI 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:
Actual behaviour
The extension insisting that python is not installed, even though multiple versions of it are installed
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 root
→Output
, change the drop-down the upper-right of the Output
panel to Python
)
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 root
XXX
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:18
Top GitHub Comments
same problem here on Arch. just installed
electron 9.3.3
from the archiveClosing as no further info was provided.