microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.28k stars 1.17k forks source link

pyenv does not work with tests #6857

Closed caleb15 closed 4 years ago

caleb15 commented 5 years ago

Environment data

Version: 1.36.1
Commit: 2213894ea0415ee8c85c5eea0d0ff81ecc191529
Date: 2019-07-08T22:55:08.091Z
Electron: 4.2.5
Chrome: 69.0.3497.128
Node.js: 10.11.0
V8: 6.9.427.31-electron.0
OS: Linux x64 4.18.0-25-generic snap

Expected behaviour

When hardcoding the python path to /home/user/.pyenv/shims/python3 that python should be used.

The above path is python version 3.7.4:

➞  pyenv versions                                                                                                                     
* system (set by /home/caleb/.pyenv/version)
  3.6.4

➞  python3 --version                                                                                                                  
Python 3.7.4

➞  which python3                                                                                                                      
/home/caleb/.pyenv/shims/python3

Actual behaviour

It's used in the terminal

❯ python --version                                                                                                          
Python 3.7.4

But when running tests /usr/bin/python3 is used instead:

python /home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/run_adapter.py discover pytest -- -s --cache-clear Test Discovery failed: Error: ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-5.0.1, py-1.8.0, pluggy-0.12.0

Steps to reproduce:

  1. Install pyenv via brew
  2. In your settings add "python.pythonPath": "/home/user/.pyenv/shims/python3",. Replace user with your user.
  3. Open up the terminal - it should be the expected version
  4. Try discovering tests with a test that imports a module only in /home/user/.pyenv/shims/python3 -
  5. expected result: tests discovered. Actual result: failure due to wrong version python being used

Logs

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

User belongs to experiment group 'ShowPlayIcon - control'
Starting Jedi Python language engine.
##########Linting Output - flake8##########
##########Linting Output - flake8##########
11,1,E,E402:module level import not at top of file
##########Linting Output - flake8##########
25,1,E,E303:too many blank lines (3)

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)

Console Logs [Extension Host] debugger listening on port 12865 console.ts:134 [Extension Host] (node:22953) [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:134 $logExtensionHostMessage @ mainThreadConsole.ts:38 _doInvokeHandler @ rpcProtocol.ts:394 _invokeHandler @ rpcProtocol.ts:379 _receiveRequest @ rpcProtocol.ts:299 _receiveOneMessage @ rpcProtocol.ts:226 _protocol.onMessage.e @ rpcProtocol.ts:101 fire @ event.ts:558 a @ ipc.net.ts:421 e @ ipc.net.ts:428 fire @ event.ts:558 _receiveMessage @ ipc.net.ts:715 S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578 fire @ event.ts:558 acceptChunk @ ipc.net.ts:236 _register._socket.onData.e @ ipc.net.ts:197 t @ ipc.net.ts:28 emit @ events.js:182 addChunk @ _stream_readable.js:283 readableAddChunk @ _stream_readable.js:264 Readable.push @ _stream_readable.js:219 onStreamRead @ internal/stream_base_commons.js:94 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Create file systemwatcher with pattern */python console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Create file systemwatcher with pattern */*/python console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Register Intepreter Watcher, Class name = p, completed in 4ms, Arg 1: , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Build the workspace interpreter watcher, Class name = h, completed in 5ms, Arg 1: , Return Value: console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detection of Python Interpreter for Command python3.7 and args failed console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by CondaEnvFileService are of count 0 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by PipEnvService are of count 0 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = settings, result = runNextRule console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from settings console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Cached data exists getEnvironmentVariables, console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by CondaEnvService are of count 0 3console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by PipEnvService are of count 0 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by KnownPathsService are of count 10 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by CurrentPathService are of count 5 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from workspaceEnvs, Nothing Selected console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = workspaceEnvs, result = runNextRule console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from workspaceEnvs console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by VirtualEnvService are of count 3 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule windowsRegistry is nothing console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: setGlobalInterpreter, Class name = f, completed in 3ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: , Return Value: true console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = cachedInterpreters, result = exit console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 5ms, Arg 1: , Arg 2: , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 107ms, Arg 1: , Arg 2: , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 108ms, Arg 1: , Arg 2: , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = windowsRegistry, result = runNextRule console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from windowsRegistry console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = settings, result = runNextRule console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from settings console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Build the workspace interpreter watcher, Class name = h, completed in 6ms, Arg 1: , Return Value: console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy 2console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 12ms, Arg 1: , Return Value: undefined console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking support of .NET, Class name = c, completed in 1ms, , Return Value: true console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_shas.py console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule windowsRegistry is nothing console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} console.ts:134 [Extension Host] Error Python Extension: 2019-08-05 13:59:28: Failed to check if file needs to be fixed { [Error: ENOENT: no such file or directory, open '/home/caleb/Documents/fifteen5-deploy/.vscode/settings.json'] errno: -2, code: 'ENOENT', syscall: 'open', path: '/home/caleb/Documents/fifteen5-deploy/.vscode/settings.json' } t.log @ console.ts:134 $logExtensionHostMessage @ mainThreadConsole.ts:38 _doInvokeHandler @ rpcProtocol.ts:394 _invokeHandler @ rpcProtocol.ts:379 _receiveRequest @ rpcProtocol.ts:299 _receiveOneMessage @ rpcProtocol.ts:226 _protocol.onMessage.e @ rpcProtocol.ts:101 fire @ event.ts:558 a @ ipc.net.ts:421 e @ ipc.net.ts:428 fire @ event.ts:558 _receiveMessage @ ipc.net.ts:715 S._socketDisposables.push._socketReader.onMessage.e @ ipc.net.ts:578 fire @ event.ts:558 acceptChunk @ ipc.net.ts:236 _register._socket.onData.e @ ipc.net.ts:197 t @ ipc.net.ts:28 emit @ events.js:182 addChunk @ _stream_readable.js:283 readableAddChunk @ _stream_readable.js:264 Readable.push @ _stream_readable.js:219 onStreamRead @ internal/stream_base_commons.js:94 console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Activation Commands received undefined for shell bash /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: getActivatedEnvironmentVariables, Class name = b, completed in 20ms, Arg 1: , Arg 2: undefined, Arg 3: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by PipEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: setGlobalInterpreter, Class name = f, completed in 42ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: setGlobalInterpreter, Class name = f, completed in 40ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: setGlobalInterpreter, Class name = f, completed in 36ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = currentPath, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from currentPath /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = cachedInterpreters, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from cachedInterpreters /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = system, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from system /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false 3/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 59ms, Arg 1: , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: All locators have completed locating, Class name = p, completed in 1ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from workspaceEnvs, Nothing Selected /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = workspaceEnvs, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from workspaceEnvs /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: autoSelectInterpreter, Class name = f, completed in 61ms, Arg 1: , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Error Python Extension: 2019-08-05 13:59:29: Failed to parse discovered Test [Error: ============================= test session starts ==============================platform linux -- Python 3.6.8, pytest-5.0.1, py-1.8.0, pluggy-0.12.0rootdir: /home/caleb/Documents/fifteen5-deploycollected 30 items / 10 errors / 20 selected ==================================== ERRORS ====================================___________________ ERROR collecting library/common_test.py ____________________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/common_test.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'___________ ERROR collecting library/test_django_migration_check.py ____________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/test_django_migration_check.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/test_django_migration_check.py:8: in from common_test import mock_module_helper, set_module_args, AnsibleExitJsonlibrary/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'________________ ERROR collecting library/test_get_datetime.py _________________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/test_get_datetime.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/test_get_datetime.py:3: in from common_test import mock_module_helper, set_module_args, AnsibleExitJsonlibrary/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'___________ ERROR collecting library/test_get_datetime_difference.py ___________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/test_get_datetime_difference.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/test_get_datetime_difference.py:3: in from common_test import mock_module_helper, set_module_args, AnsibleExitJsonlibrary/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'_____________ ERROR collecting library/test_maintenance_warning.py _____________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/test_maintenance_warning.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/test_maintenance_warning.py:4: in from common_test import mock_module_helper, set_module_args, AnsibleExitJsonlibrary/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'________ ERROR collecting library/test_send_git_sha_to_elasticsearch.py ________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/test_send_git_sha_to_elasticsearch.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:library/test_send_git_sha_to_elasticsearch.py:3: in from common_test import mock_module_helper, set_module_args, AnsibleExitJsonlibrary/common_test.py:3: in from ansible.compat.tests.mock import patchE ModuleNotFoundError: No module named 'ansible'____________ ERROR collecting roles/release-notes/files/test_prs.py ____________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_prs.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:roles/release-notes/files/test_prs.py:3: in from pytest_mock import MockFixtureE ModuleNotFoundError: No module named 'pytest_mock'_______ ERROR collecting roles/release-notes/files/test_release_notes.py _______ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_release_notes.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:roles/release-notes/files/test_release_notes.py:1: in import release_notesroles/release-notes/files/release_notes.py:10: in from elasticsearch_publish import publishroles/release-notes/files/elasticsearch_publish.py:1: in import elasticsearchE ModuleNotFoundError: No module named 'elasticsearch'___________ ERROR collecting roles/release-notes/files/test_shas.py ____________ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_shas.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:roles/release-notes/files/test_shas.py:6: in from git import RepoE ModuleNotFoundError: No module named 'git'______ ERROR collecting roles/release-notes/files/test_ticket_labeler.py _______ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_ticket_labeler.py'.Hint: make sure your test modules/packages have valid Python names.Traceback:roles/release-notes/files/test_ticket_labeler.py:1: in from ticket_labeler import TicketLabelerroles/release-notes/files/ticket_labeler.py:5: in import github3E ModuleNotFoundError: No module named 'github3'!!!!!!!!!!!!!!!!!!! Interrupted: 10 errors during collection !!!!!!!!!!!!!!!!!!!=========================== 10 error in 0.35 seconds ===========================Traceback (most recent call last): File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/run_adapter.py", line 16, in main(tool, cmd, subargs, toolargs) File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main parents, result = run(toolargs, **subargs) File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover raise Exception('pytest discovery failed (exit code {})'.format(ec))Exception: pytest discovery failed (exit code 2) at ChildProcess.module.exports.exec.c.once (/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/out/client/extension.js:9:37440) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)] t.log @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 $logExtensionHostMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3240 _doInvokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _invokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _receiveRequest @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3322 _receiveOneMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3321 _protocol.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3319 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 a @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 _receiveMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:331 S._socketDisposables.push._socketReader.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:328 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 acceptChunk @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:325 _register._socket.onData.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:324 t @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:333 emit @ events.js:182 addChunk @ _stream_readable.js:283 readableAddChunk @ _stream_readable.js:264 Readable.push @ _stream_readable.js:219 onStreamRead @ internal/stream_base_commons.js:94 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2393 Test framework pytest is not installed. Install? onDidNotificationChange @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2393 _register.model.onDidNotificationChange.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2393 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 addNotification @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:2450 notify @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3680 r @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3286 _showMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3285 $showMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3285 _doInvokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _invokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _receiveRequest @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3322 _receiveOneMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3321 _protocol.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3319 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 a @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 _receiveMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:331 S._socketDisposables.push._socketReader.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:328 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 acceptChunk @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:325 _register._socket.onData.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:324 t @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:333 emit @ events.js:182 addChunk @ _stream_readable.js:283 readableAddChunk @ _stream_readable.js:264 Readable.push @ _stream_readable.js:219 onStreamRead @ internal/stream_base_commons.js:94 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Python Extension: displayDiscoverStatus Error: ============================= test session starts ============================== platform linux -- Python 3.6.8, pytest-5.0.1, py-1.8.0, pluggy-0.12.0 rootdir: /home/caleb/Documents/fifteen5-deploy collected 30 items / 10 errors / 20 selected ==================================== ERRORS ==================================== ___________________ ERROR collecting library/common_test.py ____________________ ImportError while importing test module '/home/caleb/Documents/fifteen5-deploy/library/common_test.py'. Hint: make sure your test modules/packages have valid Python names. Traceback: library/common_test.py:3: in from ansible.compat.tests.mock import patch E ModuleNotFoundError: No module named 'ansible' !!!!!!!!!!!!!!!!!!! Interrupted: 1 errors during collection !!!!!!!!!!!!!!!!!!! =========================== 1 error in 0.35 seconds =========================== Traceback (most recent call last): File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/run_adapter.py", line 16, in main(tool, cmd, subargs, toolargs) File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/adapter/__main__.py", line 90, in main parents, result = run(toolargs, **subargs) File "/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/pythonFiles/testing_tools/adapter/pytest/_discovery.py", line 34, in discover raise Exception('pytest discovery failed (exit code {})'.format(ec)) Exception: pytest discovery failed (exit code 2) at ChildProcess.module.exports.exec.c.once (/home/caleb/.vscode/extensions/ms-python.python-2019.6.24221/out/client/extension.js:9:37440) at Object.onceWrapper (events.js:273:13) at ChildProcess.emit (events.js:182:13) at maybeClose (internal/child_process.js:962:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5) t.log @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 $logExtensionHostMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3240 _doInvokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _invokeHandler @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3324 _receiveRequest @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3322 _receiveOneMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3321 _protocol.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:3319 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 a @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:322 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 _receiveMessage @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:331 S._socketDisposables.push._socketReader.onMessage.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:328 fire @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:79 acceptChunk @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:325 _register._socket.onData.e @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:324 t @ /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:333 emit @ events.js:182 addChunk @ _stream_readable.js:283 readableAddChunk @ _stream_readable.js:264 Readable.push @ _stream_readable.js:219 onStreamRead @ internal/stream_base_commons.js:94 6/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Cached data exists getEnvironmentVariables, /home/caleb/Documents/fifteen5-deploy/roles/release-notes/files/test_shas.py /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = settings, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from settings /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 1ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by PipEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by WorkspaceVirtualEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from workspaceEnvs, Nothing Selected /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = workspaceEnvs, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from workspaceEnvs /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule windowsRegistry is nothing /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: setGlobalInterpreter, Class name = f, completed in 8ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: , Return Value: true /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = cachedInterpreters, result = exit /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 18ms, Arg 1: undefined, Arg 2: , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 33ms, Arg 1: undefined, Arg 2: , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 34ms, Arg 1: undefined, Arg 2: , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 1ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 0ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = windowsRegistry, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from windowsRegistry /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = settings, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from settings /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Shell path from user settings 'null' /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Shell path '/usr/bin/zsh' /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Shell path identified as shell 'zsh' /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Shell path from user env '/usr/bin/zsh' /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Shell identified as 'zsh' 2/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Cached data exists getEnvironmentVariables, 2/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 5ms, Arg 1: undefined, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Cached data exists getEnvironmentVariables, /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from currentPath, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 1ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Create file systemwatcher with pattern */python /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Create file systemwatcher with pattern */*/python /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Display locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Notify locators are locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Detected refreshing of Interpreters, Class name = p, completed in 2ms, Arg 1: {}, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Register Intepreter Watcher, Class name = p, completed in 2ms, Arg 1: undefined, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Build the workspace interpreter watcher, Class name = h, completed in 4ms, Arg 1: undefined, Return Value: /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from system, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Current value for rule windowsRegistry is nothing /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"} /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by PipEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: setGlobalInterpreter, Class name = f, completed in 27ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: setGlobalInterpreter, Class name = f, completed in 14ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: setGlobalInterpreter, Class name = f, completed in 13ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: undefined, Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = currentPath, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from currentPath /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = system, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from system /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = cachedInterpreters, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from cachedInterpreters /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false 3/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 62ms, Arg 1: undefined, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by PipEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by WorkspaceVirtualEnvService are of count 0 2/snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Selected Interpreter from workspaceEnvs, Nothing Selected /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Rule = workspaceEnvs, result = runNextRule /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Executing next rule from workspaceEnvs /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: autoSelectInterpreter, Class name = f, completed in 81ms, Arg 1: undefined, Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Interpreters returned by WorkspaceVirtualEnvService are of count 0 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:29: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 13:59:30: Current value for rule workspaceEnvs is nothing /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 14:01:40: Cached data exists getEnvironmentVariables, extension-output-#5 /snap/code/11/usr/share/code/resources/app/out/vs/workbench/workbench.main.js:240 [Extension Host] Info Python Extension: 2019-08-05 14:01:40: Cached data exists getEnvironmentVariables, Untitled-1
caleb15 commented 5 years ago

Also of note is that in the version bar at the bottom of VSCode it incorrectly shows the version as Python 3.6.8 64-bit ('.pyenv': pyenv)

caleb15 commented 5 years ago

And because there is huge amount of logs in the console logs here is what probably is the relevant section:

Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by CondaEnvService are of count 0
3console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: false
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by PipEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by KnownPathsService are of count 10
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by CurrentPathService are of count 5
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by WorkspaceVirtualEnvService are of count 0
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from workspaceEnvs, Nothing Selected
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = workspaceEnvs, result = runNextRule
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Executing next rule from workspaceEnvs
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Interpreters returned by VirtualEnvService are of count 3
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Checking whether locactors have completed locating, Class name = p, completed in 0ms, , Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Hide locator refreshing progress, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: All locators have completed locating, Class name = p, completed in 0ms, , Return Value: undefined
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule system is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown","displayName":"Python 3.6.8 64-bit"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule currentPath is {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Current value for rule windowsRegistry is nothing
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Selected Interpreter from cachedInterpreters, {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: setGlobalInterpreter, Class name = f, completed in 3ms, Arg 1: {"architecture":3,"path":"/usr/bin/python3","version":{"raw":"3.6.8-final","major":3,"minor":6,"patch":8,"prerelease":["final"],"build":[],"version":"3.6.8-final"},"sysPrefix":"/usr","fileHash":"4a74d3903c79a87b08f6001fa9ddf5e137a75d73a7101d8ee065fde1ca21121093865ee842472e19ae3df71190085628c87b338c637cbb852aa15b6413b29383","type":"Unknown"}, Arg 2: <argument cannot be serialized for logging>, Return Value: true
console.ts:134 [Extension Host] Info Python Extension: 2019-08-05 13:59:28: Rule = cachedInterpreters, result = exit
console.ts:134 [Extension Host] 

As you can see above somehow it chooses /usr/bin/python3 as the python path

DonJayamanne commented 5 years ago

Please run the following in your terminal and let me know what you get:

> which python
> which python3
> python3 --version
> /home/caleb/.pyenv/shims/python3 -c "import sys;print(sys.executabale)"
> /home/caleb/.pyenv/shims/python3 ---version

Please ensure you run this in the same instance of shell.

caleb15 commented 5 years ago

The results are the following:

python: aliased to python3
/home/caleb/.pyenv/shims/python3
Python 3.6.4
/home/caleb/.pyenv/versions/3.6.4/bin/python3
Python 3.6.4
DonJayamanne commented 5 years ago

Looks like you have a funky setup. If you go back to your original issue post and have a look at the Expected behaviour , then python3 --version prints out Python 3.7.4, however in the previous comment its printing 3.6.4.

Please double check your environment, its obvious something isn't right at your end. As python3 --version is returning different values at different points in time.

caleb15 commented 5 years ago

If you go back to your original issue post and have a look at the Expected behaviour , then python3 --version prints out Python 3.7.4, however in the previous comment its printing 3.6.4.

That's because in the expected behavior section I'm not in my virtual directory.

caleb15 commented 5 years ago

If I run outside my virtual directory the results are:

python: aliased to python3
/home/caleb/.pyenv/shims/python3
Python 3.7.4
/home/linuxbrew/.linuxbrew/opt/python/bin/python3.7
Python 3.7.4
DonJayamanne commented 4 years ago

If I run outside my virtual directory the results are:

I'm confused. In the section above you have indicated this isn't in a virtual environment.

Type of virtual environment used (N/A | venv | virtualenv | conda | ...): N/A

Are you mixing the two of pyenv and virtual envs ? Sorry for asking these questions, however I'm confused with your setup.

Please note, if the terminal returns Python 3.6.4 (thats out side of control of the extension), then the extension will also get the same information. I.e. the extension is returning the same information you get when you're in a terminal.

As you've mentioned If I run outside my virtual directory the results are:, this leads me to believe that you are manually running some steps (to activate the environment in the terminal), and the extension is not seeing this environment as its not configured as a global setup.

If this is the case, unfortunately we do not support such a setup. Please ensure it is configured as a global/default environment so the shim is detected globally, without having to activate it every time. I believe this is necessary in the case of pyenv due to the way the shims are dynamically pointed to different executables.

brettcannon commented 4 years ago

Because we have not heard back with the information we requested, we are closing this issue for now. If you are able to provide the info later on then we will be happy to re-open this issue to pick up where we left off.