Turing fails to precompile

I just installed Julia 1.5 and i started to add the packages and i added Turing.jl but when i type:
julia> using Turing
i get this message:

[ Info: Precompiling Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0]
ERROR: LoadError: UndefVarError: libtask_v1_3 not defined
Stacktrace:
 [1] top-level scope at /Users/midow/.julia/packages/Libtask/GQPaW/src/Libtask.jl:23
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include(::Module, ::String) at ./Base.jl:368
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:331 [inlined]
 [6] eval(::Expr) at ./client.jl:467
 [7] top-level scope at ./none:3
in expression starting at /Users/midow/.julia/packages/Libtask/GQPaW/src/Libtask.jl:16
ERROR: LoadError: Failed to precompile Libtask [6f1fad26-d15e-5dc8-ae53-837a1d7b8c9f] to /Users/midow/.julia/compiled/v1.5/Libtask/KIaXx_rsmhf.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [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(::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/midow/.julia/packages/Turing/vg86q/src/Turing.jl:14
ERROR: Failed to precompile Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] to /Users/midow/.julia/compiled/v1.5/Turing/gm4QC_rsmhf.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

what i understood is that there is some issue with Libtaskand when i want to precompile it too it shows me this:

julia> using Libtask
[ Info: Precompiling Libtask [6f1fad26-d15e-5dc8-ae53-837a1d7b8c9f]
ERROR: LoadError: UndefVarError: libtask_v1_3 not defined
Stacktrace:
 [1] top-level scope at /Users/midow/.julia/packages/Libtask/GQPaW/src/Libtask.jl:23
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include(::Module, ::String) at ./Base.jl:368
 [4] top-level scope at none:2
 [5] eval at ./boot.jl:331 [inlined]
 [6] eval(::Expr) at ./client.jl:467
 [7] top-level scope at ./none:3
in expression starting at /Users/midow/.julia/packages/Libtask/GQPaW/src/Libtask.jl:16
ERROR: Failed to precompile Libtask [6f1fad26-d15e-5dc8-ae53-837a1d7b8c9f] to /Users/midow/.julia/compiled/v1.5/Libtask/KIaXx_rsmhf.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

i don’t know how to fix it as i’m learning how to use Turing and i need it to be working normaly.

Try rebuilding Libtask:

] build Libtask

or

using Pkg
pkg"build Libtask"
1 Like

i did it and now i’m building the entire Turing and when i run using Turing it takes forever

i opened a new session and i built Libtask and now the same for Turingand it is taking a long time.

Yes, that’s common.

1 Like