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

Not able to connect Python with it #26122

Closed
joshi-bhaskar opened this issue Dec 24, 2024 · 4 comments
Closed

Not able to connect Python with it #26122

joshi-bhaskar opened this issue Dec 24, 2024 · 4 comments

Comments

@joshi-bhaskar
Copy link

Type: Bug

I've installed Python from Microsoft store but I'm not able to connect it. showing erorr:

@ Failed to change kernel. Kernel SQL will be used. Error was:
Installing Notebook dependencies failed with error: Command
failed: "C:\Program
Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.
12.2288.O_x64_qbz5n2kfra8p0\python.exe" -c "import
platform;print(platform.python_version())" Access is denied.

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

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i5-1135G7 @ 2.40GHz (8 x 2419)
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.79GB (6.31GB free)
Process Argv
Screen Reader no
VM 0%
Extensions: none
@kburtram
Copy link
Member

Thanks for reporting this issue. This seems to be related to the permission restrictions of the Python installation from the Microsoft Store. The error indicates that ADS is trying to execute a Python command, but access is denied:

"C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.12_3.12.2288.0_x64_qbz5n2kfra8p0\python.exe" -c "import platform;print(platform.python_version())"

Suggestions to Resolve:
Try a Different Python Installation:
Install Python from python.org or a package manager like Chocolatey or Anaconda. Ensure the new installation is in your PATH.

Run ADS as Administrator:
Right-click on the Azure Data Studio shortcut and choose Run as administrator to check if permissions are the issue.

Manually Install Notebook Dependencies:
Install Jupyter dependencies manually in your Python environment:

pip install jupyter notebook

Check Python Interpreter in ADS:
Use the Command Palette (Ctrl+Shift+P) to select the correct Python interpreter for your Notebooks.

Let us know if any of these steps help!

@kburtram
Copy link
Member

Closing as outside the scope of ADS, since it can't direct control the permissions of the Python installation.

@joshi-bhaskar
Copy link
Author

It says:
Failed to change kernel. Kernel SQL will be used. Error was: Installing Notebook dependencies failed with error: Process exited with error code: 1. StdErr Output: WARNING: Ignoring invalid distribution ~otebook (C:\Users\Bhaskar Joshi\AppData\Local\Programs\Python\Python313\Lib\site-packages) ERROR: Cannot install ipykernel==5.5.5, jupyter==1.0.0 and notebook because these package versions have conflicting dependencies. ERROR: ResolutionImpossible: for help visit https://pip.pypa.io/en/latest/topics/dependency-resolution/#dealing-with-dependency-conflicts

Image

This thing is creating problem
Image

@joshi-bhaskar
Copy link
Author

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

3 participants
@kburtram @joshi-bhaskar and others