Have Julia 1.0.3 and latest version of JuMP. Using Juno workflow, and believe that I have installed everything correctly; however, when running any file that uses JuMP, I get the following errors, and do not know how to resolve the issues. Have tried removing and re-installing JuMP a number of times to no avail. Any help is appreciated.
The return code when running a test file using JuMP is shown below:
[ Info: Precompiling JuMP [4076af6c-e467-56ae-b986-b466b2749572]
ERROR: LoadError: Failed to precompile ReverseDiffSparse [89212889-6d3f-5f97-b412-7825138f6c9c] to C:\Users\Alex.julia\compiled\v1.0\ReverseDiffSparse\VqGhr.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[3] _require(::Base.PkgId) at .\loading.jl:960
[4] require(::Base.PkgId) at .\loading.jl:858
[5] require(::Module, ::Symbol) at .\loading.jl:853
[6] include at .\boot.jl:317 [inlined]
[7] include_relative(::Module, ::String) at .\loading.jl:1044
[8] include(::Module, ::String) at .\sysimg.jl:29
[9] top-level scope at none:2
[10] eval at .\boot.jl:319 [inlined]
[11] eval(::Expr) at .\client.jl:393
[12] top-level scope at .\none:3
in expression starting at C:\Users\Alex.julia\packages\JuMP\PbnIJ\src\JuMP.jl:18
ERROR: Failed to precompile JuMP [4076af6c-e467-56ae-b986-b466b2749572] to C:\Users\Alex.julia\compiled\v1.0\JuMP\DmXqY.ji.
Stacktrace:
[1] compilecache(::Base.PkgId, ::String) at .\loading.jl:1203
[2] _require(::Base.PkgId) at .\loading.jl:960
[3] require(::Base.PkgId) at .\loading.jl:858
[4] require(::Module, ::Symbol) at .\loading.jl:853
Followed your advice, and then restarted Julia to rerun test script.
Then got prompted:
ERROR: LoadError: SpecialFunctions is not installed properly, run `Pkg.build("SpecialFunctions")`,restart Julia and try again
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] top-level scope at C:\Users\Alex\.julia\packages\SpecialFunctions\fvheQ\src\SpecialFunctions.jl:6
[3] include at .\boot.jl:317 [inlined]
[4] include_relative(::Module, ::String) at .\loading.jl:1044
[5] include(::Module, ::String) at .\sysimg.jl:29
[6] top-level scope at none:2
[7] eval at .\boot.jl:319 [inlined]
[8] eval(::Expr) at .\client.jl:393
[9] top-level scope at .\none:3
in expression starting at C:\Users\Alex\.julia\packages\SpecialFunctions\fvheQ\src\SpecialFunctions.jl:4
Performed that update – ran the test file again, then similar error occurred for “Clp”. Built “Clp” again, restarted Julia, and voila, the file finally works!
Not sure why removing and adding JuMP previously didn’t result in these different errors, but whatever.
Thanks so much for your help!