# Warning about Mamba and JuMP

**URL:** <https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743>\
**Category:** General Usage\
**Created:** [October 10, 2019, 6:59pm UTC](https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743 "2019-10-10T18:59:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![marouane](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/marouane/32/16267_2.png) [@marouane](https://discourse.julialang.org/u/marouane)\
**Post date:** [October 10, 2019, 6:59pm UTC](https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743/1 "2019-10-10T18:59:02Z")

</div>

i have a code where i’m using `Mamba`and `JuMP`and when i run the code, i get a warning like this:  
`WARNING: both Mamba and JuMP export "Model"; uses of it in module QuantumRelay must be qualified`  
Therefore i get an Error: ```ERROR: UndefVarError: Model not defined``, the problem is that i need both packages the first for MCMC simulation and the second for Linear programming.

---

<div class="post-metadata">

**Author:** ![giordano](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/giordano/32/2166_2.png) [@giordano](https://discourse.julialang.org/u/giordano)\
**Post date:** [October 10, 2019, 7:09pm UTC](https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743/2 "2019-10-10T19:09:06Z")

</div>

Cross post: [julia - Mamba package and JuMP package Model warning - Stack Overflow](https://stackoverflow.com/q/58329221/2442087)

---

<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:** [October 10, 2019, 7:22pm UTC](https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743/3 "2019-10-10T19:22:56Z")

</div>

You will need to prefix `Mumba.Model` and `JuMP.Model` to distinguish them.

---

<div class="post-metadata">

**Author:** ![tkoolen](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tkoolen/32/1603_2.png) [@tkoolen](https://discourse.julialang.org/u/tkoolen)\
**Post date:** [October 10, 2019, 8:16pm UTC](https://discourse.julialang.org/t/warning-about-mamba-and-jump/29743/4 "2019-10-10T20:16:58Z")

</div>

Or add a `using JuMP: Model` if you’re only going to be using JuMP’s, as in:

```julia
julia> module A
       export Model
       struct Model end
       end
Main.A

julia> module B
       export Model
       struct Model end
       end
Main.B

julia> using Main.A, Main.B

julia> Model
WARNING: both B and A export "Model"; uses of it in module Main must be qualified
ERROR: UndefVarError: Model not defined

julia> using Main.A: Model

julia> Model
Model

```
