Running the following file produces an exception:
module Foo
import ModellingToolkit
import Symbolics
function foo()
println("hello!")
end
end
Foo.foo()
ERROR: LoadError: ArgumentError: Package ModellingToolkit not found in current path:
- Run `import Pkg; Pkg.add("ModellingToolkit")` to install the ModellingToolkit package.
Stacktrace:
[1] require(into::Module, mod::Symbol)
@ Base .\loading.jl:871
[2] eval
@ .\boot.jl:360 [inlined]
[3] include_string(mapexpr::typeof(REPL.softscope), mod::Module, code::String, filename::String)
@ Base .\loading.jl:1094
[4] invokelatest(::Any, ::Any, ::Vararg{Any, N} where N; kwargs::Base.Iterators.Pairs{Union{}, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Base .\essentials.jl:708
julia> versioninfo()
Julia Version 1.6.1
Commit 6aaedecc44 (2021-04-23 05:59 UTC)
Platform Info:
OS: Windows (x86_64-w64-mingw32)
CPU: Intel(R) Core(TM) i5-6200U CPU @ 2.30GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-11.0.1 (ORCJIT, skylake)
Environment:
JULIA_EDITOR = code
JULIA_NUM_THREADS =
(@v1.6) pkg> st
Status `.julia\environments\v1.6\Project.toml`
[961ee093] ModelingToolkit v5.17.0
[14b8a8f1] PkgTemplates v0.7.16
[295af30f] Revise v3.1.16
[0c5d862f] Symbolics v0.1.25
(@v1.6) pkg>
If I comment out import ModelingToolkit
it works.