Skip to content
This repository was archived by the owner on Aug 28, 2025. It is now read-only.
This repository was archived by the owner on Aug 28, 2025. It is now read-only.

Error while precompiling the package #40

@pjgorski

Description

@pjgorski

I have Julia 1.6.4. I have just downloaded and compiled Graphs.jl (I might still have LightGraphs.jl as well).

I downloaded LightGraphsExtras.jl and during precompilation I get the following error:

WARNING: could not import JuMP.UnsetSolver into Interdiction
ERROR: LoadError: LoadError: LoadError: UndefVarError: Variable not defined
Stacktrace:
  [1] getproperty(x::Module, f::Symbol)
    @ Base ./Base.jl:26
  [2] top-level scope
    @ ~/.julia/packages/LightGraphsExtras/K93qX/src/interdiction/bilevel_adaptive_arc.jl:34
  [3] include(mod::Module, _path::String)
    @ Base ./Base.jl:384
  [4] include(x::String)
    @ LightGraphsExtras.Interdiction ~/.julia/packages/LightGraphsExtras/K93qX/src/interdiction/interdiction.jl:1
  [5] top-level scope
    @ ~/.julia/packages/LightGraphsExtras/K93qX/src/interdiction/interdiction.jl:55
  [6] include(mod::Module, _path::String)
    @ Base ./Base.jl:384
  [7] include(x::String)
    @ LightGraphsExtras ~/.julia/packages/LightGraphsExtras/K93qX/src/LightGraphsExtras.jl:1
  [8] top-level scope
    @ ~/.julia/packages/LightGraphsExtras/K93qX/src/LightGraphsExtras.jl:9
  [9] include
    @ ./Base.jl:384 [inlined]
 [10] include_package_for_output(pkg::Base.PkgId, input::String, depot_path::Vector{String}, dl_load_path::Vector{String}, load_path::Vector{String}, concrete_deps::Vector{Pair{Base.PkgId, UInt64}}, source::Nothing)
    @ Base ./loading.jl:1235
 [11] top-level scope
    @ none:1
 [12] eval
    @ ./boot.jl:360 [inlined]
 [13] eval(x::Expr)
    @ Base.MainInclude ./client.jl:446
 [14] top-level scope
    @ none:1
in expression starting at /home/pgorski/.julia/packages/LightGraphsExtras/K93qX/src/interdiction/bilevel_adaptive_arc.jl:34
in expression starting at /home/pgorski/.julia/packages/LightGraphsExtras/K93qX/src/interdiction/interdiction.jl:1
in expression starting at /home/pgorski/.julia/packages/LightGraphsExtras/K93qX/src/LightGraphsExtras.jl:1
ERROR: Failed to precompile LightGraphsExtras [89bd72ed-8c37-5969-8989-5c5e0cf73e51] to /home/pgorski/.julia/compiled/v1.6/LightGraphsExtras/jl_tJmU4F.
Stacktrace:
 [1] error(s::String)
   @ Base ./error.jl:33
 [2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::Base.TTY, internal_stdout::Base.TTY, ignore_loaded_modules::Bool)
   @ Base ./loading.jl:1385
 [3] compilecache(pkg::Base.PkgId, path::String)
   @ Base ./loading.jl:1329
 [4] _require(pkg::Base.PkgId)
   @ Base ./loading.jl:1043
 [5] require(uuidkey::Base.PkgId)
   @ Base ./loading.jl:936
 [6] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:923

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