Vscode-python: Can't set Python interpreter

Created on 19 Jun 2020  Â·  11Comments  Â·  Source: microsoft/vscode-python

Issue Type: Bug

I am following the steps for installing the Python plugin. I have installed the latest Python interpreter, but when I try to select it via the "Select Python Interpreter" button, VS code refuses to acknowledge it, instead asking me to enter a path for it. When I do that it still does not believe I have provided what it wants. I can run the Python tools just fine outside of VS Code.

Extension version: 2020.6.89148
VS Code version: Code 1.46.1 (cd9ea6488829f560dc949a8b2fb789f3cdc05f5d, 2020-06-17T21:13:20.174Z)
OS version: Windows_NT x64 10.0.18363


System Info

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i9-9900X CPU @ 3.50GHz (20 x 3504)|
|GPU Status|2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled|
|Load (avg)|undefined|
|Memory (System)|63.71GB (38.17GB free)|
|Process Argv||
|Screen Reader|no|
|VM|0%|


type-bug

Most helpful comment

My issue was solved by uninstalling the extension, restarting VS Code, and installing the extension again. There were many files at /home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/ that weren't there before, including pyvsc-run-isolated.py

All 11 comments

Happened to me as well.
I am using conda, and it worked a couple days ago at the most.
Tried to set it manually in the settings file and finding the python file and didn't work either.
I am on Ubuntu Budgie 20.04.

I think I found something. In the Developer Tools log it shows:

Error Python Extension: 2020-06-20 18:04:04: Failed to get interpreter information for '/home/david/anaconda3/envs/aws/bin/python' [Error: Command failed: "/home/david/anaconda3/envs/aws/bin/python" "/home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py" "/home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/interpreterInfo.py"/home/david/anaconda3/envs/aws/bin/python: can't open file '/home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py': [Errno 2] No such file or directory   at ChildProcess.exithandler (child_process.js:308:12)   at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16)   at Socket.<anonymous> (internal/child_process.js:430:11)    at Socket.emit (events.js:203:13)   at Pipe.<anonymous> (net.js:588:12)] {  killed: false,  code: 2,  signal: null,  cmd: '"/home/david/anaconda3/envs/aws/bin/python" "/home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py" "/home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/interpreterInfo.py"'}

The /home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/pyvsc-run-isolated.py file don't exist:

ls -la /home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/
total 56
drwxrwxr-x 4 david david  4096 jun 19 11:10 .
drwxrwxr-x 6 david david  4096 jun 19 13:49 ..
-rw-r--r-- 1 david david 25916 jun 19 11:10 completion.py
-rw-r--r-- 1 david david    24 jun 19 11:10 .env
-rw-r--r-- 1 david david  2303 jun 19 11:10 install_debugpy.py
-rw-r--r-- 1 david david   292 jun 19 11:10 interpreterInfo.py
drwxrwxr-x 3 david david  4096 jun 19 11:10 lib
drwxrwxr-x 2 david david  4096 jun 19 11:10 .vscode

My issue was solved by uninstalling the extension, restarting VS Code, and installing the extension again. There were many files at /home/david/.vscode/extensions/ms-python.python-2020.6.89148/pythonFiles/ that weren't there before, including pyvsc-run-isolated.py

@citizen12 Please provide the logs mentioned in the issue template,

Logs

Output for Python in the Output panel (View→Output, change the drop-down the upper-right of the Output panel to Python)

XXX



Output from Console under the Developer Tools panel (toggle Developer Tools on under Help; turn on source maps to make any tracebacks be useful by running Enable source map support for extension debugging)

XXXX

I had a similar issue and resolved it by uninstalling/reinstalling the Python extension. Please see this issue: https://github.com/microsoft/vscode-docs/issues/3839

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 'LocalZMQKernel - control'
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 - control'
User belongs to experiment group 'CustomEditorSupport - control'

conda --version
pyenv root
python3.7 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
python3.6 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
python3 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
python2 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
python c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
py -3.7 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
py -3.6 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
py -3 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
py -2 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
c:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
conda info --json
Starting Jedi Python language engine.
Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension.

===================================================
extensionHost.ts:222 Extension Host
extensionHost.ts:223 Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: id is a21c318e-781f-4d01-a8bd-eb7302d1186d
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 2ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 2ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 1ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 0ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 0ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Create file systemwatcher with pattern *\python.exe
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Create file systemwatcher with pattern **\python.exe
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 0ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 1ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 1ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 1ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 26ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 16ms, has a truthy return value, Arg 1: , Return Value: []
2console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 14ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Register Interpreter Watcher, Class name = p, completed in 8ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 9ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 8ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 6ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Build the workspace interpreter watcher, Class name = d, completed in 12ms, has a truthy return value, Arg 1: , Return Value:
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = settings, result = exit
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: autoSelectInterpreter, Class name = f, completed in 2ms, has a falsy return value, Arg 1: , Arg 2: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Create file systemwatcher with pattern *\python.exe
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Create file systemwatcher with pattern **\python.exe
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 1ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Current value for rule system is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Current value for rule currentPath is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Current value for rule windowsRegistry is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Selected Interpreter from cachedInterpreters, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Detected refreshing of Interpreters, Class name = p, completed in 0ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters, Class name = m, completed in 38ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 5ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Selected Interpreter from windowsRegistry, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 5ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Selected Interpreter from currentPath, Nothing Selected
4console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 6ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Register Interpreter Watcher, Class name = p, completed in 5ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 6ms, has a truthy return value, Arg 1: , Return Value: []
2console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters in CacheableLocatorService, Class name = m, completed in 4ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = settings, result = exit
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: autoSelectInterpreter, Class name = f, completed in 6ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Build the workspace interpreter watcher, Class name = d, completed in 6ms, has a truthy return value, Arg 1: , Return Value:
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Get Interpreters, Class name = m, completed in 8ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Selected Interpreter from system, Nothing Selected
2console.ts:137 [Extension Host] (node:10860) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead.
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: setGlobalInterpreter, Class name = f, completed in 87ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
2console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: setGlobalInterpreter, Class name = f, completed in 84ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: setGlobalInterpreter, Class name = f, completed in 81ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = cachedInterpreters, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Executing next rule from cachedInterpreters
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = windowsRegistry, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Executing next rule from windowsRegistry
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = currentPath, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Executing next rule from currentPath
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Rule = system, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: Executing next rule from system
4console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:27: autoSelectInterpreter, Class name = f, completed in 90ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > conda --version
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > pyenv root
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > python3.7 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > python3.6 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > python3 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > python2 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > python c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > py -3.7 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > py -3.6 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > py -3 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > py -2 c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > c:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py -c "import sys;print(sys.executable)"
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = settings, result = exit
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: autoSelectInterpreter, Class name = f, completed in 126ms, has a falsy return value, Arg 1: , Arg 2: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Current value for rule system is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Current value for rule currentPath is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Current value for rule windowsRegistry is nothing
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from cachedInterpreters, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Notify locators are locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, has a falsy return value, Arg 1: {}, Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 3ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from windowsRegistry, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 4ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from currentPath, Nothing Selected
7console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 3ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = settings, result = exit
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: autoSelectInterpreter, Class name = f, completed in 5ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Cached data exists getEnvironmentVariables, tasks
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Build the workspace interpreter watcher, Class name = d, completed in 1ms, has a truthy return value, Arg 1: , Return Value:
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters, Class name = m, completed in 7ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from system, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command python3.7 and args failed
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command python3.6 and args failed
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command python2 and args failed
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: > conda info --json
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by CondaEnvFileService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by CondaEnvFileService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by CondaEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by CondaEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: setGlobalInterpreter, Class name = f, completed in 58ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
2console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: setGlobalInterpreter, Class name = f, completed in 57ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: setGlobalInterpreter, Class name = f, completed in 53ms, has a falsy return value, Arg 1: undefined, Arg 2: undefined, Return Value: false
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = cachedInterpreters, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from cachedInterpreters
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = windowsRegistry, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from windowsRegistry
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = currentPath, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from currentPath
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = system, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from system
4console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: autoSelectInterpreter, Class name = f, completed in 63ms, has a falsy return value, Arg 1: , Return Value: undefined
4console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: undefined, Return Value: []
6console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1ms, has a truthy return value, Arg 1: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters, Class name = m, completed in 1ms, has a truthy return value, Arg 1: undefined, Arg 2: undefined, Return Value: []
3console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Return Value: []
4console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters, Class name = m, completed in 2ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Return Value: []
6console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command py and args -3.7 failed as file Python 3.7 not found!

-3.8-32
-3.6-64 does not exist
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command py and args -2 failed as file Python 2 not found!

-3.8-32
-3.6-64 does not exist
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
3console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command python and args failed as file does not exist
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:28: Detection of Python Interpreter for Command python3 and args failed as file does not exist
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1375ms, has a truthy return value, Arg 1: , Arg 2: {"ignoreCache":true}, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = workspaceEnvs, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from workspaceEnvs
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: autoSelectInterpreter, Class name = f, completed in 1379ms, has a falsy return value, Arg 1: , Return Value: undefined
3console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by WorkspaceVirtualEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by VirtualEnvService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Interpreters returned by VirtualEnvService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Get Interpreters in CacheableLocatorService, Class name = m, completed in 188ms, has a truthy return value, Arg 1: , Arg 2: {"ignoreCache":true}, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Rule = workspaceEnvs, result = runNextRule
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: Executing next rule from workspaceEnvs
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:28: autoSelectInterpreter, Class name = f, completed in 191ms, has a falsy return value, Arg 1: , Return Value: undefined
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to parse interpreter information for C:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Activation Commands received undefined for shell cmd
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: getActivatedEnvironmentVariables, Class name = E, completed in 1504ms, has a falsy return value, Arg 1: undefined
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to parse interpreter information for C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by WindowsRegistryService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by WindowsRegistryService are []
5console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: false
4console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to parse interpreter information for c:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to parse interpreter information for C:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to parse interpreter information for C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python36_64\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by CurrentPathService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by CurrentPathService are []
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to get interpreter information for 'C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe' Error: Command failed: "C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) { killed: false, code: 9009, signal: null, cmd: '"C:\\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"'}
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to get interpreter information for 'C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe' Error: Command failed: "C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) { killed: false, code: 9009, signal: null, cmd: '"C:\\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"'}
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to get interpreter information for 'C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe' Error: Command failed: "C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) { killed: false, code: 9009, signal: null, cmd: '"C:\\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python3.exe" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"'}
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:29: Failed to get interpreter information for 'C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe' Error: Command failed: "C:\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py" "c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"Python was not found but can be installed from the Microsoft Store: https://go.microsoft.com/fwlink?linkID=2082640 at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) { killed: false, code: 9009, signal: null, cmd: '"C:\\Users\jamieos\AppData\Local\Microsoft\WindowsApps\python.exe" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py" "c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py"'}
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by KnownPathsService are of count 0
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Interpreters returned by KnownPathsService are []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, has a truthy return value, , Return Value: true
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: All locators have completed locating, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Cached data exists getEnvironmentVariables, tasks
7console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Get Interpreters, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:29: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:30: Failed to parse interpreter information for c:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:30: Cached data exists getEnvironmentVariables, tasks
5console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:30: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Return Value: []
2console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:30: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:30: Get Interpreters, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:30: Cached data exists getEnvironmentVariables,
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:31: Failed to parse interpreter information for c:\Users\jamieos\AppData\Local\Programs\Python\Python38-32\python.exe,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFilespyvsc-run-isolated.py,c:\Users\jamieos.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py stderr: Error in sitecustomize; set PYTHONVERBOSE for traceback:
ModuleNotFoundError: No module named 'exceptions'
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
6console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:31: Get Interpreters in CacheableLocatorService, Class name = m, completed in 0ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:31: Get Interpreters in CacheableLocatorService, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Return Value: []
console.ts:137 [Extension Host] Info Python Extension: 2020-07-04 11:55:31: Get Interpreters, Class name = m, completed in 1ms, has a truthy return value, Arg 1: , Arg 2: undefined, Return Value: []
console.ts:137 [Extension Host] Error Python Extension: 2020-07-04 11:55:31: Diagnostic Code: NoPythonInterpretersDiagnostic, Message: Python is not installed. Please download and install Python before using the extension.
t.log @ console.ts:137
$logExtensionHostMessage @ mainThreadConsole.ts:39
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166
notificationsAlerts.ts:40 Python is not installed. Please download and install Python before using the extension.
onDidChangeNotification @ notificationsAlerts.ts:40
(anonymous) @ notificationsAlerts.ts:26
fire @ event.ts:587
addNotification @ notifications.ts:207
notify @ notificationService.ts:106
(anonymous) @ mainThreadMessageService.ts:83
_showMessage @ mainThreadMessageService.ts:44
$showMessage @ mainThreadMessageService.ts:38
_doInvokeHandler @ rpcProtocol.ts:402
_invokeHandler @ rpcProtocol.ts:387
_receiveRequest @ rpcProtocol.ts:303
_receiveOneMessage @ rpcProtocol.ts:230
(anonymous) @ rpcProtocol.ts:105
fire @ event.ts:587
fire @ ipc.net.ts:453
_receiveMessage @ ipc.net.ts:733
(anonymous) @ ipc.net.ts:592
fire @ event.ts:587
acceptChunk @ ipc.net.ts:239
(anonymous) @ ipc.net.ts:200
t @ ipc.net.ts:28
emit @ events.js:203
addChunk @ _stream_readable.js:295
readableAddChunk @ _stream_readable.js:276
Readable.push @ _stream_readable.js:210
onStreamRead @ internal/stream_base_commons.js:166

I had a similar issue on:

  • VS Code 1.47.0 (user setup):
  • Commit: d5e9aa0227e057a60c82568bf31c04730dc15dcd
  • Date: 2020-07-09T08:02:06.629Z (3 days ago)
  • Electron: 7.3.2
  • Chrome: 78.0.3904.130
  • Node.js: 12.8.1
  • V8: 7.8.279.23-electron.0
  • OS: Windows_NT x64 10.0.18362

vscode-python was version v2020.6.91350, and my Python was 3.8.3.

I did the following, which solved the problem:

  1. Uninstalled the Python extension and closed VS Code
  2. Deleted the C:\Users\<username>\.vscode\extensions\ms-python.python-2020.6.91350 dir
  3. Reinstalled the Python extension

Tried your solution, @pastelmind . Still not working for me.

@citizen12 Can you try running these command outside of vscode?

<python path> c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\pyvsc-run-isolated.py  c:\Users\jamieos\.vscode\extensions\ms-python.python-2020.6.91350\pythonFiles\interpreterInfo.py
echo Exit Code is %errorlevel%

You should get this output:

C:\Users\Karthik Nadig\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles>C:\all_pys\Python38\python.exe pyvsc-run-isolated.py interpreterInfo.py
{"versionInfo": [3, 8, 3, "final", 0], "sysPrefix": "C:\\all_pys\\Python38", "version": "3.8.3 (tags/v3.8.3:6f8c832, May 13 2020, 22:37:02) [MSC v.1924 64 bit (AMD64)]", "is64Bit": true}

C:\Users\Karthik Nadig\.vscode\extensions\ms-python.python-2020.7.96456\pythonFiles>echo Exit Code is %errorlevel%
Exit Code is 0

This just happened to me tonight. I first tried removing and recreating my conda environment without any success. After that I uninstalled and re-installed the python extenson in VS Code and everything started working again.

I found that my PYTHONPATH was being overridden by the administrator. Once I disabled the automatic override everything worked fine.

Was this page helpful?
0 / 5 - 0 ratings