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

Trying to activate Python or PowerShell Kernel failure #26075

Open
abacrotto opened this issue Nov 23, 2024 · 16 comments
Open

Trying to activate Python or PowerShell Kernel failure #26075

abacrotto opened this issue Nov 23, 2024 · 16 comments

Comments

@abacrotto
Copy link

Type: Bug

I am trying to start using PowerShell Kernel in my ADS Notebooks. When I select "PowerShell" in the Kernel combo, ADS goes to a dialog indicating there is the need to install dependencies. Then I follow prompts (I have installed python 3.8.10 that is detected by ADS) but, when y press the "Next" button to install the python packages needed, I get an error:

stderr: ERROR: Cannot install ipykernel==5.5.5, jupyter==1.0.0, jupyterlab==4.2.6 and notebook because these package versions have conflicting dependencies.
stderr: 
stdout: 
stdout: The conflict is caused by:
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.6 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.5 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.4 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.3 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.2 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.1 depends on ipykernel>=6.5.0
stdout:     The user requested ipykernel==5.5.5
stdout:     jupyter 1.0.0 depends on ipykernel
stdout:     jupyterlab 4.2.0 depends on ipykernel>=6.5.0
stdout: 
stdout: To fix this you could try to:
stdout: 1. loosen the range of package versions you've specified
stdout: 2. remove package versions to allow pip to attempt to solve the dependency conflict

Azure Data Studio version: azuredatastudio 1.50.0 (49c73a8, 2024-11-17T22:41:05.327Z)
OS version: Windows_NT x64 10.0.26100
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1195G7 @ 2.90GHz (8 x 2918)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 15.78GB (2.96GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none ![Image](https://github.com/user-attachments/assets/dddce79a-f5e0-445a-bac0-c2d20142e00c) ![Image](https://github.com/user-attachments/assets/b827412c-532f-4334-9628-5ffdf4a29e4f)
@DearPeter
Copy link

I have the same issue when try to reinstall notebook dependencies.

@redstor-albe
Copy link

redstor-albe commented Nov 25, 2024

Also seeing same issue, but with Python 3.13 on Windows 11 on ADS 1.50.0

@ssteiner-ballhort
Copy link

Python only works for me after reinstall (also using Python 3.8.10 on Windows 10). It wants me to install the notebook module version 7.2.2 but then doesn't work after I install the new version (currently using version 6.5.6)

@BlackholeBun
Copy link

Same problem here. Trying to enable either python core or powershell on mac. It looks like Notebook 7.2.2 needs ipykernel>=6.29.5, but ADS is specifying 5.5.5.

@rsulak8
Copy link

rsulak8 commented Nov 28, 2024

The same issue, ADS reinstalled, fresh installation of Python 3.8.10 following this:

https://learn.microsoft.com/en-us/azure-data-studio/notebooks/notebooks-python-offline-installation

  • rust cargo installed.

ADS 1.50 still not working with Python in notebooks... 👎

@abacrotto
Copy link
Author

Should we see the "requirements.txt" file somewhere in our ADS directory so we can lift some of the restrictions?
Does anyone know where the file could be located?

Thanks in advance.
Ariel.

@cross-apply
Copy link

I am also unable to switch to Python in ADS 1.5. I've tried multiple versions of Python (3.8, 3.10 and 3.12) with the same result. ERROR: Cannot install ipykernel==5.5.5, jupyter==1.0.0 and notebook

@Bowside
Copy link

Bowside commented Dec 9, 2024

Same issue for me, Notebook 7.2.2 needs ipykernel>=6.29.5, but ADS is specifying 5.5.5.

@dannysnowflake1
Copy link

Is there any workaround to this? I'm completely blocked from using ADS currently. ADS crashed and asked me to resupply my python information, and now I can't get into ADS because of the conflicting dependencies issue.

@ssteiner-ballhort
Copy link

ssteiner-ballhort commented Dec 10, 2024 via email

@lily407
Copy link

lily407 commented Dec 10, 2024

Same issue. I have uninstalled and reinstalled, restarted at least a dozen times....

@sam-nolan-tearfund
Copy link

sam-nolan-tearfund commented Dec 10, 2024

Same issue. @erpett 1.5.0 appears currently broken due to this because of a bump to the notebook version performed by @gy-mate and merged by @kburtram.
https://github.com/microsoft/azuredatastudio/blame/49c73a84388731fec941dac8d938345ac16bd470/extensions/notebook/src/jupyter/requiredJupyterPackages.ts#L21-L25.
Change was merged in this PR: #25899

@gy-mate
Copy link
Contributor

gy-mate commented Dec 10, 2024

@sam-nolan-tearfund I guess all other Python package versions need to be bumped as well (if possible).

I'm sorry that my PR (#25899) caused the problem—I was trying to fix another bug with it.

@redstor-albe
Copy link

@sam-nolan-tearfund I guess all other Python package versions need to be bumped as well (if possible).

I'm sorry that my PR (#25899) caused the problem—I was trying to fix another bug with it.

[@gy-mate] It happens. Any workarounds we can try in the meantime? I have everything in notebooks, so this renders the software useless I'm afraid.

@lily407
Copy link

lily407 commented Dec 13, 2024

Found a workaround someone posted in another ticket for the same issue

@abacrotto
Copy link
Author

I am feeling terribly useless. Can not follow the steps in that workaround. Paths do not match my computer configuration. When I try to install the notebook and ipykernel with

python.exe -m pip install --user "notebook==6.5.5" "ipykernel==5.5.5"

I get a ton of errors.

Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests