ClimateMARGO.jl icon indicating copy to clipboard operation
ClimateMARGO.jl copied to clipboard

Not installable on Julia 1.11

Open fonsp opened this issue 1 year ago • 2 comments

  ~ julia +1.11
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.1 (2024-10-16)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

(@v1.11) pkg> activate --temp
  Activating new project at `/var/folders/v_/fhpj9jn151d4p9c2fdw2gv780000gn/T/jl_cRUZWl`

(jl_cRUZWl) pkg> add ClimateMARGO
   Resolving package versions...
ERROR: Unsatisfiable requirements detected for package MathOptInterface [b8f27783]:
 MathOptInterface [b8f27783] log:
 ├─possible versions are: 0.5.0 - 1.32.0 or uninstalled
 ├─restricted by compatibility requirements with JuMP [4076af6c] to versions: [0.9.11 - 0.9.22, 1.1.1 - 1.32.0]
 │ └─JuMP [4076af6c] log:
 │   ├─possible versions are: 0.18.3 - 1.23.3 or uninstalled
 │   ├─restricted by compatibility requirements with ClimateMARGO [d3f62095] to versions: [0.21.2 - 0.21.10, 1.0.0 - 1.23.3]
 │   │ └─ClimateMARGO [d3f62095] log:
 │   │   ├─possible versions are: 0.0.1 - 0.3.3 or uninstalled
 │   │   ├─restricted to versions * by an explicit requirement, leaving only versions: 0.0.1 - 0.3.3
 │   │   └─restricted by compatibility requirements with Ipopt [b6b21f68] to versions: 0.3.3 or uninstalled, leaving only versions: 0.3.3
 │   │     └─Ipopt [b6b21f68] log:
 │   │       ├─possible versions are: 0.4.1 - 1.6.6 or uninstalled
 │   │       ├─restricted by compatibility requirements with ClimateMARGO [d3f62095] to versions: [0.6.2 - 0.6.5, 1.0.0 - 1.6.6]
 │   │       │ └─ClimateMARGO [d3f62095] log: see above
 │   │       └─restricted by compatibility requirements with BinaryProvider [b99e7846] to versions: 1.0.0 - 1.6.6 or uninstalled, leaving only versions: 1.0.0 - 1.6.6
 │   │         └─BinaryProvider [b99e7846] log:
 │   │           ├─possible versions are: 0.4.0 - 0.5.10 or uninstalled
 │   │           └─restricted by julia compatibility requirements to versions: uninstalled
 │   ├─restricted by compatibility requirements with ClimateMARGO [d3f62095] to versions: 1.0.0 - 1.23.3
 │   │ └─ClimateMARGO [d3f62095] log: see above
 │   └─restricted by compatibility requirements with SpecialFunctions [276daf66] to versions: [0.18.3 - 0.21.5, 1.2.0 - 1.23.3] or uninstalled, leaving only versions: 1.2.0 - 1.23.3
 │     └─SpecialFunctions [276daf66] log:
 │       ├─possible versions are: 0.7.0 - 2.4.0 or uninstalled
 │       ├─restricted by compatibility requirements with BinaryProvider [b99e7846] to versions: 0.9.0 - 2.4.0 or uninstalled
 │       │ └─BinaryProvider [b99e7846] log: see above
 │       └─restricted by compatibility requirements with ForwardDiff [f6369f11] to versions: 0.7.0 - 0.10.3, leaving only versions: 0.9.0 - 0.10.3
 │         └─ForwardDiff [f6369f11] log:
 │           ├─possible versions are: 0.9.0 - 0.10.36 or uninstalled
 │           ├─restricted by compatibility requirements with StaticArrays [90137ffa] to versions: 0.10.5 - 0.10.36 or uninstalled
 │           │ └─StaticArrays [90137ffa] log:
 │           │   ├─possible versions are: 0.8.0 - 1.9.7 or uninstalled
 │           │   ├─restricted by julia compatibility requirements to versions: [0.12.0 - 0.12.6, 1.5.0 - 1.9.7] or uninstalled
 │           │   └─restricted by compatibility requirements with ForwardDiff [f6369f11] to versions: 0.8.3 - 0.12.6, leaving only versions: 0.12.0 - 0.12.6
 │           │     └─ForwardDiff [f6369f11] log: see above
 │           └─restricted by compatibility requirements with ClimateMARGO [d3f62095] to versions: 0.10.12
 │             └─ClimateMARGO [d3f62095] log: see above
 ├─restricted by compatibility requirements with Ipopt [b6b21f68] to versions: 1.0.0 - 1.32.0, leaving only versions: 1.1.1 - 1.32.0
 │ └─Ipopt [b6b21f68] log: see above
 ├─restricted by compatibility requirements with SpecialFunctions [276daf66] to versions: 0.5.0 - 1.2.0 or uninstalled, leaving only versions: 1.1.1 - 1.2.0
 │ └─SpecialFunctions [276daf66] log: see above
 └─restricted by compatibility requirements with JuMP [4076af6c] to versions: 1.3.0 - 1.32.0 — no versions left
   └─JuMP [4076af6c] log: see above

fonsp avatar Oct 22 '24 12:10 fonsp

Looks like the problem is that we pinned a specific version of ForwardDiff = "= 0.10.12" in the Project.toml, which is no longer compatible with the other packages in Julia v1.11.

I don't remember why I pinned the specific minor versions of some packages but not others... We should see if relaxing these gives the same answers.

hdrake avatar Oct 23 '24 15:10 hdrake

Hey Henri! Nice to see you again!!

I think we pinned some versions to fix the output of the model, because different versions of the optimisation packages created different results. Not sure though!

fonsp avatar Oct 24 '24 09:10 fonsp