JuliaOpt / MathProgBase.jl

DEPRECATED: Solver-independent functions (i.e. linprog and mixintprog) and low-level interface for Mathematical Programming
Other
80 stars 38 forks source link

0.7 support? #205

Closed dpo closed 6 years ago

dpo commented 6 years ago

When I try to test MPB with Julia 0.7, I get

ERROR: LoadError: LoadError: LoadError: Unexpected code in block
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] @define_interface(::LineNumberNode, ::Module, ::Any) at /Users/dpo/.julia/v0.7/MathProgBase/src/SolverInterface/SolverInterface.jl:13
 [3] include_relative(::Module, ::String) at ./loading.jl:509
 [4] include at ./sysimg.jl:15 [inlined]
 [5] include(::String) at /Users/dpo/.julia/v0.7/MathProgBase/src/MathProgBase.jl:3
 [6] top-level scope
 [7] include_relative(::Module, ::String) at ./loading.jl:509
 [8] include(::Module, ::String) at ./sysimg.jl:15
 [9] top-level scope
 [10] top-level scope at ./<missing>:2
in expression starting at /Users/dpo/.julia/v0.7/MathProgBase/src/SolverInterface/SolverInterface.jl:56
in expression starting at /Users/dpo/.julia/v0.7/MathProgBase/src/SolverInterface/SolverInterface.jl:56
in expression starting at /Users/dpo/.julia/v0.7/MathProgBase/src/MathProgBase.jl:5
ERROR: LoadError: LoadError: LoadError: Failed to precompile MathProgBase to /Users/dpo/.julia/lib/v0.7/MathProgBase.ji.
Stacktrace:
 [1] compilecache(::String) at ./loading.jl:637
 [2] _require(::Symbol) at ./loading.jl:448
 [3] require(::Symbol) at ./loading.jl:300
 [4] include_relative(::Module, ::String) at ./loading.jl:509
 [5] include at ./sysimg.jl:15 [inlined]
 [6] include(::String) at /Users/dpo/.julia/v0.7/GLPKMathProgInterface/src/GLPKMathProgInterface.jl:1
 [7] top-level scope
 [8] include_relative(::Module, ::String) at ./loading.jl:509
 [9] _require(::Symbol) at ./loading.jl:441
 [10] require(::Symbol) at ./loading.jl:300
 [11] include_relative(::Module, ::String) at ./loading.jl:509
 [12] include(::Module, ::String) at ./sysimg.jl:15
 [13] process_options(::Base.JLOptions) at ./client.jl:334
 [14] _start() at ./client.jl:400
in expression starting at /Users/dpo/.julia/v0.7/GLPKMathProgInterface/src/GLPKInterfaceBase.jl:6
in expression starting at /Users/dpo/.julia/v0.7/GLPKMathProgInterface/src/GLPKMathProgInterface.jl:9
in expression starting at /Users/dpo/.julia/v0.7/MathProgBase/test/runtests.jl:1
===========================================[ ERROR: MathProgBase ]============================================

failed process: Process(`/Applications/Julia-0.7.app/Contents/Resources/julia/bin/julia -Cnative -J/Applications/Julia-0.7.app/Contents/Resources/julia/lib/julia/sys.dylib --compile=yes --depwarn=yes --code-coverage=none --color=yes --compiled-modules=yes --check-bounds=yes --warn-overwrite=yes --startup-file=yes /Users/dpo/.julia/v0.7/MathProgBase/test/runtests.jl`, ProcessExited(1)) [1]

==============================================================================================================

Just wondering if 0.7 support is in the cards. Thanks.

mlubin commented 6 years ago

Should be fixed by https://github.com/JuliaOpt/MathProgBase.jl/pull/202 which is already tagged as MPB 0.7.

dpo commented 6 years ago

I looked at open PRs but missed the closed PR. Thanks. It seems ok now, although there's an error with ECOS when running Pkg.test("MathProgBase"):

INFO: Building ECOS
=============================================[ ERROR: ECOS ]=============================================

LoadError: LoadError: UndefVarError: @osx_only not defined
in expression starting at /Users/dpo/.julia/v0.7/ECOS/deps/build.jl:9
in expression starting at /Users/dpo/.julia/v0.7/ECOS/deps/build.jl:9

=========================================================================================================
...
ERROR: LoadError: InitError: UndefVarError: bytestring not defined
Stacktrace:
 [1] __init__() at /Users/dpo/.julia/v0.7/ECOS/src/ECOS.jl:33
 [2] _include_from_serialized(::String) at ./loading.jl:125
 [3] _require_from_serialized(::Symbol, ::String) at ./loading.jl:131
 [4] _require_search_from_serialized(::Symbol, ::String) at ./loading.jl:151
 [5] _require(::Symbol) at ./loading.jl:403
 [6] require(::Symbol) at ./loading.jl:300
 [7] include_relative(::Module, ::String) at ./loading.jl:509
 [8] include(::Module, ::String) at ./sysimg.jl:15
 [9] process_options(::Base.JLOptions) at ./client.jl:334
 [10] _start() at ./client.jl:400
during initialization of module ECOS
in expression starting at /Users/dpo/.julia/v0.7/MathProgBase/test/runtests.jl:1
blegat commented 6 years ago

Let's ask FemToCleaner to fix ECOS: https://github.com/JuliaOpt/ECOS.jl/issues/56