Fresh julia 1.5 install and turing error

Just installed Julia 1.5 on macbook pro running catalina 10.15.6. I did import Pkg; Pkg.add("Turing") along with StatsPlots and Random. I then tried the demo in the turing manual and get an error right away:

julia> using Turing, StatsPlots, Random
[ Info: Precompiling Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0]
ERROR: LoadError: LoadError: syntax: unexpected semicolon in tuple around /Users/pinkney/.julia/packages/Zygote/bdE6T/src/lib/lib.jl:30
Stacktrace:
 [1] top-level scope at /Users/pinkney/.julia/packages/Zygote/bdE6T/src/lib/lib.jl:30
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include at ./Base.jl:368 [inlined]
 [4] include(::String) at /Users/pinkney/.julia/packages/Zygote/bdE6T/src/Zygote.jl:1
 [5] top-level scope at /Users/pinkney/.julia/packages/Zygote/bdE6T/src/Zygote.jl:31
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /Users/pinkney/.julia/packages/Zygote/bdE6T/src/lib/lib.jl:30
in expression starting at /Users/pinkney/.julia/packages/Zygote/bdE6T/src/Zygote.jl:31
ERROR: LoadError: LoadError: Failed to precompile Zygote [e88e6eb3-aa80-5325-afca-941959d7151f] to /Users/pinkney/.julia/compiled/v1.5/Zygote/4kbLI_wedAW.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include at ./Base.jl:368 [inlined]
 [8] include(::String) at /Users/pinkney/.julia/packages/Turing/xFzfF/src/Turing.jl:1
 [9] top-level scope at /Users/pinkney/.julia/packages/Turing/xFzfF/src/Turing.jl:126
 [10] include(::Function, ::Module, ::String) at ./Base.jl:380
 [11] include(::Module, ::String) at ./Base.jl:368
 [12] top-level scope at none:2
 [13] eval at ./boot.jl:331 [inlined]
 [14] eval(::Expr) at ./client.jl:467
 [15] top-level scope at ./none:3
in expression starting at /Users/pinkney/.julia/packages/Turing/xFzfF/src/core/Core.jl:9
in expression starting at /Users/pinkney/.julia/packages/Turing/xFzfF/src/Turing.jl:126
ERROR: Failed to precompile Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] to /Users/pinkney/.julia/compiled/v1.5/Turing/gm4QC_wedAW.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1290
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1088

can you update the packages using ]up ?

1 Like

Yah! That worked. First time back to Julia since 1.0. Was under the impression that a fresh install would work out of the box. Thanks for the solution.

1 Like

great, Welcome back