I am having a lot of trouble to make cplex run with julia/jump, (Gurobi has been seamless and works perfect). I installed the package and when running the sentence “using CPLEX”, I get the following message. Can you help me out?
julia> using CPLEX
[ Info: Precompiling CPLEX [a076750e-1247-5638-91d2-ce28b192dca0]
ERROR: LoadError: ArgumentError: invalid base 10 digit ‘P’ in “Pi\x8e\x14”
Stacktrace:
[1] tryparse_internal(::Type{Int64}, ::SubString{String}, ::Int64, ::Int64, ::Int64, ::Bool) at .\parse.jl:132
[2] parse(::Type{Int64}, ::SubString{String}; base::Nothing) at .\parse.jl:238
[3] parse at .\parse.jl:238 [inlined]
[4] _broadcast_getindex_evalf at .\broadcast.jl:648 [inlined]
[5] _broadcast_getindex at .\broadcast.jl:631 [inlined]
[6] getindex at .\broadcast.jl:575 [inlined]
[7] copy at .\broadcast.jl:852 [inlined]
[8] materialize(::Base.Broadcast.Broadcasted{Base.Broadcast.DefaultArrayStyle{0},Nothing,typeof(parse),Tuple{Base.RefValue{Type{Int64}},Base.RefValue{SubString{String}}}}) at .\broadcast.jl:837
[9] top-level scope at C:\Users\Armando.julia\packages\CPLEX\5NpoU\src\CPLEX.jl:22
[10] include(::Function, ::Module, ::String) at .\Base.jl:380
[11] include(::Module, ::String) at .\Base.jl:368
[12] top-level scope at none:2
[13] eval at .\boot.jl:347 [inlined]
[14] eval(::Expr) at .\client.jl:467
[15] top-level scope at .\none:3
in expression starting at C:\Users\Armando.julia\packages\CPLEX\5NpoU\src\CPLEX.jl:13
ERROR: Failed to precompile CPLEX [a076750e-1247-5638-91d2-ce28b192dca0] to C:\Users\Armando.julia\compiled\v1.5\CPLEX\QpT0w_atEpv.ji.
Stacktrace:
[1] error(::String) at .\error.jl:33
[2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1305
[3] _require(::Base.PkgId) at .\loading.jl:1030
[4] require(::Base.PkgId) at .\loading.jl:928
[5] require(::Module, ::Symbol) at .\loading.jl:923
I ran into similar issues with CPLEX, solved when I reverted to the old version, as suggested here: https://github.com/jump-dev/CPLEX.jl Maybe it will help you too?