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 is not downloaded #10552

Closed
TogrulKazimov opened this issue Jun 14, 2021 · 18 comments
Closed

Python is not downloaded #10552

TogrulKazimov opened this issue Jun 14, 2021 · 18 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@TogrulKazimov
Copy link

Issue Type: Bug

Creating jupyter notebook file.
print('hello world')
expected: hello world
actual: notification from jupyter notebook - Python is not installed. Please download and install Python in order to execute cells in this notebook.(jupyter extension)
P.S. I have downloaded Python 3.9, selected it as interpreter. It perfectly works in Anaconda's Jupyter.

Extension version: 2021.6.914258744
VS Code version: Code 1.57.0 (b4c1bd0a9b03c749ea011b06c6d2676c8091a70c, 2021-06-09T17:18:42.354Z)
OS version: Windows_NT x64 10.0.19041
Restricted Mode: No

System Info
Item Value
CPUs Intel(R) Core(TM) i5-4210U CPU @ 1.70GHz (4 x 1696)
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) 5.91GB (2.21GB free)
Process Argv --crash-reporter-id e4816a9b-156d-4ca1-9430-5b5944115f67
Screen Reader no
VM 0%
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
pythonvspyt678:30270856
pythonvspyt602:30300191
vspor879:30202332
vspor708:30202333
vspor363:30204092
vstes627:30244334
pythonvspyt639:30300192
pythontb:30283811
pythonvspyt551cf:30311713
vspre833:30267464
pythonptprofiler:30281270
vshan820:30294714
pythondataviewer:30285071
vscus158:30286553
pythonvsuse255cf:30319632
vscgsv2:30307504
vscorehov:30309549
vscod805:30301674
binariesv517cf:30312826

@joyceerhl
Copy link
Contributor

Looks like we're creating a dummy no Python controller too eagerly:

if (this.pythonExtensionChecker.isPythonExtensionInstalled) {
await this.handleExecutionWithoutPython();

Could you please provide the logs from the Jupyter output panel? Thanks!

@rchiodo
Copy link
Contributor

rchiodo commented Jun 17, 2021

This looks to be the python extension not telling us there are any interpreters.

@rchiodo rchiodo transferred this issue from microsoft/vscode-jupyter Jun 17, 2021
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jun 17, 2021
@karthiknadig karthiknadig added area-environments bug Issue identified by VS Code Team member as probable bug and removed triage-needed Issue needs to be triaged labels Jun 21, 2021
@paulacamargo25
Copy link

Hi, thanks for the bug report, can you please share the Python Output Logs.

@paulacamargo25 paulacamargo25 added the info-needed Issue requires more information from poster label Jun 22, 2021
@TogrulKazimov
Copy link
Author

Looks like we're creating a dummy no Python controller too eagerly:

if (this.pythonExtensionChecker.isPythonExtensionInstalled) {
await this.handleExecutionWithoutPython();

Could you please provide the logs from the Jupyter output panel? Thanks!

Sorry for the late reply, I did not get check if somebody replied to the issue.
Screenshot_98
This is the Output panel for Jupyter. Both Jupyter and Python extension says the same thing - "python is not installed".
image

@TogrulKazimov
Copy link
Author

Looks like we're creating a dummy no Python controller too eagerly:

if (this.pythonExtensionChecker.isPythonExtensionInstalled) {
await this.handleExecutionWithoutPython();

Could you please provide the logs from the Jupyter output panel? Thanks!

Sorry for the late reply, I did not get check if somebody replied to the issue.
Screenshot_98
This is the Output panel for Jupyter. Both Jupyter and Python extension says the same thing - "python is not installed".
image

@paulacamargo25

@abhirupa-tech
Copy link

Facing the same issue as of today, 20th August, 2021.

Bug: Python interpreter not detected in Jupyter Notebook.

Error message: Python is not installed. Please download and install Python in order to execute cells in this notebook.

Reopening this issue, would like to know what can be done to fix this

@rchiodo
Copy link
Contributor

rchiodo commented Aug 20, 2021

@Onyxe we'd need to see the logs for the 'jupyter' output tab and the 'python' output tab. One or both of those will have more information.

@rchiodo rchiodo reopened this Aug 20, 2021
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Aug 20, 2021
@karthiknadig
Copy link
Member

Might be related microsoft/vscode#131232

There seems to be some issue with installation that seems to hit a few machines.

@karthiknadig karthiknadig removed the triage-needed Issue needs to be triaged label Aug 23, 2021
@paulacamargo25 paulacamargo25 removed the info-needed Issue requires more information from poster label Sep 10, 2021
@paulacamargo25
Copy link

Hi @Onyxe can you please update VSCode to the last version and try again?

@paulacamargo25 paulacamargo25 added the info-needed Issue requires more information from poster label Oct 13, 2021
@brettcannon
Copy link
Member

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

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jan 14, 2022
@minsa110
Copy link
Contributor

Reopening as it still seems to be an issue

video

FYI @karrtikr @IanMatthewHuff

@minsa110 minsa110 reopened this Jun 23, 2022
@github-actions github-actions bot added the triage-needed Issue needs to be triaged label Jun 23, 2022
@microsoft microsoft unlocked this conversation Jun 23, 2022
@karrtikr karrtikr transferred this issue from microsoft/vscode-python Jun 23, 2022
@karrtikr
Copy link
Contributor

The prompt in the video comes from Jupyter itself, I suspect our APIs are not being re-queried and we're relying on the cache in the previous session for this info.

@karrtikr karrtikr added bug Issue identified by VS Code Team member as probable bug and removed bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster area-environments labels Jun 23, 2022
@rchiodo rchiodo added the info-needed Issue requires more information from poster label Jun 23, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Jun 23, 2022

@minsa110 can you post a gif or give more details? We can't seem to open the video.

@rchiodo rchiodo removed the triage-needed Issue needs to be triaged label Jun 23, 2022
@minsa110
Copy link
Contributor

minsa110 commented Jun 23, 2022

Does this video work?

In case it doesn't work... :)

I was working with:

  • Windows machine
  • VS Code and Jupyter extension is installed, but Python extension is NOT installed

Steps to repro:

  1. Create a new ipynb file and click "Run" cell
  2. Click "Python 3" from the command palette
  3. Follow the prompts to install Python extension (from the popup message, "Python Extension required to run Python notebooks")
  4. Click "Run" button again to run cell
  5. 🪲 I see a prompt to install Python on my system even when I have Python already on my system
  6. 🪲 You have to wait long enough for the extensions to discover kernels / interpreters and for them to show up in the kernel selector (in any case, you'd still have to "Cancel" out of the error message from step 6--when the extensions finally discover kernels / interpreters, it still doesn't X out of the error message automatically)

@IanMatthewHuff
Copy link
Member

This is the old flow using the dummy kernel, so I'm not sure if it's worth looking into. Do you see the same issue with new bits with the commands?

@minsa110
Copy link
Contributor

minsa110 commented Aug 8, 2022

Old flow is not worth looking into + new bits doesn't have the dummy kernel, so closing

@minsa110 minsa110 closed this as completed Aug 8, 2022
@speedbunny
Copy link

Issue happening again as of Feb 2023.

@Wang-stables
Copy link

I installed the new extension of python and jupyter notebook for VScode and problem had fix. I notice that the extension of Python on VScode had changed recently, maybe it's a hotfix or actually the reason for bug?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 8, 2023
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