microsoft / azuredatastudio

Azure Data Studio is a data management and development tool with connectivity to popular cloud and on-premises databases. Azure Data Studio supports Windows, macOS, and Linux, with immediate capability to connect to Azure SQL and SQL Server. Browse the extension library for more database support options including MySQL, PostgreSQL, and MongoDB.
https://learn.microsoft.com/sql/azure-data-studio
MIT License
7.59k stars 909 forks source link

Trying to activate Python or PowerShell Kernel failure #26075

Open abacrotto opened 5 days ago

abacrotto commented 5 days ago

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 (49c73a84388731fec941dac8d938345ac16bd470, 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 commented 3 days ago

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

redstor-albe commented 3 days ago

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

ssteiner-ballhort commented 3 days ago

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 commented 1 day ago

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 commented 9 hours ago

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

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

abacrotto commented 7 hours ago

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.