Can't compile DifferentialEquations on crostini

I’m using DifferentialEquations on a pixelbook and I’m getting the following issue:
[ Info: Precompiling DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa]
ERROR: LoadError: LoadError: syntax: invalid assignment location “state…” around /home/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/bipartite_graph.jl:365
Stacktrace:
[1] top-level scope at /home/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/bipartite_graph.jl:364
[2] include(::Function, ::Module, ::String) at ./Base.jl:380
[3] include at ./Base.jl:368 [inlined]
[4] include(::String) at /home/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:4
[5] top-level scope at /home/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:110
[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/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/bipartite_graph.jl:364
in expression starting at /home/pixelpat/.julia/packages/ModelingToolkit/r5ZaU/src/ModelingToolkit.jl:110
ERROR: LoadError: Failed to precompile ModelingToolkit [961ee093-0014-501f-94e3-6117800e7a78] to /home/pixelpat/.julia/compiled/v1.5/ModelingToolkit/Qmdqu_qFg6D.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 /home/pixelpat/.julia/packages/ParameterizedFunctions/7Njh1/src/ParameterizedFunctions.jl:11
ERROR: LoadError: Failed to precompile ParameterizedFunctions [65888b18-ceab-5e60-b2b9-181511a3b968] to /home/pixelpat/.julia/compiled/v1.5/ParameterizedFunctions/OKjOc_qFg6D.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 /home/pixelpat/.julia/packages/DifferentialEquations/el96s/src/DifferentialEquations.jl:24
ERROR: Failed to precompile DifferentialEquations [0c46a032-eb83-5123-abaf-570d42b7fbaa] to /home/pixelpat/.julia/compiled/v1.5/DifferentialEquations/UQdwS_qFg6D.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_string(::Function, ::Module, ::String, ::String) at ./loading.jl:1088
[7] include_string(::Module, ::String, ::String) at ./loading.jl:1096
[8] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N; kwargs::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}) at ./essentials.jl:710
[9] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:709
[10] inlineeval(::Module, ::String, ::Int64, ::Int64, ::String; softscope::Bool) at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:211
[11] (::VSCodeServer.var"#63#67"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:155
[12] withpath(::VSCodeServer.var"#63#67"{String,Int64,Int64,String,Module,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}, ::String) at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/repl.jl:184
[13] (::VSCodeServer.var"#62#66"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:153
[14] hideprompt(::VSCodeServer.var"#62#66"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams}) at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/repl.jl:36
[15] (::VSCodeServer.var"#61#65"{String,Int64,Int64,String,Module,Bool,Bool,Bool,VSCodeServer.ReplRunCodeRequestParams})() at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:124
[16] with_logstate(::Function, ::Any) at ./logging.jl:408
[17] with_logger at ./logging.jl:514 [inlined]
[18] (::VSCodeServer.var"#60#64"{VSCodeServer.ReplRunCodeRequestParams})() at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:201
[19] #invokelatest#1 at ./essentials.jl:710 [inlined]
[20] invokelatest(::Any) at ./essentials.jl:709
[21] macro expansion at /home/pixelpat/.vscode/extensions/julialang.language-julia-1.6.24/scripts/packages/VSCodeServer/src/eval.jl:34 [inlined]
[22] (::VSCodeServer.var"#58#59")() at ./task.jl:356

I’m completely lost, what do I do here?

How did you install Julia? It looks like you may still be on Julia 1.5 which I don’t belive is supported by DifferentialEquations.jl anymore. (Ideally DifferentialEquations.jl would declare this in its Project.toml though so an older compatible version is installed instead.) You should download the latest Julia binaries from Download Julia instead.

1 Like

Thanks @simeonschaub, that was exactly the issue. I reinstalled Julia at 1.7.3 and all is working smoothly now.