When running the script bin/create_sys_image
from the package GitHub - aenarete/KiteControllers.jl: Controllers for airborne wind energy systems I get the following error:
✔ [07m:06s] PackageCompiler: compiling incremental system image
┌ Warning: Error requiring `StaticArrays` from `StaticArrayInterface`
│ exception =
│ LoadError: ArgumentError: Package StaticArrayInterface does not have LinearAlgebra in its dependencies:
│ - You may have a partially installed environment. Try `Pkg.instantiate()`
│ to ensure all packages in the environment are installed.
│ - Or, if you have StaticArrayInterface checked out for development and have
│ added LinearAlgebra as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with StaticArrayInterface
│ Stacktrace:
│ [1] macro expansion
│ @ ./loading.jl:1167 [inlined]
│ [2] macro expansion
│ @ ./lock.jl:223 [inlined]
│ [3] require(into::Module, mod::Symbol)
│ @ Base ./loading.jl:1144
│ [4] include(mod::Module, _path::String)
│ @ Base ./Base.jl:419
│ [5] include(x::String)
│ @ StaticArrayInterface ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:1
│ [6] macro expansion
│ @ ~/.julia/packages/Requires/Z8rfN/src/Requires.jl:40 [inlined]
│ [7] top-level scope
│ @ ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:488
│ [8] eval
│ @ ./boot.jl:368 [inlined]
│ [9] eval
│ @ ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:1 [inlined]
│ [10] (::StaticArrayInterface.var"#55#61")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:101
│ [11] macro expansion
│ @ ./timing.jl:382 [inlined]
│ [12] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:47
│ [13] (::StaticArrayInterface.var"#54#60")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:100
│ [14] withpath(f::Any, path::String)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:37
│ [15] (::StaticArrayInterface.var"#53#59")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:99
│ [16] listenpkg(f::Any, pkg::Base.PkgId)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:20
│ [17] macro expansion
│ @ ~/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│ [18] __init__()
│ @ StaticArrayInterface ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:488
│ in expression starting at /home/ufechner/.julia/packages/StaticArrayInterface/IzhAV/ext/StaticArrayInterfaceStaticArraysExt.jl:1
└ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:51
┌ Warning: Error requiring `OffsetArrays` from `StaticArrayInterface`
│ exception =
│ LoadError: ArgumentError: Package StaticArrayInterface does not have Static in its dependencies:
│ - You may have a partially installed environment. Try `Pkg.instantiate()`
│ to ensure all packages in the environment are installed.
│ - Or, if you have StaticArrayInterface checked out for development and have
│ added Static as a dependency but haven't updated your primary
│ environment's manifest file, try `Pkg.resolve()`.
│ - Otherwise you may need to report an issue with StaticArrayInterface
│ Stacktrace:
│ [1] macro expansion
│ @ ./loading.jl:1167 [inlined]
│ [2] macro expansion
│ @ ./lock.jl:223 [inlined]
│ [3] require(into::Module, mod::Symbol)
│ @ Base ./loading.jl:1144
│ [4] include(mod::Module, _path::String)
│ @ Base ./Base.jl:419
│ [5] include(x::String)
│ @ StaticArrayInterface ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:1
│ [6] macro expansion
│ @ ~/.julia/packages/Requires/Z8rfN/src/Requires.jl:40 [inlined]
│ [7] top-level scope
│ @ ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:489
│ [8] eval
│ @ ./boot.jl:368 [inlined]
│ [9] eval
│ @ ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:1 [inlined]
│ [10] (::StaticArrayInterface.var"#58#64")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:101
│ [11] macro expansion
│ @ ./timing.jl:382 [inlined]
│ [12] err(f::Any, listener::Module, modname::String, file::String, line::Any)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:47
│ [13] (::StaticArrayInterface.var"#57#63")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:100
│ [14] withpath(f::Any, path::String)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:37
│ [15] (::StaticArrayInterface.var"#56#62")()
│ @ StaticArrayInterface ~/.julia/packages/Requires/Z8rfN/src/require.jl:99
│ [16] listenpkg(f::Any, pkg::Base.PkgId)
│ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:20
│ [17] macro expansion
│ @ ~/.julia/packages/Requires/Z8rfN/src/require.jl:98 [inlined]
│ [18] __init__()
│ @ StaticArrayInterface ~/.julia/packages/StaticArrayInterface/IzhAV/src/StaticArrayInterface.jl:489
│ in expression starting at /home/ufechner/.julia/packages/StaticArrayInterface/IzhAV/ext/StaticArrayInterfaceOffsetArraysExt.jl:1
└ @ Requires ~/.julia/packages/Requires/Z8rfN/src/require.jl:51
This is the code that gets executed:
# activate the test environment if needed
using Pkg
if ! ("Plots" ∈ keys(Pkg.project().dependencies))
using TestEnv; TestEnv.activate()
Pkg.resolve()
end
@info "Loading packages ..."
using BenchmarkTools, Plots, KiteUtils, NLsolve, Parameters, StaticArrays, WinchModels, PackageCompiler, KiteViewers,
KiteModels, KitePodModels, StructTypes, YAML
@info "Creating sysimage ..."
push!(LOAD_PATH,joinpath(pwd(),"src"))
PackageCompiler.create_sysimage(
[:BenchmarkTools, :Plots, :KiteUtils, :NLsolve, :Parameters, :StaticArrays, :WinchModels, :KiteViewers,
:KiteModels, :KitePodModels, :StructTypes, :YAML];
sysimage_path="kps-image_tmp.so",
precompile_execution_file=joinpath("test", "test_for_precompile.jl")
)
Any idea what is going wrong?