Fail to precompile MultiJump

Hi,
I tried to precompile MultiJump package on my julia version 1.1.1.1 and JuMP package version v0.19.2 but it fails with the following report. Any idea how to solve this issue?

julia> using MultiJuMP
[ Info: Precompiling MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f]
WARNING: could not import JuMP.JuMPTypes into MultiJuMP
ERROR: LoadError: LoadError: UndefVarError: JuMPTypes not defined
Stacktrace:
[1] top-level scope at none:0
[2] include at .\boot.jl:326 [inlined]
[3] include_relative(::Module, ::String) at .\loading.jl:1038
[4] include at .\sysimg.jl:29 [inlined]
[5] include(::String) at C:\Users\Kornpong M.juliapro\JuliaPro_v1.1.1.1\packages\MultiJuMP\49onf\src\MultiJuMP.jl:3
[6] top-level scope at none:0
[7] include at .\boot.jl:326 [inlined]
[8] include_relative(::Module, ::String) at .\loading.jl:1038
[9] include(::Module, ::String) at .\sysimg.jl:29
[10] top-level scope at none:2
[11] eval at .\boot.jl:328 [inlined]
[12] eval(::Expr) at .\client.jl:404
[13] top-level scope at .\none:3
in expression starting at C:\Users\Kornpong M.juliapro\JuliaPro_v1.1.1.1\packages\MultiJuMP\49onf\src\types.jl:13
in expression starting at C:\Users\Kornpong M.juliapro\JuliaPro_v1.1.1.1\packages\MultiJuMP\49onf\src\MultiJuMP.jl:15
ERROR: Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to C:\Users\Kornpong M.juliapro\JuliaPro_v1.1.1.1\compiled\v1.1\MultiJuMP\KOgs7.ji.
Stacktrace:
[1] compilecache(::Base.PkgId, ::String) at .\loading.jl:1197
[2] _require(::Base.PkgId) at .\loading.jl:960
[3] require(::Base.PkgId) at .\loading.jl:858
[4] require(::Module, ::Symbol) at .\loading.jl:853

Thank in advance :slight_smile:

Did you manage to resolve this? I’m having the same issue. I’ve tried uninstalling and reinstalling.

It looks like MultiJuMP hasn’t been updated to the latest version of JuMP.

1 Like

Yup, I had to downgrade to Jump 0.18.5 and it worked. Thanks!

I still have the same problem! :slightly_frowning_face:

_ _ ()_ | Documentation: https://docs.julialang.org
() | () () |
_ _ | | __ _ | Type “?” for help, “]?” for Pkg help.
| | | | | | |/ ` | |
| | |
| | | | (
| | | Version 1.2.0 (2019-08-20)
/ |_’|||_’_| | Official https://julialang.org/ release
|__/ |

julia> using MultiJuMP
[ Info: Precompiling MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f]
WARNING: could not import JuMP.JuMPTypes into MultiJuMP
ERROR: LoadError: LoadError: UndefVarError: JuMPTypes not defined
Stacktrace:
[1] top-level scope at /home/pedro/.julia/packages/MultiJuMP/49onf/src/types.jl:13
[2] include at ./boot.jl:328 [inlined]
[3] include_relative(::Module, ::String) at ./loading.jl:1094
[4] include at ./Base.jl:31 [inlined]
[5] include(::String) at /home/pedro/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:3
[6] top-level scope at /home/pedro/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15
[7] include at ./boot.jl:328 [inlined]
[8] include_relative(::Module, ::String) at ./loading.jl:1094
[9] include(::Module, ::String) at ./Base.jl:31
[10] top-level scope at none:2
[11] eval at ./boot.jl:330 [inlined]
[12] eval(::Expr) at ./client.jl:432
[13] top-level scope at ./none:3
in expression starting at /home/pedro/.julia/packages/MultiJuMP/49onf/src/types.jl:13
in expression starting at /home/pedro/.julia/packages/MultiJuMP/49onf/src/MultiJuMP.jl:15
ERROR: Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to /home/pedro/.julia/compiled/v1.2/MultiJuMP/KOgs7.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1253
[3] _require(::Base.PkgId) at ./loading.jl:1013
[4] require(::Base.PkgId) at ./loading.jl:911
[5] require(::Module, ::Symbol) at ./loading.jl:906