JuliaStochOpt / ParameterJuMP.jl

A JuMP extension to use parameter in constraints RHS
MIT License
41 stars 5 forks source link

Precompilation fail #30

Closed jebouchat closed 5 years ago

jebouchat commented 5 years ago

Hello! First of all, thanks for your work.

Now to the point. I added ParameterJuMP via the GitHub link, and then, when trying to precompile ParameterJuMP I got this error:

[ Info: Precompiling ParameterJuMP [39d13dbf-3f24-566c-a163-e7bd722aef94]
ERROR: LoadError: UndefVarError: var_string not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13
 [2] top-level scope at none:0
 [3] include at ./boot.jl:326 [inlined]
 [4] include_relative(::Module, ::String) at ./loading.jl:1038
 [5] include(::Module, ::String) at ./sysimg.jl:29
 [6] top-level scope at none:2
 [7] eval at ./boot.jl:328 [inlined]
 [8] eval(::Expr) at ./client.jl:404
 [9] top-level scope at ./none:3
in expression starting at /Users/***/.julia/packages/ParameterJuMP/H96np/src/ParameterJuMP.jl:19
ERROR: Failed to precompile ParameterJuMP [39d13dbf-3f24-566c-a163-e7bd722aef94] to /Users/***/.julia/compiled/v1.1/ParameterJuMP/TDLpu.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1197
 [3] _require(::Base.PkgId) at ./loading.jl:960
 [4] require(::Base.PkgId) at ./loading.jl:858
 [5] require(::Module, ::Symbol) at ./loading.jl:853

Since it's been a few days since I downloaded the pkg, I tried to update it to check if my problem was solved but I got this:

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.5, 0.19.0] or uninstalled
 ├─restricted to versions 0.19.0-0.19 by ParameterJuMP [39d13dbf], leaving only versions 0.19.0
 │ └─ParameterJuMP [39d13dbf] log:
 │   ├─possible versions are: 0.0.0 or uninstalled
 │   └─ParameterJuMP [39d13dbf] is fixed to version 0.0.0
 └─restricted to versions 0.18.5 by an explicit requirement — no versions left

And now I'm not sure what I should do...

(I'm on macOS Mojave (v. 10.14.3), running Julia 1.1)

jebouchat commented 5 years ago

Updating JuMP solved my problem. Sorry to bother, folks.