question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Can't install .NET Jupyter in WSL2 after installing .NET Core 5.0

See original GitHub issue

Describe the bug

Please provide as much information as you can.

After installing .NET Components in Linux Ubuntu 20.04, I can’t proceed to install Jupyter interactive:

(base) max_t@maxtlaptop1:~$ dotnet interactive jupyter install
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
(base) max_t@maxtlaptop1:~$

Please complete the following:

Which version of .NET Interactive are you using? There are a few ways to find this out:

  • In a notebook, run the #!about magic command.
  • At the command line, run dotnet interactive --version.
  • In VS Code, run "Report installed version for .NET Interactive` and copy the version number from the status popup.

Following .NET command didn’t work:

(base) max_t@maxtlaptop1:~$ dotnet interactive --versions
It was not possible to find any compatible framework version
The framework 'Microsoft.AspNetCore.App', version '3.1.0' was not found.
  - The following frameworks were found:
      5.0.0 at [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]

You can resolve the problem by installing the specified framework and/or SDK.

The specified framework can be found at:
  - https://aka.ms/dotnet-core-applaunch?framework=Microsoft.AspNetCore.App&framework_version=3.1.0&arch=x64&rid=ubuntu.20.04-x64
(base) max_t@maxtlaptop1:~$

Strangely, the error is pointing to “framework_version=3.1.0”.

This other command works:

(base) max_t@maxtlaptop1:~$ dotnet --version
5.0.100
(base) max_t@maxtlaptop1:~$

Listing runtimes:

(base) max_t@maxtlaptop1:~$ dotnet --list-runtimes
Microsoft.AspNetCore.App 5.0.0 [/usr/share/dotnet/shared/Microsoft.AspNetCore.App]
Microsoft.NETCore.App 5.0.0 [/usr/share/dotnet/shared/Microsoft.NETCore.App]
(base) max_t@maxtlaptop1:~$
  • OS
    • [ X] Windows 10 - ver.2004 (OSBuild 20257.1)
    • macOS
    • [ X] Linux (Please specify distro) - Ubuntu 20.04
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem. Jupyter_InstallError_01_2020-11-16_10-19-56

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:15 (5 by maintainers)

github_iconTop GitHub Comments

3reactions
MaximoTrinidadcommented, Jan 18, 2021

@iSazonov,

the error finally is resolved after updating the “dotnet. interactive” component with the following command in WSL:

PS /home/max_t> dotnet tool update -g --add-source "https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet-tools/nuget/v3/index.json" Microsoft.dotnet-interactive

Then followed by the command that used to would failed at the end;

PS /home/max_t> dotnet interactive jupyter install

Welcome to .NET Interactive!
---------------------
Telemetry
---------
The .NET Core tools collect usage data in order to help us improve your experience.The data is anonymous and doesn't include command-line arguments. The data is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_INTERACTIVE_CLI_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

Installing using jupyter kernelspec module.
Installed ".NET (C#)" kernel.
Installing using jupyter kernelspec module.
Installed ".NET (PowerShell)" kernel.
Installing using jupyter kernelspec module.
Installed ".NET (F#)" kernel.

no error_2021-01-17_20-54-02

I updated PowerShell global ;

PS /home/max_t> dotnet tool update -g Microsoft.dotnet-interactive
Tool 'microsoft.dotnet-interactive' was reinstalled with the latest stable version (version '1.0.155302').
PS /home/max_t> dotnet tool update -g powershell
Tool 'powershell' was successfully updated from version '7.1.0' to version '7.1.1'.

But when run jupyter notebook and use the $PSVersion it’s showing an older version that doesn’t exist in my system.

So my question is when can I expect the newer version of PowerShell to BE available for Notebook?

nopwsh update_2021-01-17_20-54-02

2reactions
iSazonovcommented, Jan 19, 2021

So my question is when can I expect the newer version of PowerShell to BE available for Notebook?

/cc @TylerLeonhardt

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Install the Jupyter Notebook Server in WSL2
Copy the command from below these instructions; Paste the command into PowerShell; Press “Enter”. python -m pip install jupyter ...
Read more >
Configuring Jupyter Notebook in Windows Subsystem ...
We are going to see how to: Install and configure a WSL2; Install and configure Windows Terminal; Install Miniconda and common libraries; Launch...
Read more >
Configuring WSL2 for .NET Development
After installing the latest SDK using apt-get install follow below steps. Download script.
Read more >
Why does the .NET jupyter installation fail?
I followed the link on the bottom, installed the framework, and after that ran dotnet interactive jupyter install again. It then failed again....
Read more >
Tag: Windows Subsystem for Linux
It is the way! First, you must follow the instructions for installing .NET Core for Ubuntu 20.04 from the Microsoft Documentation: https://docs.microsoft.com/ ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found