ADS Error switching Kernel in PowerShell Notebook (8/31)

When switching or attempting to switch Kernel, you get a prompt to install Python on clicking yes, it errors with the following message

Could not start session: Installing Notebook dependencies failed with error:
Process exited with with error code: 1. StdErr Output: WARNING: Retrying (Retry(total=4,
connect=None, read=None, redirect=None, status=None)) after connection broken by
‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed
(_ssl.c:841)’),)’: /simple/jupyter/ WARNING: Retrying (Retry(total=3, connect=None,
read=None, redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1,
‘[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)’),)’
: /simple/jupyter/ WARNING: Retrying (Retry(total=2, connect=None, read=None,
redirect=None, status=None)) after connection broken by ‘SSLError(SSLError(1, ‘
[SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:841)’),)’:
/simple/jupyter/ WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None))
after connection broken by ‘SSLError(SSLError(1, ‘[SSL: CERTIFICATE_VERIFY_FA…

This can be down to proxy/vpn issue in a corporate environment

  1. https://go.microsoft.com/fwlink/?linkid=2109051
  2. Extract the zip file to C:\python-3.6.6-win-x64-0.0.1-offline\0.0.1
  3. open CMD and connect to C:\python-3.6.6-win-x64-0.0.1-offline\0.0.1
  4. run C:\python-3.6.6-win-x64-0.0.1-offline\0.0.1\installLocalPythonPackages.bat C:\python-3.6.6-win-x64-0.0.1-offline\0.0.1
  5. Open up user setting.json file located in C:\Users\Username\AppData\Roaming\azuredatastudio\User\settings.json or through setting
  6. Open up settings and find notebook.pythonPath and set to C:\python-3.6.6-win-x64-0.0.1-offline\
  7. Search for notebook.useExistingPython and check its set to false (unticked)
  8. Restart ADS

This was an issue I came across using in a corporate environment, the Github pages for AzureDataStudio have a wealth of useful information, this was one such item I came across the fix for, unfortunately, there are a lot of issues (and lots closed) so not always easy to find what you are looking for so re-blogged this.

This was located from https://github.com/microsoft/azuredatastudio/issues/8204

 

This entry was posted in Uncategorized. Bookmark the permalink.

Leave a comment