Closed moderakh closed 3 years ago
In that terminal do you have permission to write to the kernelspec location, e.g. one of the paths displayed by running jupyter kernelspec list
?
I do have permission yes, as that is a homebrew installation
jupyter kernelspec list
Available kernels:
python3 /usr/local/share/jupyter/kernels/python3
however I tried this with sudo as well, that fails with the same message.
Also one thing seems weird is System.ComponentModel.Win32Exception
exception name. IMO this should be a platform independent failure. I don't have win32 on mac :-)
any update on this?
Did you install python AND jupyter using brew? I have done both an Anaconda based setup and a pure python and pip install. All without issues. What are the access rights to the path /usr/local/share/jupyter/kernels/
?
I installed python3 and pip3 using homebrew. then I installed jupyter using pip3.
That path belong to current user.
ls -al /usr/local/share/jupyter/kernels/
total 0
drwxr-xr-x 3 moderakh admin 96 Mar 20 09:39 .
drwxr-xr-x 4 moderakh admin 128 Mar 20 09:39 ..
drwxr-xr-x 5 moderakh admin 160 Mar 20 13:18 python3
@colombod
ping ... could you please provide an update?
I installed Jupyter as a user (so not sudo pip global) and afterwards could successfully install .net interactive. The kernels are installed like this:
.net-csharp /Users/peter/Library/Jupyter/kernels/.net-csharp .net-fsharp /Users/peter/Library/Jupyter/kernels/.net-fsharp .net-powershell /Users/peter/Library/Jupyter/kernels/.net-powershell python3 /Users/peter/Library/Jupyter/kernels/python3
Perhaps something to try?
P.S What I also noticed is that after the recent updates of MacOs, it doesn't allow the /usr/local directory to be owned by a normal user (so even chown doesn't work anymore). I would guess if you tried sudo already this should not be the cause, but it is a recent change in the behaviour of MacOs that messes with many brew installations and the like.
@moderakh, we did improve the install logic, could you verify if the bug still is present?
@moderakh can we close this issue?
I didn't try after your last comment. but I am not working on the relevant project for which I needed this (for the time being). feel free to close this. If I run into it again I will re-open or create a new one.
You are always welcome
Describe the bug
When I try to install this on macos it fails.
Did this error occur while using
dotnet interactive
?Screenshots
If applicable, add screenshots to help explain your problem.
the first command works fine:
but the second one fails:
Please complete the following:
I installed jupyter notebook and python using homebrew