# Fail to precompile MultiJump

**URL:** https://discourse.julialang.org/t/fail-to-precompile-multijump/25174
**Category:** General Usage
**Tags:** question, package, jump
**Created:** [June 12, 2019, 1:01am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174 "2019-06-12T01:01:01Z")
**Posts on this page:** 12
**Page:** 1

<div class="post-metadata">

### Author: ![Kornpong\_Mahitthibur](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kornpong_mahitthibur/32/8856_2.png) [@Kornpong\_Mahitthibur](https://discourse.julialang.org/u/Kornpong_Mahitthibur)
#### Post date: [June 12, 2019, 1:01am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/1 "2019-06-12T01:01:01Z")

</div>

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 🙂

---

<div class="post-metadata">

### Author: ![haydenfree](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@haydenfree](https://discourse.julialang.org/u/haydenfree)
#### Post date: [July 17, 2019, 1:26pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/2 "2019-07-17T13:26:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![odow](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/odow/32/28685_2.png) [@odow](https://discourse.julialang.org/u/odow)
#### Post date: [July 17, 2019, 1:31pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/3 "2019-07-17T13:31:53Z")

</div>

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

---

<div class="post-metadata">

### Author: ![haydenfree](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@haydenfree](https://discourse.julialang.org/u/haydenfree)
#### Post date: [July 17, 2019, 1:32pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/4 "2019-07-17T13:32:45Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Pedro\_Carvalho](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pedro_carvalho/32/10283_2.png) [@Pedro\_Carvalho](https://discourse.julialang.org/u/Pedro_Carvalho)
#### Post date: [December 5, 2019, 12:08am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/5 "2019-12-05T00:08:21Z")

</div>

I still have the same problem! 🙁

\_ \_ _(_)\_ | Documentation: [https://docs.julialang.org](https://docs.julialang.org)  
(_) | (_) (_) |  
\_ \_ | | \_\_ \_ | Type “?” for help, “]?” for Pkg help.  
| | | | | | |/ ` | |  
| | || | | | (_| | | Version 1.2.0 (2019-08-20)  
_/ |\ __‘_|_|_|\__ ’\_| | Official [https://julialang.org/](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

---

<div class="post-metadata">

### Author: ![regiopires](https://avatars.discourse-cdn.com/v4/letter/r/e0b2c6/32.png) [@regiopires](https://discourse.julialang.org/u/regiopires)
#### Post date: [October 29, 2020, 2:00pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/6 "2020-10-29T14:00:27Z")

</div>

How can i Downgrade to Jump?

---

<div class="post-metadata">

### Author: ![haydenfree](https://avatars.discourse-cdn.com/v4/letter/h/d9b06d/32.png) [@haydenfree](https://discourse.julialang.org/u/haydenfree)
#### Post date: [October 29, 2020, 3:38pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/7 "2020-10-29T15:38:10Z")

</div>

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`

---

<div class="post-metadata">

### Author: ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)
#### Post date: [October 29, 2020, 9:55pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/8 "2020-10-29T21:55:18Z")

</div>

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

---

<div class="post-metadata">

### Author: ![aramirezreyes](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aramirezreyes/32/42573_2.png) [@aramirezreyes](https://discourse.julialang.org/u/aramirezreyes)
#### Post date: [October 29, 2020, 11:40pm UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/9 "2020-10-29T23:40:44Z")

</div>

What error are you seeing when trying to add JuMP?

---

<div class="post-metadata">

### Author: ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)
#### Post date: [October 30, 2020, 12:06am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/10 "2020-10-30T00:06:29Z")

</div>

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

---

<div class="post-metadata">

### Author: ![mayar](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mayar/32/16426_2.png) [@mayar](https://discourse.julialang.org/u/mayar)
#### Post date: [October 30, 2020, 12:11am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/12 "2020-10-30T00:11:49Z")

</div>

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

---

<div class="post-metadata">

### Author: ![Hector\_Guzman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hector_guzman/32/22286_2.png) [@Hector\_Guzman](https://discourse.julialang.org/u/Hector_Guzman)
#### Post date: [February 25, 2021, 2:23am UTC](https://discourse.julialang.org/t/fail-to-precompile-multijump/25174/13 "2021-02-25T02:23:47Z")

</div>

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
