vscode-python: Unable to set Python Interpreter - Error command 'python.setInterpreter' not found
Environment data
VS Code version: Version 1.20.0-insider (1.20.0-insider), f4ed56b0d61050f6a94cfa033a058fabfdc0d651 Python Extension version: 0.9.1 Python Version: 2.7.10 OS and version: OSX 10.12.6
Actual behavior
Pressing Command + Shift + P, and then selecting the “Python: Select Interpreter” command
Error message appears at top:
Error command 'python.setInterpreter' not found

Expected behavior
The “Python: Select Interpreter” should allow you to pick a Python interpreter, rather than returning an error message.
Steps to reproduce:
- Start up VS Code.
- Press Command + Shift + P
- Type in “python select”, then select the first result (“Python: Select Interpreter”)
Logs
Output from Python
output panel
I’m not sure where this Python output panel is?
Output from Console window
(Help->Developer Tools menu)
workbench.main.js:sourcemap:2618 [Extension Host] debugger listening on port 9334
workbench.main.js:sourcemap:2616 [Extension Host] debugger inspector at %cDebugger listening on port 9334.
Warning: This is an experimental feature and could change at any time.
To start debugging, open the following URL in Chrome:
chrome-devtools://devtools/bundled/inspector.html?experiments=true&v8only=true&ws=127.0.0.1:9334/518ad386-7993-4474-a42e-82c7566ba4da
workbench.main.js:sourcemap:253 [Extension Host] Activating extension `ms-python.python` failed: Cannot find module '/Users/victorhooi/.vscode-insiders/extensions/ms-python.python-0.9.1/out/client/extension'. (at Object.showMessage (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:508:200))
t.log @ workbench.main.js:sourcemap:253
workbench.main.js:sourcemap:253 [Extension Host] Activating extension `ms-python.python` failed: Cannot find module '/Users/victorhooi/.vscode-insiders/extensions/ms-python.python-0.9.1/out/client/extension' (at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:293:87)
t.log @ workbench.main.js:sourcemap:253
workbench.main.js:sourcemap:253 [Extension Host] Here is the error stack: Error: Cannot find module '/Users/victorhooi/.vscode-insiders/extensions/ms-python.python-0.9.1/out/client/extension'
at Function.Module._resolveFilename (module.js:470:15)
at Function.Module._load (module.js:418:25)
at Function.J.Y.t.getExtensionPathIndex.then.o._load (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:490:787)
at Module.require (module.js:498:17)
at require (internal/module.js:20:19)
at Function.a [as __$__nodeRequire] (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/loader.js:31:863)
at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:511:186
at t._doActivateExtension (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:511:298)
at t._activateExtension (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:510:233)
at Object.actualActivateExtension (/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:508:332) (at /Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/out/vs/workbench/node/extensionHostProcess.js:293:155)
workbench.main.js:sourcemap:4118 Activating extension `ms-python.python` failed: Cannot find module '/Users/victorhooi/.vscode-insiders/extensions/ms-python.python-0.9.1/out/client/extension'.
t._logMessageInConsole @ workbench.main.js:sourcemap:4118
workbench.main.js:sourcemap:2821 command 'python.setInterpreter' not found
e.doShow @ workbench.main.js:sourcemap:2821
workbench.main.js:sourcemap:1248 INFO Requested uninstalling the extension ms-python.python from window 3
workbench.main.js:sourcemap:1248 INFO Uninstalling the extension ms-python.python-0.9.1 from window 3
workbench.main.js:sourcemap:1248 INFO showMessageBox begin: Object {message: "Are you sure you want to uninstall 'Python'?", buttons: Array(2), type: "question", cancelId: 1, noLink: true…}
workbench.main.js:sourcemap:1248 INFO showMessageBox closed, response: Object {button: 0, checkboxChecked: false}
workbench.main.js:sourcemap:2821 command 'python.setInterpreter' not found
e.doShow @ workbench.main.js:sourcemap:2821
e.show @ workbench.main.js:sourcemap:2820
e.resume @ workbench.main.js:sourcemap:2820
(anonymous) @ workbench.main.js:sourcemap:4505
e.fire @ workbench.main.js:sourcemap:160
(anonymous) @ workbench.main.js:sourcemap:3292
I have tried uninstalling and reinstalling both VSCode Insiders, as well as the Python extension.
I saw this similar issue - https://github.com/DonJayamanne/pythonVSCode/issues/1394 - but reinstalling didn’t fix it in this instance, and no explanation was given on that issue of the underlying issue.
About this issue
- Original URL
- State: closed
- Created 6 years ago
- Comments: 16 (3 by maintainers)
I am on windows machine, I upgraded to the latest version and this problem started to appear.
I uninstalled all other extensions except python and when I am pressing Ctrl + Shift + P, and then selecting the “Python: Select Interpreter” command
I get: Error command ‘python.setInterpreter’ not found