JuliaGaussianProcesses / Stheno.jl

Probabilistic Programming with Gaussian processes in Julia
Other
340 stars 26 forks source link

Precompiling Error #171

Closed richardskim111 closed 3 years ago

richardskim111 commented 3 years ago

Hi, I'm new to Stheno. I'm getting the following error message when I'm trying to load it for the first time.
Any idea how to solve this?

I'm using Julia v1.5.0 Stheno v0.7.0

julia> using Stheno
[ Info: Precompiling Stheno [8188c328-b5d6-583d-959b-9690869a5511]
ERROR: LoadError: LoadError: syntax: malformed expression
Stacktrace:
 [1] top-level scope at /home/richard/.julia/packages/ChainRules/SAymv/src/rulesets/Core/core.jl:1
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include at ./Base.jl:368 [inlined]
 [4] include(::String) at /home/richard/.julia/packages/ChainRules/SAymv/src/ChainRules.jl:1
 [5] top-level scope at /home/richard/.julia/packages/ChainRules/SAymv/src/ChainRules.jl:29
 [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 /home/richard/.julia/packages/ChainRules/SAymv/src/rulesets/Core/core.jl:1
in expression starting at /home/richard/.julia/packages/ChainRules/SAymv/src/ChainRules.jl:29
ERROR: LoadError: Failed to precompile ChainRules [082447d4-558c-5d27-93f4-14fc19e9eca2] to /home/richard/.julia/compiled/v1.5/ChainRules/AzGmQ_NASa7.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(::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 /home/richard/.julia/packages/Zygote/lwmfx/src/Zygote.jl:9
ERROR: LoadError: Failed to precompile Zygote [e88e6eb3-aa80-5325-afca-941959d7151f] to /home/richard/.julia/compiled/v1.5/Zygote/4kbLI_NASa7.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(::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 /home/richard/.julia/packages/Stheno/JyPhl/src/Stheno.jl:14
ERROR: Failed to precompile Stheno [8188c328-b5d6-583d-959b-9690869a5511] to /home/richard/.julia/compiled/v1.5/Stheno/sVmvC_NASa7.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
willtebbutt commented 3 years ago

Hi -- thanks for trying out the package, and for opening this issue.

I've not tested this new version on Julia 1.5, and I've just tried precompiling locally on 1.5 and it seems okay, so I'm not immediately able to reproduce your problem.

Two things:

  1. Would you be able to see if using 1.6 deals with the error? It's possible that one of the dependencies is using a Julia feature introduced in 1.6.
  2. Could you provide a list of the precise versions you're using with Pkg.status()? It's possible that I've not used exactly the same package versions as you in my tests on 1.5.
richardskim111 commented 3 years ago

Thank you for your prompt response. I upgraded to v1.6, and it's working now. Thanks!

willtebbutt commented 3 years ago

Great! Please don't hesistate to open more issues if you encounter problems / things that are unclear -- I'm keen to hear about both.