Skip to content

Error while importing MathOptInface while have using Dualization.jl in package  #1048

@yashvardhan747

Description

@yashvardhan747

julia> using MathOptInterface
[ Info: Precompiling MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee]
┌ Warning: Package MathOptInterface does not have Dualization in its dependencies:
│ - If you have MathOptInterface checked out for development and have
│ added Dualization as a dependency but haven't updated your primary
│ environment's manifest file, try Pkg.resolve().
│ - Otherwise you may need to report an issue with MathOptInterface
└ Loading Dualization into MathOptInterface from project dependency, future warnings for MathOptInterface are suppressed.
┌ Warning: Module MathOptInterface with build ID 137192295871151 is missing from the cache.
│ This may mean MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1011
┌ Warning: Module MathOptInterface with build ID 137192295871151 is missing from the cache.
│ This may mean MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1011
┌ Warning: Module MathOptInterface with build ID 137192295871151 is missing from the cache.
│ This may mean MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee] does not support precompilation but is imported by a module that does.
└ @ Base loading.jl:1011
ERROR: LoadError: LoadError: LoadError: LoadError: UndefVarError: CachingOptimizerMode not defined
Stacktrace:
[1] getproperty(::Module, ::Symbol) at ./Base.jl:13
[2] top-level scope at /Users/yash/.julia/packages/JuMP/MsUSY/src/JuMP.jl:149
[3] include at ./boot.jl:328 [inlined]
[4] include_relative(::Module, ::String) at ./loading.jl:1105
[5] _require(::Base.PkgId) at ./loading.jl:1053
[6] require(::Base.PkgId) at ./loading.jl:922
[7] require(::Module, ::Symbol) at ./loading.jl:917
[8] include at ./boot.jl:328 [inlined]
[9] include_relative(::Module, ::String) at ./loading.jl:1105
[10] _require(::Base.PkgId) at ./loading.jl:1053
[11] require(::Base.PkgId) at ./loading.jl:922
[12] require(::Module, ::Symbol) at ./loading.jl:917
[13] include at ./boot.jl:328 [inlined]
[14] include_relative(::Module, ::String) at ./loading.jl:1105
[15] include at ./Base.jl:31 [inlined]
[16] include(::String) at /Users/yash/.julia/dev/MathOptInterface/src/MathOptInterface.jl:1
[17] top-level scope at /Users/yash/.julia/dev/MathOptInterface/src/MathOptInterface.jl:123
[18] include at ./boot.jl:328 [inlined]
[19] include_relative(::Module, ::String) at ./loading.jl:1105
[20] include(::Module, ::String) at ./Base.jl:31
[21] top-level scope at none:2
[22] eval at ./boot.jl:330 [inlined]
[23] eval(::Expr) at ./client.jl:425
[24] top-level scope at ./none:3
in expression starting at /Users/yash/.julia/packages/JuMP/MsUSY/src/JuMP.jl:149
in expression starting at /Users/yash/.julia/packages/Dualization/w9SXv/src/Dualization.jl:3
in expression starting at /Users/yash/.julia/dev/MathOptInterface/src/Utilities/Utilities.jl:6
in expression starting at /Users/yash/.julia/dev/MathOptInterface/src/MathOptInterface.jl:123
ERROR: Failed to precompile MathOptInterface [b8f27783-ece8-5eb3-8dc8-9495eed66fee] to /Users/yash/.julia/compiled/v1.3/MathOptInterface/tyub8_Pvv1Y.ji.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions