IJulia for Julia v0.7

时间:2018-02-11 23:24:44

标签: julia ijulia-notebook

我尝试构建最新的(dev)版本的Julia(v0.7),并希望从Jupyter Notebook中使用这个内核。当我试着跑步时 Pkg.add("IJulia")并构建模块,构建失败。我得到的错误是

 Error: ------------------------------------------------------------
│ # Build failed for IJulia
│   exception =
│    LoadError: UndefVarError: JULIA_HOME not defined
│    Stacktrace:
│     [1] uv_error at ./libuv.jl:68 [inlined]
│     [2] unlink(::String) at ./file.jl:526
│     [3] #rm#9(::Bool, ::Bool, ::Function, ::String) at ./file.jl:149
│     [4] #rm at ./<missing>:0 [inlined]
│     [5] #installkernel#2(::String, ::Function, ::String) at /Users/myuser/.julia/v0.7/IJulia/deps/kspec.jl:117
│     [6] installkernel(::String) at /Users/myuser/.julia/v0.7/IJulia/deps/kspec.jl:36
│     [7] top-level scope at /Users/myuser/.julia/v0.7/IJulia/deps/build.jl:75
│     [8] include at ./boot.jl:295 [inlined]
│     [9] include_relative(::Module, ::String) at ./loading.jl:1067
│     [10] include at ./sysimg.jl:26 [inlined]
│     [11] include(::String) at ./loading.jl:1101
│     [12] top-level scope
│     [13] eval at ./boot.jl:298 [inlined]
│     [14] eval at ./sysimg.jl:71 [inlined]
│     [15] evalfile(::String, ::Array{String,1}) at ./loading.jl:1096 (repeats 2 times)
│     [16] #2 at ./none:15 [inlined]
│     [17] cd(::getfield(, Symbol("##2#5")){String}, ::String) at ./file.jl:70
│     [18] (::getfield(, Symbol("##1#3")))(::IOStream) at ./none:14
│     [19] #open#318(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::getfield(, Symbol("##1#3")), ::String, ::Vararg{String,N} where N) at ./iostream.jl:369
│     [20] open(::Function, ::String, ::String) at ./iostream.jl:367
│     [21] top-level scope
│     [22] eval at ./boot.jl:298 [inlined]
│     [23] eval(::Module, ::Expr) at ./sysimg.jl:71
│     [24] exec_options(::Base.JLOptions) at ./client.jl:309
│     [25] _start() at ./client.jl:448
│    in expression starting at /Users/myuser/.julia/v0.7/IJulia/deps/build.jl:104
└ @ Main none:18

将此作为问题发布在github上是否合理,或者问题仅适用于稳定版本v0.6?

1 个答案:

答案 0 :(得分:0)

在即将发布的Julia v0.7中,变量JULIA_HOME(来自Base模块)已重命名为Sys.BINDIR [1]。

在查看存储库之后,似乎他们目前正在将IJulia移植到0.7版本。我认为现在提供解决方案如何解决这一特定问题,我认为提交问题会很痛苦。此特定错误消息也未在持续集成构建中显示[2]。但是,鉴于很长的更改列表[1]并且版本0.7尚未发布,可能还有许多其他问题。因此,不要指望IJulia在这次改变后与Julia v0.7(dev)合作。

[1] https://github.com/JuliaLang/julia/blob/master/NEWS.md

[2] https://travis-ci.org/JuliaLang/IJulia.jl/jobs/336988585