Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot Select Python Interpreter when running python prints out more than the script output #18234

Closed
irenepc opened this issue Jan 3, 2022 · 19 comments · Fixed by #18281 or #18284
Closed
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Milestone

Comments

@irenepc
Copy link

irenepc commented Jan 3, 2022

Issue Type: Bug

vscode

Behaviour

VS Code cannot select a python interpreter from the list of available interpreters. The list in the command flashes and dissappears.

Expected vs. Actual Behaviour

Expected vscode to set the interpreter to the selected version of python after clicking on the item.

Steps to reproduce:

[NOTE: Self-contained, minimal reproducing code samples are extremely helpful and will expedite addressing your issue]

  1. Install python
  2. Install vscode
  3. Install python extension
  4. Attempt to select a python interpreter

Diagnostic data

  • Python version (& distribution if applicable, e.g. Anaconda):
  • Type of virtual environment used (e.g. conda, venv, virtualenv, etc.): Unknown
  • Value of the python.languageServer setting: Default
User Settings


defaultLS: {"defaultLSType":"Pylance"}

downloadLanguageServer: true

envFile: "<placeholder>"

venvPath: "<placeholder>"

venvFolders: "<placeholder>"

condaPath: "<placeholder>"

pipenvPath: "<placeholder>"

poetryPath: "<placeholder>"

languageServer: "Pylance"

linting
• enabled: true
• cwd: "<placeholder>"
• Flake8Args: "<placeholder>"
• flake8Enabled: false
• flake8Path: "<placeholder>"
• lintOnSave: true
• banditArgs: "<placeholder>"
• banditEnabled: false
• banditPath: "<placeholder>"
• mypyArgs: "<placeholder>"
• mypyEnabled: false
• mypyPath: "<placeholder>"
• pycodestyleArgs: "<placeholder>"
• pycodestyleEnabled: false
• pycodestylePath: "<placeholder>"
• prospectorArgs: "<placeholder>"
• prospectorEnabled: false
• prospectorPath: "<placeholder>"
• pydocstyleArgs: "<placeholder>"
• pydocstyleEnabled: false
• pydocstylePath: "<placeholder>"
• pylamaArgs: "<placeholder>"
• pylamaEnabled: false
• pylamaPath: "<placeholder>"
• pylintArgs: "<placeholder>"
• pylintPath: "<placeholder>"

sortImports
• args: "<placeholder>"
• path: "<placeholder>"

formatting
• autopep8Args: "<placeholder>"
• autopep8Path: "<placeholder>"
• provider: "autopep8"
• blackArgs: "<placeholder>"
• blackPath: "<placeholder>"
• yapfArgs: "<placeholder>"
• yapfPath: "<placeholder>"

testing
• cwd: "<placeholder>"
• debugPort: 3000
• nosetestArgs: "<placeholder>"
• nosetestsEnabled: undefined
• nosetestPath: "<placeholder>"
• promptToConfigure: true
• pytestArgs: "<placeholder>"
• pytestEnabled: false
• pytestPath: "<placeholder>"
• unittestArgs: "<placeholder>"
• unittestEnabled: true
• autoTestDiscoverOnSaveEnabled: true

terminal
• activateEnvironment: true
• executeInFileDir: "<placeholder>"
• launchArgs: "<placeholder>"

experiments
• enabled: false
• optInto: []
• optOutFrom: []

insidersChannel: "off"

tensorBoard
• logDirectory: "<placeholder>"

Extension version: 2021.12.1559732655
VS Code version: Code 1.63.2 (899d46d82c4c95423fb7e10e68eba52050e30ba3, 2021-12-15T09:40:02.816Z)
OS version: Windows_NT x64 10.0.18362
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Xeon(R) CPU E5-1660 v4 @ 3.20GHz (16 x 3193)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
skia_renderer: enabled_on
video_decode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) undefined
Memory (System) 31.92GB (20.39GB free)
Process Argv --crash-reporter-id 669db187-2cae-415a-8e1c-4efb2f799c4c
Screen Reader no
VM 0%
@github-actions github-actions bot added the triage-needed Needs assignment to the proper sub-team label Jan 3, 2022
@irenepc
Copy link
Author

irenepc commented Jan 5, 2022

I've since tried reinstalling python and troubleshooting by disabling all extensions except the python one, but it made no difference

@karthiknadig karthiknadig self-assigned this Jan 5, 2022
@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug triage and removed triage-needed Needs assignment to the proper sub-team labels Jan 5, 2022
@karthiknadig
Copy link
Member

@irenepc Can you provide logs form Output > Python ? This can happen if the extension is not able to run the provided python to extract information about the interpreter.

@irenepc
Copy link
Author

irenepc commented Jan 12, 2022

Output from just starting up vscode

> conda info --json
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:18:49.858]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
Starting Pylance language server.
[ERROR 2022-0-12 3:18:50.803]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:18:51.195]: Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py

and from attempting to select an interpreter

[ERROR 2022-0-12 3:20:11.748]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:11.948]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.100]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.252]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.402]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.552]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.701]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:12.852]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.1]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.150]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.299]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.450]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.599]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.749]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:13.901]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.51]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.200]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.346]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.493]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.639]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.790]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:14.941]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.90]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.240]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.388]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.537]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.685]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.831]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:15.981]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.132]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.279]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.425]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.573]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.720]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:16.869]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.48]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.196]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.345]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.492]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.640]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.790]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:17.939]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.87]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.234]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.381]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.531]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.678]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.823]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:18.973]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:19.121]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:19.269]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> conda --version
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[ERROR 2022-0-12 3:20:19.416]: No python is installed or a refresh has not already been triggered
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py

@karthiknadig
Copy link
Member

@irenepc Can you run these commands from command prompt (outside of vscode) and share the output?

C:\Python37\python.exe %USERPROFILE%\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
C:\Python27\python.exe %USERPROFILE%\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py

Can you also share the values of following environment variables? ComSpec and Path.

@irenepc
Copy link
Author

irenepc commented Jan 12, 2022

C:\Users\irenec>set PATH
PATH=C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC

C:\Users\irenec>set ComSpec
ComSpec=C:\WINDOWS\system32\cmd.exe

C:\Users\irenec>C:\Python37\python.exe %USERPROFILE%\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py

{"versionInfo": [3, 7, 7, "final", 0], "sysPrefix": "C:\\Python37", "sysVersion": "3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]", "is64Bit": true}

C:\Users\irenec>C:\Python27\python.exe %USERPROFILE%\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}

@karthiknadig
Copy link
Member

Usually when we see the error, where the extension is does not see any python, it is usually due to mis configured ComSpec. In this case it seems to be fine. So, we may have to look elsewhere.

Can you set python logging level to debug? Reload vs code after that. and then share the contents of Python > output.
image

@irenepc
Copy link
Author

irenepc commented Jan 12, 2022

[DEBUG 2022-0-12 11:48:35.791]: Testing: Setting up watcher for y:\irenec\src
[INFO 2022-0-12 11:48:35.794]: [
  'Display locator refreshing progress, Class name = h, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-12 11:48:35.795]: Searching for conda.
[DEBUG 2022-0-12 11:48:35.802]: Probing conda binary: conda
[INFO 2022-0-12 11:48:35.834]: > conda info --json
> conda info --json
[DEBUG 2022-0-12 11:48:35.835]: [Error: spawn conda ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
	at onErrorNT (internal/child_process.js:465:16)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
[DEBUG 2022-0-12 11:48:35.870]: Searching for workspace virtual envs in: y:\irenec\src
[DEBUG 2022-0-12 11:48:35.870]: Getting roots
[DEBUG 2022-0-12 11:48:35.871]: Found roots
[INFO 2022-0-12 11:48:35.919]: > C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[INFO 2022-0-12 11:48:35.924]: > C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.69]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python37\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\Python37\\python37.zip', 'C:\\Python37\\DLLs', 'C:\\Python37\\lib', 'C:\\Python37', 'C:\\Python37\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"versionInfo": [3, 7, 7, "final", 0], "sysPrefix": "C:\\Python37", "sysVersion": "3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]", "is64Bit": true}
) (SyntaxError: Unexpected token T in JSON at position 2)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[DEBUG 2022-0-12 11:48:36.86]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:36.87]: > C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.194]: Getting roots
[DEBUG 2022-0-12 11:48:36.195]: Found roots
[DEBUG 2022-0-12 11:48:36.196]: Start watching root y:\irenec\src for globs ["python.exe","*/python.exe","*/Scripts/python.exe"]
[DEBUG 2022-0-12 11:48:36.196]: Start watching: y:\irenec\src with pattern python.exe using VSCode API
[DEBUG 2022-0-12 11:48:36.196]: Start watching: y:\irenec\src with pattern */python.exe using VSCode API
[DEBUG 2022-0-12 11:48:36.196]: Start watching: y:\irenec\src with pattern */Scripts/python.exe using VSCode API
[DEBUG 2022-0-12 11:48:36.232]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[DEBUG 2022-0-12 11:48:36.250]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[DEBUG 2022-0-12 11:48:36.304]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:36.304]: > C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.308]: Couldn't locate the conda binary.
[DEBUG 2022-0-12 11:48:36.424]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python37\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\Python37\\python37.zip', 'C:\\Python37\\DLLs', 'C:\\Python37\\lib', 'C:\\Python37', 'C:\\Python37\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"versionInfo": [3, 7, 7, "final", 0], "sysPrefix": "C:\\Python37", "sysVersion": "3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]", "is64Bit": true}
) (SyntaxError: Unexpected token T in JSON at position 2)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[INFO 2022-0-12 11:48:36.425]: [
  'Hide locator refreshing progress, Class name = h, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[ERROR 2022-0-12 11:48:36.425]: No python is installed or a refresh has not already been triggered
[INFO 2022-0-12 11:48:36.426]: [
  'Display locator refreshing progress, Class name = h, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-12 11:48:36.426]: Searching for conda.
[DEBUG 2022-0-12 11:48:36.429]: Cached data exists KeyPrefix=Cache_Method_Output_p.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-y:\\irenec\\src"-Arg-Separator-undefined
[DEBUG 2022-0-12 11:48:36.431]: Couldn't locate the conda binary.
[DEBUG 2022-0-12 11:48:36.433]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:36.433]: > C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.437]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:36.438]: > C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.472]: Searching for workspace virtual envs in: y:\irenec\src
[DEBUG 2022-0-12 11:48:36.475]: Cached data exists getEnvironmentVariables, y:\irenec\src
[DEBUG 2022-0-12 11:48:36.561]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python37\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\Python37\\python37.zip', 'C:\\Python37\\DLLs', 'C:\\Python37\\lib', 'C:\\Python37', 'C:\\Python37\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"versionInfo": [3, 7, 7, "final", 0], "sysPrefix": "C:\\Python37", "sysVersion": "3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]", "is64Bit": true}
) (SyntaxError: Unexpected token T in JSON at position 2)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[DEBUG 2022-0-12 11:48:36.562]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:36.562]: > C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:36.626]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[INFO 2022-0-12 11:48:36.627]: [
  'Hide locator refreshing progress, Class name = h, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-12 11:48:36.705]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
Starting Pylance language server.
[DEBUG 2022-0-12 11:48:37.272]: Cached data exists getEnvironmentVariables, y:\irenec\src
[INFO 2022-0-12 11:48:37.351]: [
  'Starting language server, Class name = r, completed in 509ms, has a falsy return value, , Return Value: undefined'
]
[ERROR 2022-0-12 11:48:37.353]: No python is installed or a refresh has not already been triggered
[INFO 2022-0-12 11:48:37.354]: [
  'Display locator refreshing progress, Class name = h, completed in 1ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-12 11:48:37.354]: Searching for conda.
[DEBUG 2022-0-12 11:48:37.355]: Couldn't locate the conda binary.
[DEBUG 2022-0-12 11:48:37.356]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:37.356]: > C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:37.360]: Cached data exists getEnvironmentVariables, y:\irenec\src
[DEBUG 2022-0-12 11:48:37.361]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:37.361]: > C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:37.371]: Searching for workspace virtual envs in: y:\irenec\src
[DEBUG 2022-0-12 11:48:37.514]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python37\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\Python37\\python37.zip', 'C:\\Python37\\DLLs', 'C:\\Python37\\lib', 'C:\\Python37', 'C:\\Python37\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"versionInfo": [3, 7, 7, "final", 0], "sysPrefix": "C:\\Python37", "sysVersion": "3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]", "is64Bit": true}
) (SyntaxError: Unexpected token T in JSON at position 2)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[DEBUG 2022-0-12 11:48:37.514]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:37.515]: > C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:37.586]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[INFO 2022-0-12 11:48:37.587]: [
  'Hide locator refreshing progress, Class name = h, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-12 11:48:37.709]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]
[ERROR 2022-0-12 11:48:37.710]: Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
[DEBUG 2022-0-12 11:48:51.972]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1
[DEBUG 2022-0-12 11:48:51.976]: Cached data exists getEnvironmentVariables, <No Resource>
[INFO 2022-0-12 11:48:51.976]: > C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
> C:\Python27\python2.exe ~\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-12 11:48:52.256]: [Error: python c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\pythonFiles\interpreterInfo.py returned bad JSON (
TTF SITE CUSTOMIZE --> Using [X:] for Resources and [Y:\irenec] for Source
PYTHONPATH: ['Y:\\irenec\\src\\core\\python', 'X:\\lib\\python27\\site-packages64', 'Y:\\irenec\\lib\\python27\\site-packages', 'X:\\lib\\python27\\site-packages', 'X:\\src\\core\\python\\sitecustomize', 'C:\\WINDOWS\\SYSTEM32\\python27.zip', 'C:\\Python27\\DLLs', 'C:\\Python27\\lib', 'C:\\Python27\\lib\\plat-win', 'C:\\Python27\\lib\\lib-tk', 'C:\\Python27', 'C:\\Python27\\lib\\site-packages']

System PATH: C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files (x86)\Common Files\Intel\Shared Libraries\redist\intel64\compiler;C:\ProgramData\Oracle\Java\javapath;C:\Python27;C:\Python27\Scripts;C:\Python37;C:\Python37\Scripts;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Thinkbox\Deadline8\bin;C:\Program Files\Common Files\Autodesk Shared\;C:\Program Files (x86)\QuickTime\QTSystem\;C:\ProgramData\chocolatey\bin;C:\Program Files\OpenSSL\bin;C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit\;C:\Program Files\TortoiseGit\bin;C:\Program Files (x86)\GnuWin32\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files\Perforce\;C:\Program Files\Docker\Docker\resources\bin;C:\ProgramData\DockerDesktop\version-bin;C:\Program Files\Git\cmd;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files\PuTTY\;C:\Users\irene\AppData\Local\Microsoft\WindowsApps;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Sublime Text 3;;C:\Users\irenec\AppData\Local\Programs\Microsoft VS Code\bin

{"is64Bit": true, "versionInfo": [2, 7, 18, "final", 0], "sysVersion": "2.7.18 (v2.7.18:8d21aa21f2, Apr 20 2020, 13:25:05) [MSC v.1500 64 bit (AMD64)]", "sysPrefix": "C:\\Python27"}
) (SyntaxError: Unexpected token T in JSON at position 1)
	at c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:24:202705
	at Object.t.getInterpreterInfo (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:31948)
	at processTicksAndRejections (internal/process/task_queues.js:93:5)
	at async c.u [as workerFunc] (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:52:4951)
	at async start (c:\Users\irenec\.vscode\extensions\ms-python.python-2021.12.1559732655\out\client\extension.js:93:29649)]

I'm using a sitecustomize folder as my PYTHONPATH variable value. Whenever python is run, it prints out that message TTF SITE CUSTOMIZE --> Using [X:] for Resources blah blah. It seems that's tripping up something expecting JSON?

@karthiknadig
Copy link
Member

@irenepc Yep that is what is causing this.

@karthiknadig
Copy link
Member

@karrtikr Does the updated interpreter check in main handle this scenario where some text can get printed out?

@karrtikr
Copy link

Yes but we only do that when using 'conda run' right now, we should do it for all.

@karrtikr
Copy link

@karthiknadig Should we do it for all scripts generally or just 'interpreterInfo.py'?

@karthiknadig
Copy link
Member

For now, we should update how we do interpreterInfo.py. One thing we could do is dump the json out to stdout but in a way where we can extract it even if there is text printed out (like wrapping JSON with some chevrons). I think that should improve this case, for the short term.

@karthiknadig
Copy link
Member

A regex like this should be able to extract the json from the stdout:
image

This is not a guaranteed solution, but it can work for most cases where python prints out to stdout on startup.

@karrtikr
Copy link

@karthiknadig There is another bug here, if the command errors out, I'm wondering why we're running it again and again infinitely, i.e discovery never stops? This is what is causing the list to flash and dissappear.

@karrtikr karrtikr changed the title Cannot Select Python Interpreter Cannot Select Python Interpreter when running python prints out more than the script output Jan 13, 2022
@karrtikr
Copy link

Hey @irenepc 👋 Please try out the VSIX https://github.com/microsoft/vscode-python/suites/4920855469/artifacts/141949826 and let us know if it doesn't help. Use Extension: Install from VSIX command to install the VSIX.

@irenepc
Copy link
Author

irenepc commented Jan 13, 2022

Ok, I'll give that a try. Thanks!

@irenepc
Copy link
Author

irenepc commented Jan 13, 2022

Launched after installing the VSIX, got this output

[DEBUG 2022-0-13 3:3:32.940]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.943]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.943]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.954]: Testing: Setting up watcher for y:\irenec\src
[INFO 2022-0-13 3:3:32.956]: [
  'Display locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-13 3:3:32.958]: Searching for conda.
[DEBUG 2022-0-13 3:3:32.965]: Probing conda binary: conda
[DEBUG 2022-0-13 3:3:32.969]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.969]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.974]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:32.974]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
> conda info --json
[DEBUG 2022-0-13 3:3:33.52]: Failed to spawn conda binary conda [Error: spawn conda ENOENT
	at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
	at onErrorNT (internal/child_process.js:465:16)
	at processTicksAndRejections (internal/process/task_queues.js:80:21)] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'spawn conda',
  path: 'conda',
  spawnargs: [ 'info', '--json' ]
}
[DEBUG 2022-0-13 3:3:33.53]: Searching for workspace virtual envs in: y:\irenec\src
[DEBUG 2022-0-13 3:3:33.54]: Getting roots
[DEBUG 2022-0-13 3:3:33.54]: Found roots
> C:\Python27\python.exe ~\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\interpreterInfo.py
> C:\Python37\python.exe ~\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\get_output_via_markers.py ~\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\interpreterInfo.py
[INFO 2022-0-13 3:3:33.354]: Found interpreter for C:\Python37\python.exe,c:\Users\irenec\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\get_output_via_markers.py,c:\Users\irenec\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\interpreterInfo.py
[DEBUG 2022-0-13 3:3:33.355]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.355]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.356]: Cached data exists getEnvironmentVariables, <No Resource>
[ERROR 2022-0-13 3:3:33.357]: [Error: Command failed: C:\Python27\python.exe c:\Users\irenec\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\get_output_via_markers.py c:\Users\irenec\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\interpreterInfo.py
  File "c:\Users\irenec\.vscode\extensions\ms-python.python-2022.0.1691563936-dev\pythonFiles\get_output_via_markers.py", line 10
    print(">>>PYTHON-EXEC-OUTPUT", end="")
                                      ^
SyntaxError: invalid syntax

	at ChildProcess.exithandler (child_process.js:317:12)
	at ChildProcess.emit (events.js:315:20)
	at maybeClose (internal/child_process.js:1048:16)
	at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)] {
  killed: false,
  code: 1,
  signal: null,
  cmd: 'C:\\Python27\\python.exe c:\\Users\\irenec\\.vscode\\extensions\\ms-python.python-2022.0.1691563936-dev\\pythonFiles\\get_output_via_markers.py c:\\Users\\irenec\\.vscode\\extensions\\ms-python.python-2022.0.1691563936-dev\\pythonFiles\\interpreterInfo.py'
}
[DEBUG 2022-0-13 3:3:33.358]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.358]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.358]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-0-13 3:3:33.454]: Getting roots
[DEBUG 2022-0-13 3:3:33.456]: Found roots
[DEBUG 2022-0-13 3:3:33.458]: Start watching root y:\irenec\src for globs ["python.exe","*/python.exe","*/Scripts/python.exe"]
[DEBUG 2022-0-13 3:3:33.458]: Start watching: y:\irenec\src with pattern python.exe using VSCode API
[DEBUG 2022-0-13 3:3:33.458]: Start watching: y:\irenec\src with pattern */python.exe using VSCode API
[DEBUG 2022-0-13 3:3:33.458]: Start watching: y:\irenec\src with pattern */Scripts/python.exe using VSCode API
[DEBUG 2022-0-13 3:3:33.578]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.578]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.579]: Cached data exists getEnvironmentVariables, <No Resource>
[DEBUG 2022-0-13 3:3:33.581]: Couldn't locate the conda binary.
[DEBUG 2022-0-13 3:3:33.581]: Couldn't locate the conda binary.
[INFO 2022-0-13 3:3:33.581]: Environments added to cache [{"name":"","location":"","kind":"global-other","executable":{"filename":"C:\\Python37\\python.exe","sysPrefix":"C:\\Python37","ctime":-1,"mtime":-1},"display":"Python 3.7.7 64-bit","version":{"major":3,"minor":7,"micro":7,"release":{"level":"final","serial":0},"sysVersion":"3.7.7 (tags/v3.7.7:d7c567b08f, Mar 10 2020, 10:41:24) [MSC v.1900 64 bit (AMD64)]"},"arch":3,"distro":{"org":"PythonCore","defaultDisplayName":"Python 3.7 (64-bit)"},"source":["path env var","windows registry"]}]
[INFO 2022-0-13 3:3:33.582]: [
  'Hide locator refreshing progress, Class name = p, completed in 0ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-13 3:3:33.582]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="workspace"-Arg-Separator-"autoSelectedWorkspacePythonInterpreter-y:\\irenec\\src"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.583]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.583]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.584]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.585]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.593]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.593]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:33.594]: Cached data exists getEnvironmentVariables, y:\irenec\src
Starting Pylance language server.
[DEBUG 2022-0-13 3:3:34.217]: Cached data exists getEnvironmentVariables, y:\irenec\src
[INFO 2022-0-13 3:3:34.238]: [
  'Starting language server, Class name = r, completed in 512ms, has a falsy return value, , Return Value: undefined'
]
[DEBUG 2022-0-13 3:3:34.240]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:34.240]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:34.241]: Cached data exists getEnvironmentVariables, y:\irenec\src
Diagnostic Code: InvalidPythonInterpreterDiagnostic, Message: No Python interpreter is selected. You need to select a Python interpreter to enable features such as IntelliSense, linting, and debugging.
[DEBUG 2022-0-13 3:3:39.795]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:39.795]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:3:39.795]: Cached data exists getEnvironmentVariables, extension-output-ms-python.python-#1

No interpreter was selected for me. I went to select one and the list doesn't flash and flicker anymore. Choosing Python 3.7.7 as the interpreter worked and seemed to stick.
Selecting Python27 as the interpreter doesn't work. This is the output for that

[DEBUG 2022-0-13 3:13:16.37]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined
[DEBUG 2022-0-13 3:13:16.37]: Cached data exists KeyPrefix=Cache_Method_Output_h.addKeyToStorage-Args="global"-Arg-Separator-"WORKSPACE_FOLDER_INTERPRETER_PATH_Y:\\IRENEC\\SRC"-Arg-Separator-undefined

I tried using the Python: Clear Internal Extension Cache command and trying to select python27, but got the same result.

@karrtikr
Copy link

Thanks for the logs, can you try this VSIX: https://github.com/microsoft/vscode-python/suites/4923442209/artifacts/142096276?

Although do note that as Python 2.7 is now deprecated, we aren't actively supporting it anymore, I'm making an exception here. You should probably migrate to using Python3 soon.

@irenepc
Copy link
Author

irenepc commented Jan 13, 2022

That's fair. Our company does a lot work with Maya so we're stuck with 27 for a little longer, but I appreciate the help!
PS: everything behaves as expected after installing that last VSIX.
Thank you!

@irenepc irenepc closed this as completed Jan 13, 2022
@karthiknadig karthiknadig added the verified Verification succeeded label Jan 24, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug verified Verification succeeded
Projects
None yet
3 participants