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.

1 Like

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

How can i Downgrade to Jump?

Iā€™m sure the versions have changed since this post, but to downgrade you can remove the package via package manager rm JuMP and then re-install it at a specific version, for example add JuMP@1.2.3

I tried to add JuMP@0.18.5ā€¦but it failed to precompileā€¦any idea or help please

What error are you seeing when trying to add JuMP?

I already have JuMP
I am trying to add MultiJuMPā€¦I get this error msg " failed to precompile MultiJuMP"

When I try testing the MultiJuMP package this is what I get
" Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to C:.ā€¦"

The same problem with the new packages and even downgrading and reinstalling. Have you solved the problem?

[ 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 C:\Users\Alonso.julia\packages\MultiJuMP\49onf\src\types.jl:13
[2] include(::Function, ::Module, ::String) at .\Base.jl:380
[3] include at .\Base.jl:368 [inlined]
[4] include(::String) at C:\Users\Alonso.julia\packages\MultiJuMP\49onf\src\MultiJuMP.jl:3
[5] top-level scope at C:\Users\Alonso.julia\packages\MultiJuMP\49onf\src\MultiJuMP.jl:15
[6] include(::Function, ::Module, ::String) at .\Base.jl:380
[7] include(::Module, ::String) at .\Base.jl:368
[8] top-level scope at none:2
[9] eval at .\boot.jl:331 [inlined]
[10] eval(::Expr) at .\client.jl:467
[11] top-level scope at .\none:3
in expression starting at C:\Users\Alonso.julia\packages\MultiJuMP\49onf\src\types.jl:13
in expression starting at C:\Users\Alonso.julia\packages\MultiJuMP\49onf\src\MultiJuMP.jl:15
ERROR: Failed to precompile MultiJuMP [f6097e2c-3ba3-5605-a9a8-3a277acb490f] to C:\Users\Alonso.julia\compiled\v1.5\MultiJuMP\KOgs7_D1pAK.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923