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

Python installation not found #14747

Closed
gruvw opened this issue Nov 16, 2020 · 17 comments
Closed

Python installation not found #14747

gruvw opened this issue Nov 16, 2020 · 17 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@gruvw
Copy link

gruvw commented Nov 16, 2020

Opening new issue as asked by @karrtikr in the old issue and by @brettcannon in Related #9576:

There is an issue when I launch VsCode: the python extension says: "Python is not installed. Please download and install Python before using the extension."
But when I do Ctrl-Shift-P and Select Python Interpreter there is none proposed as it was before updating vscode.
On top of that I can run my python program by clicking where the run icon (green arrow, top right corner) should be but the icon is missing (blank space).

You can see everything on the following screenshots:
image
image

  • Maybe it is a permission issue where vscode would not be allowed to access /usr/bin/python3 or look for python installation, I don't know...
  • It could also be related with electron: I understood that there might be a workaround for Arch users but I still did not find any working solution for Ubuntu based distro.

Environment data

  • VS Code version: 1.51.1
  • Extension version (available under the Extensions sidebar): v2020.11.358366026
  • OS and version: Linux (Pop_OS v20.10)
  • Python version: Multiple versions but 3.8.3 64-bit
  • Type of virtual environment used: N/A
  • Value of the python.languageServer setting: "Pylance", also works with "Microsoft"

Expected behaviour

Found python interpreter and launched without error. List of all python interpreters found on my computer when selecting python interpreter.

Actual behaviour

Error when launching vscode, no debug capability. Python interpreter not found (even when adding paths to settings.json). Still can execute scripts. No green arrow launch icon but clicking on where it is supposed to be still triggers the run through the terminal.

Additional information

Python output logs:

I had had installed with the PopShop but I removed it and Installed the October update it with the .deb version.

Hope it helps. Ask me if you need any additional info.

Hope someone will be able to help me soon as it is a very annoying issue...
Thanks

@gruvw gruvw added triage-needed Needs assignment to the proper sub-team bug Issue identified by VS Code Team member as probable bug labels Nov 16, 2020
@ghost ghost removed the triage-needed Needs assignment to the proper sub-team label Nov 17, 2020
@karrtikr
Copy link

Just want to quickly say we acknowledge the issue and will be looking into it soon.

@XO490

This comment has been minimized.

@karrtikr

This comment has been minimized.

@XO490

This comment has been minimized.

@karrtikr

This comment has been minimized.

@aasmpro
Copy link

aasmpro commented Nov 21, 2020

same issue.

@hyperstown
Copy link

Same issue here.
Version: 1.51.1
Electron: 9.3.4
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.8.18-1-MANJARO
Python: 3.8.6

@aasmpro
Copy link

aasmpro commented Nov 22, 2020

Same issue here.
Version: 1.51.1
Electron: 9.3.4
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.8.18-1-MANJARO
Python: 3.8.6

check out #14720 (comment)
that might work for u too.

@hyperstown
Copy link

Same issue here.
Version: 1.51.1
Electron: 9.3.4
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Linux x64 5.8.18-1-MANJARO
Python: 3.8.6

check out #14720 (comment)
that might work for u too.

It worked. Thank you. I hope it will be fixed though.

@karrtikr
Copy link

@gruvw Does the workaround regarding downgrading electron work for you?

@karrtikr karrtikr added the info-needed Issue requires more information from poster label Nov 25, 2020
@gruvw
Copy link
Author

gruvw commented Nov 25, 2020

As I am not running Arch Linux, there's no work around for me yet.

@karrtikr
Copy link

@gruvw The workaround is not specific for Arch users, it can work for other Ubuntu based distros as well, which is why I'm asking you to try it.

@gruvw
Copy link
Author

gruvw commented Nov 25, 2020

What are the commands to execute for Ubuntu?

@karrtikr
Copy link

I'm not sure but it is an electron issue: microsoft/vscode#110322, so downgrading electron for your specific OS can potentially solve it, as it has for other ubuntu users. Does the same command microsoft/vscode#110322 (comment) or #14720 (comment) not help?

@ghost
Copy link

ghost commented Dec 10, 2020

I'm having the same issues on Windows:

Version: 1.51.1 (user setup)
Commit: e5a624b788d92b8d34d1392e4c4d9789406efe8f
Date: 2020-11-10T23:34:32.027Z
Electron: 9.3.3
Chrome: 83.0.4103.122
Node.js: 12.14.1
V8: 8.3.110.13-electron.0
OS: Windows_NT x64 10.0.19042

Any workarounds regarding other OSs than Linux? I tried downgrading to 1.50.x and 1.49.x but it didn't change anything. Thanks!

EDIT:

I downgraded to the following version which works fine for me (last of 2019):

Version: 1.41.1 (user setup)
Commit: 26076a4de974ead31f97692a0d32f90d735645c0
Date: 2019-12-18T14:58:56.166Z
Electron: 6.1.5
Chrome: 76.0.3809.146
Node.js: 12.4.0
V8: 7.6.303.31-electron.0
OS: Windows_NT x64 10.0.19042

@karrtikr
Copy link

@n3bul0 Your issue is likely different, please open up a new issue with template logs filled.

@karrtikr
Copy link

Closing as no further info was provided.

@ghost ghost removed the triage label Dec 16, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

6 participants