Error when trying to install JuMP

Hi there

I have a Julia 1.0.1 on a windows machine. When installing JuMP I get the following error

v1.0) pkg> add JuMP
 Resolving package versions...
ERROR: Unsatisfiable requirements detected for package JuMP [4076af6c]:
 JuMP [4076af6c] log:
 ├─possible versions are: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3, 0.12.0-0.12.2, 0.13.0-0.13.2, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0-0.16.2, 0.17.0-0.17.1, 0.18.0-0.18.4] or uninstalled
 ├─restricted to versions * by an explicit requirement, leaving only versions [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3, 0.12.0-0.12.2, 0.13.0-0.13.2, 0.14.0-0.14.2, 0.15.0-0.15.1, 0.16.0-0.16.2, 0.17.0-0.17.1, 0.18.0-0.18.4]
 ├─restricted by compatibility requirements with ForwardDiff [f6369f11] to versions: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3] or uninstalled, leaving only versions: [0.1.1-0.1.2, 0.2.0, 0.3.0-0.3.2, 0.4.0-0.4.1, 0.5.0-0.5.8, 0.6.0-0.6.3, 0.7.0-0.7.4, 0.8.0, 0.9.0-0.9.3, 0.10.0-0.10.3, 0.11.0-0.11.3]
 │ └─ForwardDiff [f6369f11] log:
 │   ├─possible versions are: [0.0.2-0.0.3, 0.1.0-0.1.8, 0.2.0-0.2.5, 0.3.0-0.3.5, 0.4.0-0.4.2, 0.5.0, 0.6.0, 0.7.0-0.7.5, 0.8.0-0.8.5, 0.9.0, 0.10.0] or uninstalled
 │   └─restricted to versions 0.10.0 by an explicit requirement, leaving only versions 0.10.0
 └─restricted by julia compatibility requirements to versions: 0.18.3-0.18.4 or uninstalled — no versions left

So seemingly ForwardDiff is the problem. update was run before the installation.

Whats the output of pkg> status? Do you have ForwardDiff pinned for example?

The output is

v1.0) pkg> status
Status `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [c52e3926] Atom v0.7.8
  [49dc2e85] Calculus v0.4.1
  [0c46a032] DifferentialEquations v5.3.1
  [f6369f11] ForwardDiff v0.10.0
  [28b8d3ca] GR v0.35.0
  [e5e0dc1b] Juno v0.5.3
  [429524aa] Optim v0.17.1
  [1dea7af3] OrdinaryDiffEq v4.16.3
  [91a5bcdd] Plots v0.21.0
  [f2b01f46] Roots v0.7.3

Ok, that is weird. I can pkg> add JuMP without a problem with the same package state as you have:

(v1) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
  [c52e3926] Atom v0.7.8
  [49dc2e85] Calculus v0.4.1
  [0c46a032] DifferentialEquations v5.3.1
  [28b8d3ca] GR v0.35.0
  [e5e0dc1b] Juno v0.5.3
  [429524aa] Optim v0.17.1
  [1dea7af3] OrdinaryDiffEq v4.16.3
  [91a5bcdd] Plots v0.21.0
  [f2b01f46] Roots v0.7.3

(v1) pkg> add JuMP
 Resolving package versions...
  Updating `~/.julia/environments/v1.0/Project.toml`
  [4076af6c] + JuMP v0.18.4
  Updating `~/.julia/environments/v1.0/Manifest.toml`
  [f6369f11] ↓ ForwardDiff v0.10.0 ⇒ v0.9.0
  [4076af6c] + JuMP v0.18.4
  [fdba3010] + MathProgBase v0.7.7
  [89212889] + ReverseDiffSparse v0.8.4

Can you post the content of C:\Users\Christian\.julia\environments\v1.0\Project.toml and C:\Users\Christian\.julia\environments\v1.0\Manifest.toml to a gist or something?

Manifest.toml
Project.toml
Edit: these are before uninstalling ForwardDiff

Thanks for your patience by the way

Edit:
The following worked:

  • uninstall ForwardDiff
  • install JuMP

But now I’m stuck with ForwardDiff 0.9 instead of 0.10

(v1.0) pkg> remove ForwardDiff
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [f6369f11] - ForwardDiff v0.10.0
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
 [no changes]

(v1.0) pkg> add JuMP
  Updating registry at `C:\Users\Christian\.julia\registries\General`
  Updating git-repo `https://github.com/JuliaRegistries/General.git`
 Resolving package versions...
 Installed BoundaryValueDiffEq ─ v2.2.1
 Installed MathProgBase ──────── v0.7.7
 Installed ReverseDiffSparse ─── v0.8.4
 Installed JuMP ──────────────── v0.18.4
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [4076af6c] + JuMP v0.18.4
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
  [764a87c0] ↑ BoundaryValueDiffEq v2.2.0 ⇒ v2.2.1
  [f6369f11] ↓ ForwardDiff v0.10.0 ⇒ v0.9.0
  [4076af6c] + JuMP v0.18.4
  [fdba3010] + MathProgBase v0.7.7
  [89212889] + ReverseDiffSparse v0.8.4

(v1.0) pkg> add ForwardDiff
 Resolving package versions...
  Updating `C:\Users\Christian\.julia\environments\v1.0\Project.toml`
  [f6369f11] + ForwardDiff v0.9.0
  Updating `C:\Users\Christian\.julia\environments\v1.0\Manifest.toml`
 [no changes]

Thanks. pkg> rm ForwardDiff; add JuMP; add ForwardDiff seems to work. I wonder why Pkg refuses to downgrade ForwardDiff, maybe because it is installed explicitly? @kristoffer.carlsson?

Just out of interest: Why does it even try to downgrade ForwardDiff? I don’t need to say that this is not optimal and it should not be necessary (I know of the new package environements that Julia 1.0 has but still…)

Because JuMP has that as a requirement: General/Compat.toml at 996cdd63bdf8de37d4713fe67d96e0ccef21c499 · JuliaRegistries/General · GitHub for some reason.

1 Like
1 Like