Skip to content
This repository has been archived by the owner on Nov 17, 2021. It is now read-only.

Installation #5

Closed
ghost opened this issue Jun 28, 2017 · 10 comments
Closed

Installation #5

ghost opened this issue Jun 28, 2017 · 10 comments

Comments

@ghost
Copy link

ghost commented Jun 28, 2017

Hii,
This is very nice!
I have some Problems with the installing, I get a dead kernel...
Did you know the dependencies

@ghost ghost closed this as completed Jun 28, 2017
@ghost ghost reopened this Jun 28, 2017
@Jaykul
Copy link
Owner

Jaykul commented Jun 29, 2017

I think I packaged the .net core version wrong: if you have a "publish" folder in your "PowerShell-Core" folder, you need to move all of it's contents up one level. Basically, just rename publish to PowerShell-Core and overwrite the parent with the child.

I was going to publish a fix, but time has gotten away from me, so it's going to have to be tomorrow.

@ghost
Copy link
Author

ghost commented Jun 29, 2017

When I execute the install I get this msg:


WARNUNG:
            The currently installed 'dotnet' (.NET Command Line Tools) is not the expected version.

            Installed version: 2.0.0-preview2-006497
            Expected version: 2.0.0-preview1-005977

            If your version is older, you probably cannot run the 'PowerShell (Core)' kernel.

            1. Remove the installed version from:
                - on windows '$env:LOCALAPPDATA\Microsoft\dotnet'
                - on osx and linux '$env:HOME/.dotnet'
            2. Re-run this script with -InstallDotnet

@Jaykul
Copy link
Owner

Jaykul commented Jun 30, 2017

Oh, shoot. That error message is out of date anyway because I removed the "InstallDotNet" feature.

  1. If you're on Windows, you can safely ignore that, and just use the "PowerShell (Full)" kernel.
  2. If you need to use "PowerShell (Core)" then you probably need to get the latest preview of DotNet Core 2 and install it.

However, in any case, the install worked. That warning is, well, just a warning, and not an error.

As a side question ... PowerShell Core bundles .Net (but not the dotnet executable) -- would it be worth it for me to do the same? I'm reluctant to do it because of the size of the package...

Jaykul added a commit that referenced this issue Jun 30, 2017
Add a "Release" notebook to document what I do to make a build by hand, for now.
@Jaykul
Copy link
Owner

Jaykul commented Jun 30, 2017

I think I've fixed the release package in v1.0.0-beta-4 so the dlls are all in the right folder(s) for Core.

You still have to have the latest preview of dotnet and PowerShell Core if you want to use those.

@vors
Copy link

vors commented Jan 19, 2018

Getting the same error message:

[W 23:42:40.664 NotebookApp] Timeout waiting for kernel_info reply from 36693c62-e856-44dc-b599-ae47f2d39c93
[I 23:42:42.622 NotebookApp] KernelRestarter: restarting kernel (4/5), new random ports
WARNING:root:kernel 36693c62-e856-44dc-b599-ae47f2d39c93 restarted
It was not possible to find any compatible framework version
The specified framework 'Microsoft.NETCore.App', version '2.0.0-preview3-25426-01' was not found.
  - Check application dependencies and target a framework version installed at:
      /usr/local/share/dotnet/
  - The .NET framework can be installed from:
      https://aka.ms/dotnet-download-runtime
  - The .NET framework and SDK can be installed from:
      http://go.microsoft.com/fwlink/?LinkID=798306&clcid=0x409
  - The following versions are installed:
      2.0.0 at [/usr/local/share/dotnet/shared]
      2.1.0-preview1-26001-02 at [/usr/local/share/dotnet/shared]
      2.0.3 at [/usr/local/share/dotnet/shared]

I was trying to install the required runtime and it looks like it was deleted (fun with dotnet versions, don't you love it?)

PS /Users/vors/dev/Jupyter-PowerShell> /Users/vors/Downloads/dotnet-install.sh -v 2.0.0-preview3-25426-01                   
dotnet-install: Downloading link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview3-25426-01/dotnet-sdk-2.0.0-preview3-25426-01-osx-x64.tar.gz
curl: (22) The requested URL returned error: 404 
dotnet-install: Cannot download: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview3-25426-01/dotnet-sdk-2.0.0-preview3-25426-01-osx-x64.tar.gz
dotnet-install: Downloading legacy link: https://dotnetcli.azureedge.net/dotnet/Sdk/2.0.0-preview3-25426-01/dotnet-dev-osx-x64.2.0.0-preview3-25426-01.tar.gz
curl: (22) The requested URL returned error: 404

Can we just update references to 2.0.0 or some newer version?

@vors
Copy link

vors commented Jan 19, 2018

FWIW after updating to 2.0.3 and rebuilding locally


Unhandled Exception: System.TypeInitializationException: The type initializer for 'System.Management.Automation.Utils' threw an exception. ---> System.TypeInitializationException: The type initializer for 'Microsoft.Win32.Registry' threw an exception. ---> System.PlatformNotSupportedException: Registry is not supported on this platform.
   at Microsoft.Win32.RegistryKey.OpenBaseKeyCore(RegistryHive hKey, RegistryView view)
   at Microsoft.Win32.Registry..cctor()
   --- End of inner exception stack trace ---
   at System.Management.Automation.Platform.get_IsNanoServer()
   at System.Management.Automation.Platform.get_IsInbox()
   at System.Management.Automation.Utils..cctor()
   --- End of inner exception stack trace ---
   at System.Management.Automation.Utils.get_DefaultPowerShellAppBase()
   at System.Management.Automation.PSSnapInReader.ReadRegistryInfo(Version& assemblyVersion, String& publicKeyToken, String& culture, String& architecture, String& applicationBase, Version& psVersion)
   at System.Management.Automation.PSSnapInReader.ReadCoreEngineSnapIn()
   at System.Management.Automation.Runspaces.InitialSessionState.ImportCorePSSnapIn()
   at System.Management.Automation.Runspaces.InitialSessionState.CreateDefault2()
   at Jupyter.PowerShell.PowerShellEngine..ctor(PowerShellOptions options, ILogger logger) in /Users/vors/dev/Jupyter-PowerShell/PowerShell-Kernel/PowerShellEngine.cs:line 29
   at Jupyter.PowerShell.Kernel.Main(String[] args) in /Users/vors/dev/Jupyter-PowerShell/PowerShell-Kernel/Kernel.cs:line 70

@vors
Copy link

vors commented Jan 19, 2018

Interestingly, my old hacky kernel https://github.com/vors/jupyter-powershell works after replacing powershell by pwsh :)

@vors
Copy link

vors commented Jan 20, 2018

UPD: dig a little bit more into it and realized that windows-only nuget package is a problem PowerShell/PowerShell#3417

@Jaykul
Copy link
Owner

Jaykul commented Jan 21, 2018

yeah, I'm actually having trouble getting even the Windows version to work with the 6.0.0 package from MyGet

@Jaykul
Copy link
Owner

Jaykul commented May 2, 2018

Ok, this is fixed in 1.0.0

@Jaykul Jaykul closed this as completed May 2, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants