I’m getting the above error with JuMP / MathOptInterface when I attempt to write a model to a file:
MOI.write_to_file(lp_model, gName*".lp")
I note that there has been some discussion about Grisu in a plots+1.6 context recently but this error has existed for me in previous (< v1.6) versions – though I am now running 1.6.0.
Would anybody have any suggestions, please? Many thanks.
However when I tried upgrading my JuMP package I got teh below. I’m sure I’m doing something wrong here.
(@v1.6) pkg> add JuMP@0.21.8
Resolving package versions...
ERROR: Unsatisfiable requirements detected for package DataStructures [864edb3b]:
DataStructures [864edb3b] log:
├─possible versions are: 0.9.0-0.18.9 or uninstalled
├─restricted to versions * by an explicit requirement, leaving only versions 0.9.0-0.18.9
├─restricted by compatibility requirements with JuMP [4076af6c] to versions: 0.18.0-0.18.9
│ └─JuMP [4076af6c] log:
│ ├─possible versions are: 0.18.3-0.21.8 or uninstalled
│ └─restricted to versions 0.21.8 by an explicit requirement, leaving only versions 0.21.8
└─restricted by compatibility requirements with Compose [a81c6b42] to versions: 0.11.0-0.17.20 — no versions left
└─Compose [a81c6b42] log:
├─possible versions are: 0.6.1-0.9.2 or uninstalled
└─restricted by compatibility requirements with PlotShapefiles [297584a0] to versions: 0.8.1-0.8.2
└─PlotShapefiles [297584a0] log:
├─possible versions are: 0.1.0-0.2.2 or uninstalled
└─restricted to versions * by an explicit requirement, leaving only versions 0.1.0-0.2.2
That means you can’t use the latest versions of ComposePlotShapeFiles and JuMP together.
Either remove ComposePlotShapeFiles ] rm PlotShapeFiles, or more preferably, use a Pkg environment to minimize the conflicts: 4. Working with Environments · Pkg.jl.
The latest version of Compose is 0.9.2, which is compatible with DataStructures 0.18. The issue is that PlotShapeFiles requires an old version of Compose.