Hello, I think I need help. I’m trying to use Cbc. I’ve called the Pkg.add(“Cbc”) and it installs it as usual. But, when I called using Cbc this error message pops out:
julia> using Cbc
[ Info: Precompiling Cbc [9961bab8-2fa3-5c5a-9d89-47fab24efd76]
ERROR: LoadError: LoadError: InitError: could not load library "C:\Users\Rian Aristio\.julia\artifacts\c7f98e43f684af0864779feaae0e94a18f1b0d9c\bin\libopenblas.dll"
The specified module could not be found.
Stacktrace:
[1] dlopen(s::String, flags::UInt32; throw_error::Bool)
@ Base.Libc.Libdl .\libdl.jl:114
[2] dlopen(s::String, flags::UInt32)
@ Base.Libc.Libdl .\libdl.jl:114
[3] macro expansion
@ C:\Users\Rian Aristio\.julia\packages\JLLWrappers\bkwIo\src\products\library_generators.jl:54 [inlined]
[4] __init__()
@ OpenBLAS32_jll C:\Users\Rian Aristio\.julia\packages\OpenBLAS32_jll\SdrdP\src\wrappers\x86_64-w64-mingw32-libgfortran5.jl:9
[5] _include_from_serialized(path::String, depmods::Vector{Any})
@ Base .\loading.jl:696
[6] _require_search_from_serialized(pkg::Base.PkgId, sourcepath::String)
@ Base .\loading.jl:782
[7] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1020
[8] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[9] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[10] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[11] top-level scope
@ C:\Users\Rian Aristio\.julia\packages\JLLWrappers\bkwIo\src\toplevel_generators.jl:170
[12] include
@ .\Base.jl:386 [inlined]
[13] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1235
[14] top-level scope
@ none:1
[15] eval
@ .\boot.jl:360 [inlined]
[16] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[17] top-level scope
@ none:1
during initialization of module OpenBLAS32_jll
in expression starting at C:\Users\Rian Aristio\.julia\packages\CoinUtils_jll\2R4xl\src\wrappers\x86_64-w64-mingw32-cxx11.jl:4
in expression starting at C:\Users\Rian Aristio\.julia\packages\CoinUtils_jll\2R4xl\src\CoinUtils_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile CoinUtils_jll [be027038-0da8-5614-b30d-e42594cb92df] to C:\Users\Rian Aristio\.julia\compiled\v1.6\CoinUtils_jll\jl_5014.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[8] top-level scope
@ C:\Users\Rian Aristio\.julia\packages\JLLWrappers\bkwIo\src\toplevel_generators.jl:170
[9] include
@ .\Base.jl:386 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1235
[11] top-level scope
@ none:1
[12] eval
@ .\boot.jl:360 [inlined]
[13] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[14] top-level scope
@ none:1
in expression starting at C:\Users\Rian Aristio\.julia\packages\Clp_jll\ihKVc\src\wrappers\x86_64-w64-mingw32-libgfortran5-cxx11.jl:4
in expression starting at C:\Users\Rian Aristio\.julia\packages\Clp_jll\ihKVc\src\Clp_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile Clp_jll [06985876-5285-5a41-9fcb-8948a742cc53] to C:\Users\Rian Aristio\.julia\compiled\v1.6\Clp_jll\jl_492E.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[8] top-level scope
@ C:\Users\Rian Aristio\.julia\packages\JLLWrappers\bkwIo\src\toplevel_generators.jl:170
[9] include
@ .\Base.jl:386 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1235
[11] top-level scope
@ none:1
[12] eval
@ .\boot.jl:360 [inlined]
[13] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[14] top-level scope
@ none:1
in expression starting at C:\Users\Rian Aristio\.julia\packages\Cgl_jll\PomnD\src\wrappers\x86_64-w64-mingw32-cxx11.jl:4
in expression starting at C:\Users\Rian Aristio\.julia\packages\Cgl_jll\PomnD\src\Cgl_jll.jl:2
ERROR: LoadError: LoadError: Failed to precompile Cgl_jll [3830e938-1dd0-5f3e-8b8e-b3ee43226782] to C:\Users\Rian Aristio\.julia\compiled\v1.6\Cgl_jll\jl_4381.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] include(mod::Module, _path::String)
@ Base .\Base.jl:386
[8] top-level scope
@ C:\Users\Rian Aristio\.julia\packages\JLLWrappers\bkwIo\src\toplevel_generators.jl:170
[9] include
@ .\Base.jl:386 [inlined]
[10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::String)
@ Base .\loading.jl:1235
[11] top-level scope
@ none:1
[12] eval
@ .\boot.jl:360 [inlined]
[13] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[14] top-level scope
@ none:1
in expression starting at C:\Users\Rian Aristio\.julia\packages\Cbc_jll\szzPm\src\wrappers\x86_64-w64-mingw32-libgfortran5-cxx11.jl:5
in expression starting at C:\Users\Rian Aristio\.julia\packages\Cbc_jll\szzPm\src\Cbc_jll.jl:2
ERROR: LoadError: Failed to precompile Cbc_jll [38041ee0-ae04-5750-a4d2-bb4d0d83d27d] to C:\Users\Rian Aristio\.julia\compiled\v1.6\Cbc_jll\jl_3D09.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] top-level scope
@ C:\Users\Rian Aristio\.julia\packages\Cbc\vMMGG\src\Cbc.jl:15
[8] include
@ .\Base.jl:386 [inlined]
[9] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
@ Base .\loading.jl:1235
[10] top-level scope
@ none:1
[11] eval
@ .\boot.jl:360 [inlined]
[12] eval(x::Expr)
@ Base.MainInclude .\client.jl:446
[13] top-level scope
@ none:1
in expression starting at C:\Users\Rian Aristio\.julia\packages\Cbc\vMMGG\src\Cbc.jl:1
ERROR: Failed to precompile Cbc [9961bab8-2fa3-5c5a-9d89-47fab24efd76] to C:\Users\Rian Aristio\.julia\compiled\v1.6\Cbc\jl_3A9A.tmp.
Stacktrace:
[1] error(s::String)
@ Base .\error.jl:33
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
@ Base .\loading.jl:1385
[3] compilecache(pkg::Base.PkgId, path::String)
@ Base .\loading.jl:1329
[4] _require(pkg::Base.PkgId)
@ Base .\loading.jl:1043
[5] require(uuidkey::Base.PkgId)
@ Base .\loading.jl:936
[6] require(into::Module, mod::Symbol)
@ Base .\loading.jl:923
[7] eval
@ .\boot.jl:360 [inlined]
[8] eval
@ .\Base.jl:39 [inlined]
[9] repleval(m::Module, code::Expr, #unused#::String)
@ VSCodeServer c:\Users\Rian Aristio\.vscode\extensions\julialang.language-julia-1.3.32\scripts\packages\VSCodeServer\src\repl.jl:157
[10] (::VSCodeServer.var"#69#71"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Rian Aristio\.vscode\extensions\julialang.language-julia-1.3.32\scripts\packages\VSCodeServer\src\repl.jl:123
[11] with_logstate(f::Function, logstate::Any)
@ Base.CoreLogging .\logging.jl:491
[12] with_logger
@ .\logging.jl:603 [inlined]
[13] (::VSCodeServer.var"#68#70"{Module, Expr, REPL.LineEditREPL, REPL.LineEdit.Prompt})()
@ VSCodeServer c:\Users\Rian Aristio\.vscode\extensions\julialang.language-julia-1.3.32\scripts\packages\VSCodeServer\src\repl.jl:124
[14] #invokelatest#2
@ .\essentials.jl:708 [inlined]
[15] invokelatest(::Any)
@ Base .\essentials.jl:706
[16] macro expansion
@ c:\Users\Rian Aristio\.vscode\extensions\julialang.language-julia-1.3.32\scripts\packages\VSCodeServer\src\eval.jl:34 [inlined]
[17] (::VSCodeServer.var"#53#54")()
@ VSCodeServer .\task.jl:411
I am using Julia 1.6 on VS Code. I don’t understand what is happening and I need help troubleshooting it. Thanks in advance!