I have been trying to use the Turing.jl package,
MacOS v10.15,
I successfully added the package Turing v0.7.0, with dependent packages Zygote v0.3.0, IRTools v0.3.0
but when executing:
using Turing
I get precompile error: [ Info: Precompiling Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] ERROR: LoadError: LoadError: UndefVarError: Argument not defined
Stacktrace:
[1] include at ./boot.jl:328 [inlined]
[2] include_relative( ::Module, ::String ) at ./loading.jl:1094
[3] include at ./Base.jl:31 [inlined]
[4] include( ::String ) at /Users/martinwatts/.julia/packages/Zygote/kTgN8/src/Zygote.jl:1
[5] top-level scope at /Users/martinwatts/.julia/packages/Zygote/kTgN8/src/Zygote.jl:24
[6] include at ./boot.jl:328 [inlined]
[7] include_relative( ::Module, ::String ) at ./loading.jl:1094
[8] include( ::Module, ::String ) at ./Base.jl:31
[9] top-level scope at none:2
[10] eval at ./boot.jl:330 [inlined]
[11] eval( ::Expr ) at ./client.jl:432
[12] top-level scope at ./none:3
in expression starting at /Users/martinwatts/.julia/packages/Zygote/kTgN8/src/compiler/reverse.jl:1
in expression starting at /Users/martinwatts/.julia/packages/Zygote/kTgN8/src/Zygote.jl:24
Cause of the error is that Zygote package tries to import IRTools:Argument but IRTools does not export Argument
this set gave a different precompile failure but still at the interface between the Zygote and IRTools.
julia> using Turing [ Info: Precompiling Turing [fce5fe82-541a-59a6-adf8-730c64b5f9a0] ERROR: LoadError: LoadError: UndefVarError: argnames! not defined
Stacktrace:
[1] include at ./boot.jl:328 [inlined]
[2] include_relative( ::Module, ::String ) at ./loading.jl:1094
[3] include at ./Base.jl:31 [inlined]
[4] include( ::String ) at /Users/martinwatts/.julia/packages/Zygote/bdE6T/src/Zygote.jl:1
[5] top-level scope at /Users/martinwatts/.julia/packages/Zygote/bdE6T/src/Zygote.jl:44
[6] include at ./boot.jl:328 [inlined]
[7] include_relative( ::Module, ::String ) at ./loading.jl:1094
[8] include( ::Module, ::String ) at ./Base.jl:31
[9] top-level scope at none:2
[10] eval at ./boot.jl:330 [inlined]
[11] eval( ::Expr ) at ./client.jl:432
[12] top-level scope at ./none:3
in expression starting at /Users/martinwatts/.julia/packages/Zygote/bdE6T/src/compiler/interface2.jl:1
in expression starting at /Users/martinwatts/.julia/packages/Zygote/bdE6T/src/Zygote.jl:44
I assume there must be a working set of these packages.