microsoft / vscode-python

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

getActiveEnvironmentPath & resolveEnvironment fails to return the active environment information #20147

Closed DonJayamanne closed 2 years ago

DonJayamanne commented 2 years ago

I've run into this issue a few times on our Windows CI, basically the activeInterpreter is undefined

Here's the code

const envPath = api.environments.getActiveEnvironmentPath(resource);
traceInfoIfCI(`Active Environment Path for ${getDisplayPath(resource)} is ${JSON.stringify(envPath)}`);
const env = await api.environments.resolveEnvironment(envPath);
traceInfoIfCI(`Resolved Active Environment for ${getDisplayPath(resource)} is ${JSON.stringify(env)}`);

& here's the output from our CI

 Active Interpreter in Python API for resource 'd:\a\vscode-jupyter\vscode-jupyter\src\test\datascience' is c:\hostedtoolcache\windows\Python\3.10.8\x64\python.exe, EnvType: Unknown, EnvName: '', Version: undefined
2022-11-02T22:06:48.1369632Z verbose 22:06:47.985:  Get Active Interpreter, Class name = InterpreterService, completed in 211ms, has a truthy return value, Arg 1: "/D:/a/vscode-jupyter/vscode-jupyter/src/test/datascience", Return Value: {"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","uri":{"$mid":1,"fsPath":"c:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe","_sep":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1}}
2022-11-02T22:06:48.1861193Z info 22:06:47.986:  Resolved Active Environment for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is {"internal":{"path":"C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe","id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"bitness":"Unknown","sysPrefix":""},"version":{"major":-1,"minor":-1,"micro":-1,"release":{"level":"final","serial":-1}},"tools":[]},"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE"}

Here are the logs from the Python extension I guess the most interesting part is Error: python -c "import sys;print(sys.executable)" resulted in empty stdout

Click me ``` [DEBUG 2022-10-2 22:6:15.469]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.473]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.475]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.475]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.477]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.477]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.486]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.486]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.487]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.487]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.519]: Waiting for test server to start... LSP Notebooks experiment is disabled -- not using Pylance LSP Notebooks interactive window support is disabled -- not in LSP Notebooks experiment [INFO 2022-10-2 22:6:15.528]: [ 'Display locator refreshing progress, Class name = g, completed in 1ms, has a falsy return value, , Return Value: undefined' ] [DEBUG 2022-10-2 22:6:15.536]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.537]: Searching for conda. [DEBUG 2022-10-2 22:6:15.540]: Probing conda binary: conda [DEBUG 2022-10-2 22:6:15.548]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.548]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:15.554]: Test server started. [DEBUG 2022-10-2 22:6:15.554]: Testing: Setting up watcher for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience [DEBUG 2022-10-2 22:6:15.626]: Searching for workspace virtual envs in: d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience > conda info --json [DEBUG 2022-10-2 22:6:15.744]: Failed to spawn conda binary conda [Error: spawn conda ENOENT at ChildProcess._handle.onexit (node:internal/child_process:283:19) at onErrorNT (node:internal/child_process:478:16) at process.processTicksAndRejections (node:internal/process/task_queues:83:21)] { errno: -4058, code: 'ENOENT', syscall: 'spawn conda', path: 'conda', spawnargs: [ 'info', '--json' ] } [DEBUG 2022-10-2 22:6:25.57]: Extension ms-python.isort accessed onDidChangeActiveEnvironmentPath [DEBUG 2022-10-2 22:6:25.57]: Extension ms-python.isort accessed getActiveEnvironmentPath > python -c "import sys;print(sys.executable)" [DEBUG 2022-10-2 22:6:25.194]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.195]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.197]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.198]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectionInterpretersQueried-d:\\a\\vscode-jupyter\\vscode-jupyter\\src\\test\\datascience"-Arg-Separator-undefined > C:\hostedtoolcache\windows\Python\3.10.8\x64\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:6:25.218]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.218]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined > C:\hostedtoolcache\windows\Python\3.9.13\x64\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:6:25.427]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.427]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.430]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.430]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.433]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.433]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.436]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.436]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.438]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.438]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.440]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.441]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.451]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:25.453]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:25.481]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:25.481]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:46.516]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:47.933]: Delay Trigger[Refresh Test Data]: triggered=3, called=1 Python interpreter path: C:\hostedtoolcache\windows\Python\3.10.8\x64\python.exe [ERROR 2022-10-2 22:6:48.43]: Error: python -c "import sys;print(sys.executable)" resulted in empty stdout at t.getExecutablePath (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:652220) at Object.resolveEnvironment (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:533224) at c (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.isort-2022.5.13061128\dist\extension.js:1:3613) at t.initializePython (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.isort-2022.5.13061128\dist\extension.js:1:4082) at Immediate. (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.isort-2022.5.13061128\dist\extension.js:1:312091) [DEBUG 2022-10-2 22:6:48.219]: Extension ms-python.isort accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:48.219]: Extension ms-python.isort accessed resolveEnvironment [DEBUG 2022-10-2 22:6:48.267]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.267]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.269]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.269]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.272]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.272]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:6:48.295]: Extension ms-python.isort accessed resolveEnvironment [DEBUG 2022-10-2 22:6:48.295]: Extension ms-python.isort accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:48.296]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:48.297]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:48.298]: Testing: Trigger refresh after change in d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience\.vscode\settings.json [DEBUG 2022-10-2 22:6:48.311]: Activation Commands received undefined for shell cmd [INFO 2022-10-2 22:6:48.312]: [ 'getActivatedEnvironmentVariables, Class name = O, completed in 303ms, has a falsy return value, Arg 1: undefined, Arg 2: {"id":"C:\\\\HOSTEDTOOLCACHE\\\\WINDOWS\\\\PYTHON\\\\3.10.8\\\\X64\\\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1},"path":"c:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.10.8\\\\x64\\\\python.exe"}, Arg 3: false' ] [ERROR 2022-10-2 22:6:48.499]: Error: python c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py returned bad JSON () (SyntaxError: Unexpected end of JSON input) at c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:226207 at t.getInterpreterInfo (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:554584) at c.g [as workerFunc] (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:549826) at start (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:316180) [ERROR 2022-10-2 22:6:48.527]: Error: python c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py returned bad JSON () (SyntaxError: Unexpected end of JSON input) at c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:226207 at t.getInterpreterInfo (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:554584) at c.g [as workerFunc] (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:549826) at start (c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\out\client\extension.js:2:316180) [DEBUG 2022-10-2 22:6:48.619]: Extension ms-toolsai.jupyter accessed onDidChangeActiveEnvironmentPath [DEBUG 2022-10-2 22:6:48.620]: Extension ms-toolsai.jupyter accessed onDidChangeEnvironments [DEBUG 2022-10-2 22:6:48.621]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:48.622]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:48.623]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:48.624]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:48.632]: Delay Trigger[Refresh Test Data]: triggered=6, called=2 [DEBUG 2022-10-2 22:6:48.790]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:48.790]: Extension ms-toolsai.jupyter accessed onDidEnvironmentVariablesChange [DEBUG 2022-10-2 22:6:48.792]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:48.793]: Extension ms-toolsai.jupyter accessed known [DEBUG 2022-10-2 22:6:49.36]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.37]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.38]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.39]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:49.40]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:49.52]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:49.53]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:49.54]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:49.55]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:49.62]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.93]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:49.95]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:6:49.379]: Activation Commands received undefined for shell cmd [INFO 2022-10-2 22:6:49.379]: [ 'getActivatedEnvironmentVariables, Class name = O, completed in 119ms, has a falsy return value, Arg 1: , Arg 2: {"id":"C:\\\\HOSTEDTOOLCACHE\\\\WINDOWS\\\\PYTHON\\\\3.10.8\\\\X64\\\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1},"path":"c:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.10.8\\\\x64\\\\python.exe"}, Arg 3: false' ] [DEBUG 2022-10-2 22:6:49.388]: Extension ms-toolsai.jupyter accessed known [DEBUG 2022-10-2 22:6:49.393]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.394]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.395]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.717]: Activation Commands received undefined for shell cmd [INFO 2022-10-2 22:6:49.717]: [ 'getActivatedEnvironmentVariables, Class name = O, completed in 277ms, has a falsy return value, Arg 1: , Arg 2: {"id":"C:\\\\HOSTEDTOOLCACHE\\\\WINDOWS\\\\PYTHON\\\\3.10.8\\\\X64\\\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1},"path":"c:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.10.8\\\\x64\\\\python.exe"}, Arg 3: false' ] [DEBUG 2022-10-2 22:6:49.722]: Activation Commands received undefined for shell cmd [INFO 2022-10-2 22:6:49.722]: [ 'getActivatedEnvironmentVariables, Class name = O, completed in 282ms, has a falsy return value, Arg 1: , Arg 2: {"id":"C:\\\\HOSTEDTOOLCACHE\\\\WINDOWS\\\\PYTHON\\\\3.10.8\\\\X64\\\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1},"path":"c:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.10.8\\\\x64\\\\python.exe"}, Arg 3: false' ] [DEBUG 2022-10-2 22:6:49.728]: Activation Commands received undefined for shell cmd [INFO 2022-10-2 22:6:49.728]: [ 'getActivatedEnvironmentVariables, Class name = O, completed in 161ms, has a falsy return value, Arg 1: , Arg 2: {"id":"C:\\\\HOSTEDTOOLCACHE\\\\WINDOWS\\\\PYTHON\\\\3.10.8\\\\X64\\\\PYTHON.EXE","sysPrefix":"","displayPath":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"envName":"","displayName":"","envType":"Unknown","version":{"major":-1,"minor":-1,"patch":-1},"path":"c:\\\\hostedtoolcache\\\\windows\\\\Python\\\\3.10.8\\\\x64\\\\python.exe"}, Arg 3: false' ] [DEBUG 2022-10-2 22:6:49.778]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.779]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.779]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.781]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.782]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.794]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:49.795]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables [DEBUG 2022-10-2 22:6:50.801]: Extension ms-python.isort accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:6:50.802]: Extension ms-python.isort accessed resolveEnvironment [DEBUG 2022-10-2 22:6:53.628]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe" [DEBUG 2022-10-2 22:6:54.597]: Probing conda binary: C:\Miniconda\Scripts\conda.exe > C:\Miniconda\Scripts\conda.exe info --json [DEBUG 2022-10-2 22:7:4.776]: conda info --json: { "active_prefix": null, "active_prefix_name": null, "av_data_dir": "C:\\Miniconda\\etc\\conda", "av_metadata_url_base": null, "channels": [ "https://repo.anaconda.com/pkgs/main/win-64", "https://repo.anaconda.com/pkgs/main/noarch", "https://repo.anaconda.com/pkgs/r/win-64", "https://repo.anaconda.com/pkgs/r/noarch", "https://repo.anaconda.com/pkgs/msys2/win-64", "https://repo.anaconda.com/pkgs/msys2/noarch" ], "conda_build_version": "not installed", "conda_env_version": "4.12.0", "conda_location": "C:\\Miniconda\\lib\\site-packages\\conda", "conda_prefix": "C:\\Miniconda", "conda_private": false, "conda_shlvl": -1, "conda_version": "4.12.0", "config_files": [], "default_prefix": "C:\\Miniconda", "env_vars": { "CIO_TEST": "", "CI_PYTHON_PATH": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe", "CONDA": "C:\\Miniconda", "CONDA_ROOT": "C:\\Miniconda", "CURL_CA_BUNDLE": "", "DEPLOYMENT_BASEPATH": "C:\\actions", "GITHUB_EVENT_PATH": "D:\\a\\_temp\\_github_workflow\\event.json", "GITHUB_PATH": "D:\\a\\_temp\\_runner_file_commands\\add_path_172bf5dd-2697-4e4f-97d7-dadc2052f727", "HOMEPATH": "\\Users\\runneradmin", "IPYWIDGET_SCREENSHOT_PATH": "*-screenshot.png", "NPM_CONFIG_NOPROXY": "", "NPM_EXECPATH": "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js", "NPM_NODE_EXECPATH": "C:\\hostedtoolcache\\windows\\node\\16.14.2\\x64\\node.exe", "PATH": "D:\\a\\vscode-jupyter\\vscode-jupyter\\node_modules\\.bin;D:\\a\\vscode-jupyter\\node_modules\\.bin;D:\\a\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\npm\\prefix\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\hostedtoolcache\\windows\\node\\16.14.2\\x64;C:\\Users\\runneradmin\\AppData\\Roaming\\Python\\Python310\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64;C:\\Program Files\\MongoDB\\Server\\5.0\\bin;C:\\aliyun-cli;C:\\vcpkg;C:\\Program Files (x86)\\NSIS\\;C:\\tools\\zstd;C:\\Program Files\\Mercurial\\;C:\\hostedtoolcache\\windows\\stack\\2.9.1\\x64;C:\\cabal\\bin;C:\\\\ghcup\\bin;C:\\tools\\ghc-9.4.2\\bin;C:\\Program Files\\dotnet;C:\\mysql\\bin;C:\\Program Files\\R\\R-4.2.1\\bin\\x64;C:\\SeleniumWebDrivers\\GeckoDriver;C:\\Program Files (x86)\\sbt\\bin;C:\\Program Files (x86)\\GitHub CLI;C:\\Program Files\\Git\\bin;C:\\Program Files (x86)\\pipx_bin;C:\\npm\\prefix;C:\\hostedtoolcache\\windows\\go\\1.17.13\\x64\\bin;C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64;C:\\hostedtoolcache\\windows\\Ruby\\3.0.4\\x64\\bin;C:\\tools\\kotlinc\\bin;C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\8.0.345-1\\x64\\bin;C:\\Program Files\\ImageMagick-7.1.0-Q16-HDRI;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\ProgramData\\kind;C:\\Program Files\\Microsoft\\jdk-11.0.12.7-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\ProgramData\\Chocolatey\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Microsoft\\Web Platform Installer\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\OpenSSL\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\ProgramData\\chocolatey\\lib\\pulumi\\tools\\Pulumi\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\lib\\maven\\apache-maven-3.8.6\\bin;C:\\Program Files\\Microsoft Service Fabric\\bin\\Fabric\\Fabric.Code;C:\\Program Files\\Microsoft SDKs\\Service Fabric\\Tools\\ServiceFabricLocalClusterManager;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\GitHub CLI\\;c:\\tools\\php;C:\\Program Files (x86)\\sbt\\bin;C:\\SeleniumWebDrivers\\ChromeDriver\\;C:\\SeleniumWebDrivers\\EdgeDriver\\;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\Amazon\\SessionManagerPlugin\\bin\\;C:\\Program Files\\Amazon\\AWSSAMCLI\\bin\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\LLVM\\bin;C:\\Users\\runneradmin\\.dotnet\\tools;C:\\Users\\runneradmin\\.cargo\\bin;C:\\Users\\runneradmin\\AppData\\Local\\Microsoft\\WindowsApps", "PKG_CONFIG_PATH": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64/lib/pkgconfig", "PSMODULEPATH": "C:\\Users\\runneradmin\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\\\Modules\\azurerm_2.1.0;C:\\\\Modules\\azure_2.1.0;C:\\Users\\packer\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\PowerShell\\Modules\\", "PYTHON2_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHON3_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHONIOENCODING": "utf-8", "PYTHONLOCATION": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHONPATH": "./dummyFolderForPythonPath", "PYTHONUNBUFFERED": "1", "PYTHON_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHON_VERSION": "3.8", "REQUESTS_CA_BUNDLE": "", "SELENIUM_JAR_PATH": "C:\\selenium\\selenium-server.jar", "SSL_CERT_FILE": "", "VSCODE_CODE_CACHE_PATH": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\CachedData\\6455bf1608dfa1b955717f66295f0f9200db0f73" }, "envs": [ "C:\\Miniconda" ], "envs_dirs": [ "C:\\Miniconda\\envs", "C:\\Users\\runneradmin\\.conda\\envs", "C:\\Users\\runneradmin\\AppData\\Local\\conda\\conda\\envs" ], "is_windows_admin": true, "netrc_file": null, "offline": false, "pkgs_dirs": [ "C:\\Miniconda\\pkgs", "C:\\Users\\runneradmin\\.conda\\pkgs", "C:\\Users\\runneradmin\\AppData\\Local\\conda\\conda\\pkgs" ], "platform": "win-64", "python_version": "3.9.12.final.0", "rc_path": "C:\\Users\\runneradmin\\.condarc", "requests_version": "2.27.1", "root_prefix": "C:\\Miniconda", "root_writable": true, "site_dirs": [], "sys.executable": "C:\\Miniconda\\python.exe", "sys.prefix": "C:\\Miniconda", "sys.version": "3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]", "sys_rc_path": "C:\\Miniconda\\.condarc", "user_agent": "conda/4.12.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.20348", "user_rc_path": "C:\\Users\\runneradmin\\.condarc", "virtual_pkgs": [ [ "__win", "0", "0" ], [ "__archspec", "1", "x86_64" ] ] } > C:\Miniconda\condabin\conda.bat info --json [ERROR 2022-10-2 22:7:5.552]: Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. [DEBUG 2022-10-2 22:7:5.579]: Cached data exists KeyPrefix=Cache_Method_Output__.ensureEnvironmentContainsPython-Args="C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe" [DEBUG 2022-10-2 22:7:6.229]: conda info --json: { "active_prefix": null, "active_prefix_name": null, "av_data_dir": "C:\\Miniconda\\etc\\conda", "av_metadata_url_base": null, "channels": [ "https://repo.anaconda.com/pkgs/main/win-64", "https://repo.anaconda.com/pkgs/main/noarch", "https://repo.anaconda.com/pkgs/r/win-64", "https://repo.anaconda.com/pkgs/r/noarch", "https://repo.anaconda.com/pkgs/msys2/win-64", "https://repo.anaconda.com/pkgs/msys2/noarch" ], "conda_build_version": "not installed", "conda_env_version": "4.12.0", "conda_location": "C:\\Miniconda\\lib\\site-packages\\conda", "conda_prefix": "C:\\Miniconda", "conda_private": false, "conda_shlvl": -1, "conda_version": "4.12.0", "config_files": [], "default_prefix": "C:\\Miniconda", "env_vars": { "CIO_TEST": "", "CI_PYTHON_PATH": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe", "CONDA": "C:\\Miniconda", "CONDA_EXE": "C:\\Miniconda\\condabin\\..\\Scripts\\conda.exe", "CONDA_EXES": "\"C:\\Miniconda\\condabin\\..\\Scripts\\conda.exe\" ", "CONDA_ROOT": "C:\\Miniconda", "CURL_CA_BUNDLE": "", "DEPLOYMENT_BASEPATH": "C:\\actions", "GITHUB_EVENT_PATH": "D:\\a\\_temp\\_github_workflow\\event.json", "GITHUB_PATH": "D:\\a\\_temp\\_runner_file_commands\\add_path_172bf5dd-2697-4e4f-97d7-dadc2052f727", "HOMEPATH": "\\Users\\runneradmin", "IPYWIDGET_SCREENSHOT_PATH": "*-screenshot.png", "NPM_CONFIG_NOPROXY": "", "NPM_EXECPATH": "C:\\npm\\prefix\\node_modules\\npm\\bin\\npm-cli.js", "NPM_NODE_EXECPATH": "C:\\hostedtoolcache\\windows\\node\\16.14.2\\x64\\node.exe", "PATH": "C:\\Miniconda;C:\\Miniconda\\Library\\mingw-w64\\bin;C:\\Miniconda\\Library\\usr\\bin;C:\\Miniconda\\Library\\bin;C:\\Miniconda\\Scripts;C:\\Miniconda\\bin;D:\\a\\vscode-jupyter\\vscode-jupyter\\node_modules\\.bin;D:\\a\\vscode-jupyter\\node_modules\\.bin;D:\\a\\node_modules\\.bin;D:\\node_modules\\.bin;C:\\npm\\prefix\\node_modules\\npm\\node_modules\\@npmcli\\run-script\\lib\\node-gyp-bin;C:\\Program Files\\PowerShell\\7;C:\\hostedtoolcache\\windows\\node\\16.14.2\\x64;C:\\Users\\runneradmin\\AppData\\Roaming\\Python\\Python310\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64;C:\\Program Files\\MongoDB\\Server\\5.0\\bin;C:\\aliyun-cli;C:\\vcpkg;C:\\Program Files (x86)\\NSIS\\;C:\\tools\\zstd;C:\\Program Files\\Mercurial\\;C:\\hostedtoolcache\\windows\\stack\\2.9.1\\x64;C:\\cabal\\bin;C:\\\\ghcup\\bin;C:\\tools\\ghc-9.4.2\\bin;C:\\Program Files\\dotnet;C:\\mysql\\bin;C:\\Program Files\\R\\R-4.2.1\\bin\\x64;C:\\SeleniumWebDrivers\\GeckoDriver;C:\\Program Files (x86)\\sbt\\bin;C:\\Program Files (x86)\\GitHub CLI;C:\\Program Files\\Git\\bin;C:\\Program Files (x86)\\pipx_bin;C:\\npm\\prefix;C:\\hostedtoolcache\\windows\\go\\1.17.13\\x64\\bin;C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\Scripts;C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64;C:\\hostedtoolcache\\windows\\Ruby\\3.0.4\\x64\\bin;C:\\tools\\kotlinc\\bin;C:\\hostedtoolcache\\windows\\Java_Temurin-Hotspot_jdk\\8.0.345-1\\x64\\bin;C:\\Program Files\\ImageMagick-7.1.0-Q16-HDRI;C:\\Program Files (x86)\\Microsoft SDKs\\Azure\\CLI2\\wbin;C:\\ProgramData\\kind;C:\\Program Files\\Microsoft\\jdk-11.0.12.7-hotspot\\bin;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\System32\\Wbem;C:\\Windows\\System32\\WindowsPowerShell\\v1.0\\;C:\\Windows\\System32\\OpenSSH\\;C:\\Program Files\\dotnet\\;C:\\ProgramData\\Chocolatey\\bin;C:\\Program Files\\PowerShell\\7\\;C:\\Program Files\\Microsoft\\Web Platform Installer\\;C:\\Program Files\\Microsoft SQL Server\\Client SDK\\ODBC\\170\\Tools\\Binn\\;C:\\Program Files\\Microsoft SQL Server\\150\\Tools\\Binn\\;C:\\Program Files\\OpenSSL\\bin;C:\\Strawberry\\c\\bin;C:\\Strawberry\\perl\\site\\bin;C:\\Strawberry\\perl\\bin;C:\\ProgramData\\chocolatey\\lib\\pulumi\\tools\\Pulumi\\bin;C:\\Program Files\\TortoiseSVN\\bin;C:\\Program Files\\CMake\\bin;C:\\ProgramData\\chocolatey\\lib\\maven\\apache-maven-3.8.6\\bin;C:\\Program Files\\Microsoft Service Fabric\\bin\\Fabric\\Fabric.Code;C:\\Program Files\\Microsoft SDKs\\Service Fabric\\Tools\\ServiceFabricLocalClusterManager;C:\\Program Files\\nodejs\\;C:\\Program Files\\Git\\cmd;C:\\Program Files\\Git\\mingw64\\bin;C:\\Program Files\\Git\\usr\\bin;C:\\Program Files\\GitHub CLI\\;c:\\tools\\php;C:\\Program Files (x86)\\sbt\\bin;C:\\SeleniumWebDrivers\\ChromeDriver\\;C:\\SeleniumWebDrivers\\EdgeDriver\\;C:\\Program Files\\Amazon\\AWSCLIV2\\;C:\\Program Files\\Amazon\\SessionManagerPlugin\\bin\\;C:\\Program Files\\Amazon\\AWSSAMCLI\\bin\\;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\Binn\\;C:\\Program Files\\LLVM\\bin;C:\\Users\\runneradmin\\.dotnet\\tools;C:\\Users\\runneradmin\\.cargo\\bin;C:\\Users\\runneradmin\\AppData\\Local\\Microsoft\\WindowsApps", "PKG_CONFIG_PATH": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64/lib/pkgconfig", "PSMODULEPATH": "C:\\Users\\runneradmin\\Documents\\PowerShell\\Modules;C:\\Program Files\\PowerShell\\Modules;c:\\program files\\powershell\\7\\Modules;C:\\\\Modules\\azurerm_2.1.0;C:\\\\Modules\\azure_2.1.0;C:\\Users\\packer\\Documents\\WindowsPowerShell\\Modules;C:\\Program Files\\WindowsPowerShell\\Modules;C:\\Windows\\system32\\WindowsPowerShell\\v1.0\\Modules;C:\\Program Files\\Microsoft SQL Server\\130\\Tools\\PowerShell\\Modules\\", "PYTHON2_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHON3_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHONIOENCODING": "utf-8", "PYTHONLOCATION": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHONPATH": "./dummyFolderForPythonPath", "PYTHONUNBUFFERED": "1", "PYTHON_ROOT_DIR": "C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64", "PYTHON_VERSION": "3.8", "REQUESTS_CA_BUNDLE": "", "SELENIUM_JAR_PATH": "C:\\selenium\\selenium-server.jar", "SSL_CERT_FILE": "", "VSCODE_CODE_CACHE_PATH": "C:\\Users\\runneradmin\\AppData\\Local\\Temp\\CachedData\\6455bf1608dfa1b955717f66295f0f9200db0f73" }, "envs": [ "C:\\Miniconda" ], "envs_dirs": [ "C:\\Miniconda\\envs", "C:\\Users\\runneradmin\\.conda\\envs", "C:\\Users\\runneradmin\\AppData\\Local\\conda\\conda\\envs" ], "is_windows_admin": true, "netrc_file": null, "offline": false, "pkgs_dirs": [ "C:\\Miniconda\\pkgs", "C:\\Users\\runneradmin\\.conda\\pkgs", "C:\\Users\\runneradmin\\AppData\\Local\\conda\\conda\\pkgs" ], "platform": "win-64", "python_version": "3.9.12.final.0", "rc_path": "C:\\Users\\runneradmin\\.condarc", "requests_version": "2.27.1", "root_prefix": "C:\\Miniconda", "root_writable": true, "site_dirs": [], "sys.executable": "C:\\Miniconda\\python.exe", "sys.prefix": "C:\\Miniconda", "sys.version": "3.9.12 (main, Apr 4 2022, 05:22:27) [MSC v.1916 64 bit (AMD64)]", "sys_rc_path": "C:\\Miniconda\\.condarc", "user_agent": "conda/4.12.0 requests/2.27.1 CPython/3.9.12 Windows/10 Windows/10.0.20348", "user_rc_path": "C:\\Users\\runneradmin\\.condarc", "virtual_pkgs": [ [ "__win", "0", "0" ], [ "__archspec", "1", "x86_64" ] ] } [DEBUG 2022-10-2 22:7:6.229]: Found conda via filesystem probing: C:\Miniconda\Scripts\conda.exe [DEBUG 2022-10-2 22:7:6.229]: Searching for conda environments using C:\Miniconda\Scripts\conda.exe [DEBUG 2022-10-2 22:7:6.230]: Cached data exists KeyPrefix=Cache_Method_Output_y.getInfoImpl-Args="C:\\Miniconda\\Scripts\\conda.exe" [DEBUG 2022-10-2 22:7:6.231]: Looking into conda env for executable: {"prefix":"C:\\Miniconda","name":"base"} [DEBUG 2022-10-2 22:7:6.235]: Found executable within conda env {"prefix":"C:\\Miniconda","name":"base"} [DEBUG 2022-10-2 22:7:6.235]: Found conda executable: C:\Miniconda\python.exe > C:\Miniconda\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:6.327]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.328]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.335]: Extension ms-toolsai.jupyter accessed getEnvironmentVariables > C:\hostedtoolcache\windows\Python\3.11.0\x64\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:6.493]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.494]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.526]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.527]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.684]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.686]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.719]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.720]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.752]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.753]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:6.791]: Found interpreter for C:\Miniconda\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.7.9\x64\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:6.814]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.814]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.823]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.824]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.850]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.851]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:6.884]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:6.886]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:9.568]: Found interpreter for C:\hostedtoolcache\windows\Python\3.7.9\x64\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.8.10\x64\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:9.591]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:9.592]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:10.13]: Found interpreter for C:\hostedtoolcache\windows\Python\3.11.0\x64\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.10.8\x86\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:10.55]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:10.63]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:11.951]: Found interpreter for C:\hostedtoolcache\windows\Python\3.8.10\x64\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.11.0\x86\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:11.970]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:11.971]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:12.521]: Found interpreter for C:\hostedtoolcache\windows\Python\3.10.8\x86\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.7.9\x86\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:12.545]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:12.546]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:13.366]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.366]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.366]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.405]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.405]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.405]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.417]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:13.418]: Extension ms-toolsai.jupyter accessed resolveEnvironment [DEBUG 2022-10-2 22:7:13.454]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.455]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [DEBUG 2022-10-2 22:7:13.455]: Cached data exists KeyPrefix=Cache_Method_Output_f.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_D:\\A\\VSCODE-JUPYTER\\VSCODE-JUPYTER\\SRC\\TEST\\DATASCIENCE"-Arg-Separator-undefined [INFO 2022-10-2 22:7:14.500]: Found interpreter for C:\hostedtoolcache\windows\Python\3.11.0\x86\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.8.10\x86\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:14.519]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:14.520]: Extension ms-toolsai.jupyter accessed resolveEnvironment [INFO 2022-10-2 22:7:15.113]: Found interpreter for C:\hostedtoolcache\windows\Python\3.7.9\x86\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py > C:\hostedtoolcache\windows\Python\3.9.13\x86\python.exe c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [DEBUG 2022-10-2 22:7:15.135]: Extension ms-toolsai.jupyter accessed getActiveEnvironmentPath [DEBUG 2022-10-2 22:7:15.136]: Extension ms-toolsai.jupyter accessed resolveEnvironment [ERROR 2022-10-2 22:7:15.208]: Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. [ERROR 2022-10-2 22:7:15.231]: Autoselection timeout out, this is likely a issue with how consumer called execution factory API. Using default python to execute. [INFO 2022-10-2 22:7:18.783]: Found interpreter for C:\hostedtoolcache\windows\Python\3.9.13\x86\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py [INFO 2022-10-2 22:7:18.792]: Found interpreter for C:\hostedtoolcache\windows\Python\3.8.10\x86\python.exe,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\get_output_via_markers.py,c:\Users\RUNNER~1\AppData\Local\Temp\vscode_jupyter_exts\ms-python.python-2022.19.13061131\pythonFiles\interpreterInfo.py ```
DonJayamanne commented 2 years ago

Note: If you look at the logs, further below the information for the same interpreter is actually successfully returned Here's another log

2022-11-03T01:43:49.6759768Z info 01:43:49.672:  Active Environment Path for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is {"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","path":"C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe"}
2022-11-03T01:43:49.6886732Z info 01:43:49.685:  Resolved Active Environment for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is undefined
2022-11-03T01:43:49.6888051Z info 01:43:49.685:  Active Interpreter in Python API for resource 'd:\a\vscode-jupyter\vscode-jupyter\src\test\datascience' is , EnvType: undefined, EnvName: 'undefined', Version: undefined

from the Windows job https://github.com/microsoft/vscode-jupyter/actions/runs/3382377101/jobs/5617238307

Looks like the resolveEnviornment also returns undefined in some cases, which is a bug.

I think the fact that it returns partial information & sometimes undefined is not correct.

sevvalmehder commented 2 years ago

I guess I have the same issue. When I try to use pytest from the extension I got an error at the Output > Python window:

[ERROR 2022-10-7 0:7:39.661]: Error discovering pytest tests:
 [TypeError: Cannot read properties of undefined (reading 'join')
karrtikr commented 2 years ago

I guess the most interesting part is Error: python -c "import sys;print(sys.executable)" resulted in empty stdout

python on PATH seems faulty on the machine. Running both interpreterInfo.py and the above command always results in an empty string.

from the Windows job https://github.com/microsoft/vscode-jupyter/actions/runs/3382377101/jobs/5617238307

I don't see a way to access Jupyter logs in the above run.

karrtikr commented 2 years ago

@sevvalmehder Your issue seems different, please open a new issue with the logs.

karrtikr commented 2 years ago

I cannot reproduce this on Windows CI Python 3.10 (https://github.com/microsoft/vscode-python/pull/20166): https://github.com/microsoft/vscode-python/actions/runs/3409251206/jobs/5670784030

I've made some tweaks in https://github.com/microsoft/vscode-python/pull/20165 which could potentially help, and added more logging. Would need logs from Jupyter or a minimal extension reproducing this before I can proceed further.

DonJayamanne commented 2 years ago

I don't see a way to access Jupyter logs in the above run.

expand the test run failure which takes around 1.5 minutes and you'll see all of the logs

Would need logs from Jupyter or a minimal extension

all our ci things contains verbose logs, hence you should have access to all the logs there

DonJayamanne commented 2 years ago

Here are the logs, under this section

Screen Shot 2022-11-07 at 21 57 19

Same error, the return value from Python seems incorect

Get Jupyter Kernel Paths, Class name = JupyterPaths, completed in 136ms, has a truthy return value, Arg 1: "", Return Value: 
2022-11-07T09:09:26.1925967Z info 09:09:26.179:  Resolved Active Environment for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is {"internal":{"path":"C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe","id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"bitness":"Unknown","sysPrefix":""},"version":{"major":-1,"minor":-1,"micro":-1,"release":{"level":"final","serial":-1}},"tools":[]},"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE"}
2022-11-07T09:09:26.1933868Z info 09:09:26.184:  Resolved Active Environment for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is {"internal":{"path":"C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe","id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","executable":{"uri":{"$mid":1,"path":"/C:/hostedtoolcache/windows/Python/3.10.8/x64/python.exe","scheme":"file"},"bitness":"Unknown","sysPrefix":""},"version":{"major":-1,"minor":-1,"micro":-1,"release":{"level":"final","serial":-1}},"tools":[]},"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE"}
2022-11-07T09:09:26.1963175Z info 09:09:26.189:  Active Interpreter in Python API fo

You can get the logs from the latest run here https://github.com/microsoft/vscode-jupyter/actions/runs/3408919625/jobs/5670063769 Cotains both Python & Jupyter run logs.

As you can see the return value we're getting contains empty values for sysPrefix and verison information. Also looking at the logs in python I found errors in Python logs as well.

Can I suggest you add some verbose logging in Python extension so you can see what's being sent back to the Jupyter extension,

cannot reproduce this on Windows CI Python 3.1

Not sure what's not going on there, but this is pretty consistently failing in our CI now.

've made some tweaks in https://github.com/microsoft/vscode-python/pull/20165 whic

Thanks, let me know if you need additional logs or the like.

karrtikr commented 2 years ago

You can get the logs from the latest run here https://github.com/microsoft/vscode-jupyter/actions/runs/3408919625/jobs/5670063769 Cotains both Python & Jupyter run logs.

Ah, I can't find the Python logs, can you help with where to find it in the GHA run?

DonJayamanne commented 2 years ago

't find the Python logs, can you help with where to find it in the GHA run?

DonJayamanne commented 2 years ago

Based on the logs here, sometimes Python extension returns undefined for the active interpreter when we try to resolve the env, even though the return value for getActiveEnvironmentPath is not undefined

https://pipelines.actions.githubusercontent.com/serviceHosts/e2216a9b-4bf5-4e67-aba3-9767e42c612e/_apis/pipelines/1/runs/49154/signedlogcontent/19?urlExpires=2022-11-07T22%3A01%3A13.1720408Z&urlSigningMethod=HMACV1&urlSignature=r5fqaGZVrroe216DJatfXs8zlnUFR6a6RJ4DA1IwlxA%3D https://github.com/microsoft/vscode-jupyter/actions/runs/3414072775/jobs/5682181403

2022-11-07T21:56:14.5681099Z verbose 21:56:14.080:  Get Active Interpreter, Class name = InterpreterService (started execution), 
2022-11-07T21:56:14.8001638Z info 21:56:14.082:  Active Environment Path for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is {"id":"C:\\HOSTEDTOOLCACHE\\WINDOWS\\PYTHON\\3.10.8\\X64\\PYTHON.EXE","path":"C:\\hostedtoolcache\\windows\\Python\\3.10.8\\x64\\python.exe"}
2022-11-07T21:56:14.9557201Z verbose 21:56:14.085:  Detected change in Python environments via Python API
2022-11-07T21:56:15.0466920Z verbose 21:56:14.235:  Getting Jupyter KernelSpec Root Path, Class name = JupyterPaths, completed in 1190ms, has a truthy return value, , Return Value: <Uri:/c:/Users/runneradmin/AppData/Roaming/jupyter/kernels>
2022-11-07T21:56:15.1383498Z verbose 21:56:14.238:  Getting Jupyter KernelSpec Root Path, Class name = JupyterPaths, completed in 1061ms, has a truthy return value, , Return Value: <Uri:/c:/Users/runneradmin/AppData/Roaming/jupyter/kernels>
2022-11-07T21:56:15.1640252Z verbose 21:56:14.240:  Get KernelSpec root path, Class name = JupyterPaths, completed in 1197ms, has a truthy return value, Arg 1: {"_isCancelled":false,"_emitter":null}, Return Value: <Uri:/c:/Users/runneradmin/AppData/Roaming/jupyter/kernels>, <Uri:/C:/ProgramData/jupyter/kernels>
2022-11-07T21:56:15.1876134Z Connected to port 64477
2022-11-07T21:56:15.1940444Z verbose 21:56:14.246:  Not Searching for kernels as path does not exist, c:\ProgramData\jupyter\kernels
2022-11-07T21:56:15.1954695Z verbose 21:56:14.292:  Loading kernelspec from c:\Users\runneradmin\AppData\Roaming\jupyter\kernels\python3\kernel.json for 
2022-11-07T21:56:15.2228110Z info 21:56:14.306:  Resolved Active Environment for d:\a\vscode-jupyter\vscode-jupyter\src\test\datascience is undefined
2022-11-07T21:56:15.2769088Z info 21:56:14.307:  Active Interpreter in Python API for resource 'd:\a\vscode-jupyter\vscode-jupyter\src\test\datascience
sevvalmehder commented 2 years ago

Hello @karrtikr

It may seem irrelevant but here are all the logs that I have. According to this logs, interpreterInfo.py returns the active environment path as undefined, as Don said. And the process cannot read the properties from undefined.

Also, I need to turn back the older release of Python extension(2022.16.1) to get rid of this error. I have this issue in the Linux environment.

> ~/Projects/envs/ows/bin/python ~/.vscode/extensions/ms-python.python-2022.18.1/pythonFiles/get_output_via_markers.py ~/.vscode/extensions/ms-python.python-2022.18.1/pythonFiles/interpreterInfo.py
[ERROR 2022-10-8 1:6:34.159]: Error in errorHandler.handleError [TypeError: Cannot read properties of undefined (reading 'join')
    at m.getEnvFile (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:324061)
    at m.getCustomEnvironmentVariables (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:323390)
    at m._getEnvironmentVariables (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:322793)
    at m.getEnvironmentVariables (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:322034)
    at l.create (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:231016)
    at S.create (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:235661)
    at a.handleError (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:500000)
    at t.ErrorHandler.handleError (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:499689)
    at s.handleError (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:498481)
    at s.run (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:498224)
    at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async s.runLinter (/home/sevvalm/.vscode/extensions/ms-python.python-2022.18.1/out/client/extension.js:2:501955)]

If it is still irrelevant, I can open a new issue.

karrtikr commented 2 years ago

Yes it seems different as the stack trace is different, please open a new one.

karrtikr commented 2 years ago

@DonJayamanne how is that fixing this issue? I'm still working on this some parts have been fixed.

karrtikr commented 2 years ago

It should fix the other issue though: https://github.com/microsoft/vscode-python/issues/20176.

karrtikr commented 2 years ago

I think the fact that it returns partial information & sometimes undefined is not correct.

Verified that both the issues are now fixed in https://github.com/microsoft/vscode-jupyter/pull/11936.