Skip to content

Not able to select Python intrepreter #18086

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

Closed
1 task done
yash-pandey24 opened this issue Nov 28, 2021 · 6 comments
Closed
1 task done

Not able to select Python intrepreter #18086

yash-pandey24 opened this issue Nov 28, 2021 · 6 comments
Assignees
Labels
area-environments Features relating to handling interpreter environments bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team

Comments

@yash-pandey24
Copy link

VS Code version

1.62.3

Extension version

v2021.11.1422169775

OS type

Windows

OS version

10

Python distribution

python.org

Python version

3.10.0

Language server

Default

Expected behaviour

When I opened my vscode I was expecting that my python ineterpreter that I have just installed must have been detected. But to my surprise on the bottom left corner it showed that "⚠ select python interpreter". So when I clicked on it I expected to see the interpreter of my choice.

Actual behaviour

The actual behaviour was highly unexpected. The python interpreter was not showing up. It was just refreshing python interpreter for half an hour but no interpreter was coming. Below is the screenshot attached to the problem. Python 3.10.0 interpreter is not showing up.

Steps to reproduce

Screenshot (1967)

Logs

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@yash-pandey24 yash-pandey24 added bug Issue identified by VS Code Team member as probable bug triage-needed Needs assignment to the proper sub-team labels Nov 28, 2021
@karthiknadig karthiknadig added area-environments Features relating to handling interpreter environments triage and removed triage-needed Needs assignment to the proper sub-team labels Nov 29, 2021
@kimadeline
Copy link

Hi @cherry123-rgb, thank you for reaching out.

Can you select the interpreter if you restart VS Code? The official Python installer updates the Windows registry when installed (see more info here), and as such the extension won't be able to discover this Python interpreter until VS Code is restarted.

@kimadeline kimadeline added the info-needed Issue requires more information from poster label Nov 29, 2021
@yash-pandey24
Copy link
Author

Hi @kimadeline , thanks a lot for helping.

I have tried reloding and restarting the VS Code but the problem still persists

@kochuyt
Copy link

kochuyt commented Nov 30, 2021

Symptoms described here look to be the same as those in #17941

@kimadeline
Copy link

@cherry123-rgb by problem, do you mean the interpreter not appearing, or the interpreter list being stuck in refreshing mode?

Could you set the python.logging.level setting to debug, and copy the content of the Python output channel here?

image

@yash-pandey24
Copy link
Author

@cherry123-rgb by problem, do you mean the interpreter not appearing, or the interpreter list being stuck in refreshing mode?

Could you set the python.logging.level setting to debug, and copy the content of the Python output channel here?

image

interpreter list is struck in refreshing mode but to my surprise the python code is running fine without any difficulties
Screenshot (1969)

@brettcannon brettcannon removed the info-needed Issue requires more information from poster label Feb 4, 2022
@karthiknadig karthiknadig added triage-needed Needs assignment to the proper sub-team and removed triage labels May 4, 2022
@karthiknadig
Copy link
Member

Environment discover has been redone, so this should not occur anymore. If this occurs please file a bug using instructions here to create a new bug with all the critical details we need for diagnosis.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 1, 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 triage-needed Needs assignment to the proper sub-team
Projects
None yet
Development

No branches or pull requests

5 participants