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

Failed to change kernel #23954

Closed
Vinayak1812 opened this issue Jul 21, 2023 · 8 comments
Closed

Failed to change kernel #23954

Vinayak1812 opened this issue Jul 21, 2023 · 8 comments

Comments

@Vinayak1812
Copy link

Type: Bug

Failed to change kernel. Kernel SQL will be used. Error was: Notebook process exited prematurely with error code: 1. Std Err Output: Traceback (most recent call last): File "c:\Program Files\Azure Data Studio\resources\app\extensions\notebook\resources\python Scripts\startNotebook.py", line 1, in import notebook.notebookapp ModuleNotFoundError: No module named 'notebook.notebookapp'

Azure Data Studio version: azuredatastudio 1.44.1 (8f53a31, 2023-06-01T02:12:48.765Z)
OS version: Windows_NT x64 10.0.22623
Restricted Mode: No
Preview Features: Enabled
Modes:

System Info
Item Value
CPUs Intel(R) Core(TM) i5-10300H CPU @ 2.50GHz (4 x 2496)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: disabled_off
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_renderer: enabled_on
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 7.91GB (1.48GB free)
Process Argv
Screen Reader no
VM 0%
Extensions (13)
Extension Author (truncated) Version
admin-pack Mic 0.0.2
agent Mic 0.49.0
azuredatastudio-mysql Mic 1.0.0
azuredatastudio-postgresql Mic 0.4.2
dacpac Mic 1.13.0
datavirtualization Mic 1.13.2
import Mic 1.5.5
machine-learning Mic 0.12.0
powershell ms- 2023.6.0
profiler Mic 0.12.2
schema-compare Mic 1.19.0
sql-assessment Mic 0.6.4
sql-database-projects Mic 1.1.1
@jrmclennan
Copy link

I have the same issue. Exact same error.

@olliescase
Copy link

olliescase commented Jul 27, 2023

Same issue on:
MacBook Pro M2 13" 2022 (MacOS 13.4.1 (c))

Ran setup for python using /opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11

I have additionally tried installing manually this notebook package via pip to no success. Here is the log, sanitised:

... Ensuring /Users/{name}/Library/Jupyter/instances/{uuid} exists
... Ensuring /Users/{name}/Library/Jupyter/instances/{uuid}/config exists
... Ensuring /Users/{name}/Library/Jupyter/instances/{uuid}/data exists
... Ensuring /Users/{name}/Library/Jupyter/instances/{uuid}/config/custom exists
... Ensuring /Users/{name}/Library/Jupyter/kernels exists
... Starting Notebook server
    > "/opt/homebrew/opt/python@3.11/Frameworks/Python.framework/Versions/3.11/bin/python3" "/Applications/Azure Data Studio.app/Contents/Resources/app/extensions/notebook/resources/pythonScripts/startNotebook.py" --no-browser --ip=127.0.0.1  --no-mathjax --notebook-dir "/Users/{name}" --NotebookApp.token={token}

And this produces the following error:

Failed to change kernel. Kernel SQL will be used. Error was: Notebook process exited prematurely with error code: 1. StdErr Output: Traceback (most recent call last): File "/Applications/Azure Data Studio.app/Contents/Resources/app/extensions/notebook/resources/pythonScripts/startNotebook.py", line 1, in <module> import notebook.notebookapp ModuleNotFoundError: No module named 'notebook.notebookapp'

I believe this is a duplicate of #23945

@gitadeb
Copy link

gitadeb commented Jul 27, 2023

I have exactly the same issue & error - running ADS on Win10.

Same for the co-worker I'm trying to resolve the issue for - all I had to do to replicate his error was to install ADS on Win10 & try to open a Python Notebook. Python install went through without issue.

Azure Data Studio
Version 1.44.1 (user setup)
Date: 2023-06-01T02:12:48.765Z
OS version: Windows_NT x64 10.0.19044

@Vinayak1812
Copy link
Author

Actually I solved that problem

The best way is to delete all python version from your computer after that verify by typing in cmd

code: python --version

go to advance environment setting and delete the path of python after that uninstall your azure data studio and download the latest version of azure data studio

after download anaconda environment and by that you can use jupyter in your any IDE like vs code and after change the kernel in azure data studio you can get the python3

@olliescase
Copy link

olliescase commented Aug 2, 2023

Think this should be closed as its a duplicate of #23945 (and diagnostics/workarounds are being made in both)

The best way is to delete all python version from your computer after that verify by typing in cmd

Without uninstalling/removing python at all, if notebook is installed via pip, you can just do:

pip3 install notebook==6.5.5

Edit: sorry this didn't mean to sound so aggressive - upon re-reading it felt like it might have come across that way! Good job in finding the issue and getting to a solution, I just meant to say that it would probably save people some time to consolidate where the feedback and contributions to this bug are going

@Vinayak1812
Copy link
Author

thanks for giving me this another way @olliescase I will definitely try this .

@AmmarSahyoun
Copy link

Solved! By downgrading the version of notebook from 7.0.1 to 6.5.5 Many thanks @olliescase.

@lucyzhang929
Copy link
Contributor

Closing as a duplicate of #23945.

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

No branches or pull requests

7 participants