# ModiaMath has no know versions (although 3 versions released)

**URL:** <https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264>\
**Category:** General Usage\
**Tags:** diffeq\
**Created:** [September 21, 2018, 6:03am UTC](https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264 "2018-09-21T06:03:12Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MartinOtter](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Post date:** [September 21, 2018, 6:03am UTC](https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264/1 "2018-09-21T06:03:12Z")

</div>

[ModiaMath](https://github.com/ModiaSim/ModiaMath.jl) has three released versions and all are registered at METADATA. [Modia](https://github.com/ModiaSim/Modia.jl/) uses ModiaMath and has ModiaMath in its dependencies (in Project.toml/Manifest.toml file). Modia is cloned to .julia/dev, the current environment (.julia/environments/v1.0) is deleted and Julia 1.0.0 is started newly. The following gives an error (log of session):

```julia
(v1.0) pkg> status
    Status `HOME\.julia\environments\v1.0\Project.toml`

(v1.0) pkg> dev Modia
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package ModiaMath [80923050]:
 ModiaMath [80923050] log:
 ├─ModiaMath [80923050] has no known versions!
 └─restricted to versions * by Modia [e4773e00] - no versions left
   └─Modia [e4773e00] log:
     ├─possible versions are: 0.2.0 or uninstalled
     └─Modia [e4773e00] is fixed to version 0.2.0-beta.12

(v1.0) pkg>

```

If first ModiaMath is added, and then Modia, installation is successful:

```julia
(v1.0) pkg> add ModiaMath
  Updating registry at `HOME\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
  Updating git-repo `ModiaMath`
 Resolving package versions...
  Updating `HOME\.julia\environments\v1.0\Project.toml`
  [80923050] + ModiaMath v0.2.2 #master (ModiaMath)
  Updating `HOME\.julia\environments\v1.0\Manifest.toml`
  [b99e7846] + BinaryProvider v0.4.2
  [324d7699] + CategoricalArrays v0.3.13
  [944b1d66] + CodecZlib v0.5.0
  [34da2185] + Compat v1.1.0
  [a93c6f00] + DataFrames v0.13.1
  [9a8bc11e] + DataStreams v0.4.1
  [864edb3b] + DataStructures v0.12.0
  [2b5f629d] + DiffEqBase v4.25.0
  [82899510] + IteratorInterfaceExtensions v0.1.1
  [682c06a0] + JSON v0.19.0
  [e1d29d7a] + Missings v0.3.0
  [80923050] + ModiaMath v0.2.2 #master (ModiaMath)
  [3cdcf5f2] + RecipesBase v0.6.0
  [731186ca] + RecursiveArrayTools v0.18.1
  [189a3867] + Reexport v0.2.0
  [ae029012] + Requires v0.5.2
  [f2b01f46] + Roots v0.7.2
  [a2af1166] + SortingAlgorithms v0.3.1
  [90137ffa] + StaticArrays v0.8.3
  [2913bbd2] + StatsBase v0.25.0
  [c3572dad] + Sundials v2.4.0
  [3783bdb8] + TableTraits v0.3.1
  [3bb67fe8] + TranscodingStreams v0.8.1
  [a2a6695c] + TreeViews v0.3.0
  [1986cc42] + Unitful v0.11.0
  [ea10d353] + WeakRefStrings v0.5.3
  [2a0f44e3] + Base64
  [ade2ca70] + Dates
  [8bb1440f] + DelimitedFiles
  [8ba89e20] + Distributed
  [9fa8497b] + Future
  [b77e0a4c] + InteractiveUtils
  [76f85450] + LibGit2
  [8f399da3] + Libdl
  [37e2e46d] + LinearAlgebra
  [56ddb016] + Logging
  [d6f4376e] + Markdown
  [a63ad114] + Mmap
  [44cfe95a] + Pkg
  [de0858da] + Printf
  [3fa0cd96] + REPL
  [9a3f8284] + Random
  [ea8e919c] + SHA
  [9e88b42a] + Serialization
  [1a1011a3] + SharedArrays
  [6462fe0b] + Sockets
  [2f01184e] + SparseArrays
  [10745b16] + Statistics
  [8dfed614] + Test
  [cf7118a7] + UUIDs
  [4ec0a83e] + Unicode

(v1.0) pkg> dev Modia
 Resolving package versions...
  Updating `HOME\.julia\environments\v1.0\Project.toml`
  [e4773e00] + Modia v0.2.0-beta.12 [`HOME\.julia\environments\v1.0\..\..\dev\Modia`]
  Updating `HOME\.julia\environments\v1.0\Manifest.toml`
  [3da002f7] + ColorTypes v0.7.5
  [5ae59095] + Colors v0.9.4
  [8f4d0f93] + Conda v1.0.1
  [53c48c17] + FixedPointNumbers v0.5.3
  [b964fa9f] + LaTeXStrings v1.0.2
  [1914dd2f] + MacroTools v0.4.4
  [e4773e00] + Modia v0.2.0-beta.12 [`HOME\.julia\environments\v1.0\..\..\dev\Modia`]
  [438e738f] + PyCall v1.18.4
  [d330b81b] + PyPlot v2.6.3
  [81def892] + VersionParsing v1.1.2

```

Can you give a hint how to fix this issues.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 21, 2018, 6:19am UTC](https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264/2 "2018-09-21T06:19:42Z")

</div>

`Modia` depends on the wrong `ModiaMath`. Specifically, `Modia` depends on `ModiaMath = "80923050-9e1b-11e8-0c9e-c9f8e684994a"` (see [Modia.jl/Project.toml at 0e3f37fb90a21e9cfe03688367f176a41c9630d1 · ModiaSim/Modia.jl · GitHub](https://github.com/ModiaSim/Modia.jl/blob/0e3f37fb90a21e9cfe03688367f176a41c9630d1/Project.toml#L12)) but the `ModiaMath` you want is `ModiaMath = "67ccffd1-116d-535b-ad39-76a8fd0cbf71"` (see [General/Package.toml at 22b6ce24c45763f52ce8d4a62c8c5b554bc8370b · JuliaRegistries/General · GitHub](https://github.com/JuliaRegistries/General/blob/22b6ce24c45763f52ce8d4a62c8c5b554bc8370b/M/ModiaMath/Package.toml#L2)). You should update the uuid in `ModiaMath/Project.toml` and also the uuid for `ModiaMath` in `Modia`s `[deps]` section.

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [September 21, 2018, 6:23am UTC](https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264/3 "2018-09-21T06:23:30Z")

</div>

You should also update [Modia.jl/Project.toml at 0e3f37fb90a21e9cfe03688367f176a41c9630d1 · ModiaSim/Modia.jl · GitHub](https://github.com/ModiaSim/Modia.jl/blob/0e3f37fb90a21e9cfe03688367f176a41c9630d1/Project.toml#L2) to match [General/Package.toml at 22b6ce24c45763f52ce8d4a62c8c5b554bc8370b · JuliaRegistries/General · GitHub](https://github.com/JuliaRegistries/General/blob/22b6ce24c45763f52ce8d4a62c8c5b554bc8370b/M/Modia/Package.toml#L2)

---

<div class="post-metadata">

**Author:** ![MartinOtter](https://avatars.discourse-cdn.com/v4/letter/m/87869e/32.png) [@MartinOtter](https://discourse.julialang.org/u/MartinOtter)\
**Post date:** [September 21, 2018, 7:33am UTC](https://discourse.julialang.org/t/modiamath-has-no-know-versions-although-3-versions-released/15264/4 "2018-09-21T07:33:27Z")

</div>

Thanks very much. Your suggestion fixed the problem.
