jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.78k stars 5k forks source link

"Kernel error": "FileNotFoundError" because of change in Julia installation #3659

Open mm3509 opened 6 years ago

mm3509 commented 6 years ago

Hello,

I installed Julia with the JuliaPro package, then removed it after a few months by deleting the directory in /Applications, and I installed Julia again. I installed Jupyter in a new Conda environment and I kept getting Kernel Error in the browser and

FileNotFoundError: [Errno 2] No such file or directory: '/Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia': '/Applications/JuliaPro-0.6.2.2.app/Contents/Resources/julia/Contents/Resources/julia/bin/julia'

This happened despite having the path to the new Julia in ~/.bashrc and ~/.bash_profile:

export PATH="/Applications/Julia-0.6.app/Contents/Resources/julia/bin:$PATH"

After several hours, I found this thread, ran Julia from the terminal and updated IJulia:

Pkg.update()
Pkg.build("IJulia")

I got:

[InstallKernelSpec] Removing existing kernelspec in /Users/mmorin/Library/Jupyter/kernels/julia-0.6
[InstallKernelSpec] Installed kernelspec julia-0.6 in /Users/mmorin/Library/Jupyter/kernels/julia-0.6

So it seems that Jupyter read the path to julia from the previous JuliaPro installation and not from the current plain Julia installation, despite this being in the bash PATH. Does this make sense, and can this be changed?

Settings: macOS High Sierra, version 10.13.14 Julia: version 0.6.3 conda: 4.5.4 Jupyter: 4.4.0

remram44 commented 6 years ago

This looks like an IJulia bug, since they would be the ones creating the kernelspec file. You might want to report this to them.

williamjsdavis commented 5 years ago

I am experiencing the same issue. Was a solution ever found?

mm3509 commented 5 years ago

I moved from IJulia to Emacs Speaks Statistics shortly after, so I didn't pursue this further.