Pkg.update() and Pkg.build("IJulia")
Note that your messages so far have not really been informative enough to provide you with much advice. "It doesn't work" or equivalents thereof aren't a useful description.
×Dead kernelThe kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.
I wish I could give you a more helpful message but quite literally, the Ipython notebook says Failed to restart kernel.
×Dead kernelThe kernel has died, and the automatic restart has failed. It is possible the kernel cannot be restarted. If you are not able to restart the kernel, you will still be able to save the notebook, but running code will no longer work until the notebook is reopened.this is the verbatim output
Python 2.7.10
Set verbose-debug=true and stderr-capture=false as suggested at https://github.com/JuliaLang/IJulia.jl
Error dump follows:
$ jupyter-notebook moj-notes.ipynb
[I 21:37:21.750 NotebookApp] Serving notebooks from local directory: /Users/ubi/work/study/julia
[I 21:37:21.750 NotebookApp] 0 active kernels
[I 21:37:21.750 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 21:37:21.751 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[I 21:37:24.244 NotebookApp] Kernel started: 8ed88591-0a25-4c1a-9d07-5ba953a4a853
ERROR: type: instantiate_type: expected TypeConstructor, got Function
in anonymous at no file:236
in include at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in reload_path at loading.jl:152
in _require at loading.jl:67
in require at loading.jl:51
in include at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in include_from_node1 at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in include at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in include_from_node1 at loading.jl:128
in process_options at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in _start at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
while loading /Users/ubi/.julia/v0.3/ZMQ/src/ZMQ.jl, in expression starting on line 234
while loading /Users/ubi/.julia/v0.3/IJulia/src/IJulia.jl, in expression starting on line 13
while loading /Users/ubi/.julia/v0.3/IJulia/src/kernel.jl, in expression starting on line 4
[I 21:37:27.243 NotebookApp] KernelRestarter: restarting kernel (1/5)
##########################
Any suggestions?
What does Pkg.installed("ZMQ") say?
You could try with the latest Julia 0.4 release candidate. Have you tried deleting your whole .julia directory and reinstalling IJulia?
Dict{ASCIIString,VersionNumber} with 25 entries:
"Nettle" => v"0.2.0"
"REPLCompletions" => v"0.0.3"
"FixedPointNumbers" => v"0.0.12"
"SHA" => v"0.1.2"
"Plotly" => v"0.0.3+"
"PyCall" => v"0.8.1"
"LaTeXStrings" => v"0.1.5"
"Docile" => v"0.5.18"
"WoodburyMatrices" => v"0.1.2"
"LibCURL" => v"0.1.4"
"Grid" => v"0.3.11"
"JSON" => v"0.4.4"
"ZMQ" => v"0.3.0"
"ColorTypes" => v"0.1.7"
"Compat" => v"0.4.5+"
"IJulia" => v"0.1.16"
"PyPlot" => v"2.0.1"
"Colors" => v"0.5.4"
"HTTPClient" => v"0.1.5"
"Dates" => v"0.3.2"
"BinDeps" => v"0.3.15"
"HttpCommon" => v"0.1.2"
"Reexport" => v"0.0.3"
"Homebrew" => v"0.1.16"
You can make a copy of the REQUIRE file and put that in a clean new version of .julia, which will automatically install the same set of packages next time you run Pkg.update()
INFO: Updating METADATA...
ERROR: chdir METADATA: no such file or directory (ENOENT)
in cd at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib (repeats 2 times)
in update at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in anonymous at pkg/dir.jl:28
in cd at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in __cd#229__ at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in update at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
Added an empty METADATA subdirectory. Next error dump:
julia> Pkg.update()
INFO: Updating METADATA...
fatal: Not a git repository (or any of the parent directories): .git
ERROR: failed process: Process(`git rev-parse --symbolic-full-name --abbrev-ref HEAD`, ProcessExited(128)) [128]
in error at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in readbytes at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in readchomp at pkg/git.jl:24
in anonymous at pkg/entry.jl:238
in cd at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in update at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in anonymous at pkg/dir.jl:28
in cd at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in __cd#229__ at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
in update at /usr/local/Cellar/julia/0.3.11/lib/julia/sys.dylib
Sigh.
No, that's not normal. Did you first install julia when it was version 0.2?
No, that's not normal. Did you first install julia when it was version 0.2?