precompile problem julia 1.8.5 LinuxMint

Open
#222 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
julia

Research direction

Start by reproducing the Julia 1.8.5 precompile failure and read src/abstract_trees.jl:18, src/DecisionTree.jl:1, and the reported Regression path. Check the dependency-related errors for Reexport and AbstractNode, then verify whether the affected packages precompile successfully after the issue is understood.

Written by the indexing model from the issue text.

Description

in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/abstract_trees.jl:18
in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile DecisionTree [7806a523-6efd-50cb-b5f6-3fa6f1930dbb] to /home/sylvian/.julia/compiled/v1.8/DecisionTree/jl_V9rnlb.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:1707
[3] compilecache
@ ./loading.jl:1651 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base ./loading.jl:1200
[6] macro expansion
@ ./loading.jl:1180 [inlined]
[7] macro expansion
@ ./lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144
[9] include
@ ./Base.jl:419 [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:1554
[11] top-level scope
@ stdin:1
in expression starting at /home/sylvian/.julia/packages/MLJDecisionTreeInterface/cIWGa/src/MLJDecisionTreeInterface.jl:1
in expression starting at stdin:1

And, as a result, also

precompile
Precompiling project...
✗ Regression
✗ DecisionTree
✗ MLJDecisionTreeInterface
0 dependencies successfully precompiled in 7 seconds. 623 already precompiled.

ERROR: The following 3 direct dependencies failed to precompile:

Regression [ad671207-3d6e-4f7b-a33a-6fade53e05dd]

Failed to precompile Regression [ad671207-3d6e-4f7b-a33a-6fade53e05dd] to /home/sylvian/.julia/compiled/v1.8/Regression/jl_4dF8NH.
ERROR: LoadError: ArgumentError: Package Regression does not have Reexport in its dependencies:

  • You may have a partially installed environment. Try Pkg.instantiate()
    to ensure all packages in the environment are installed.
  • Or, if you have Regression checked out for development and have
    added Reexport 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 Regression
    Stacktrace:
    [1] macro expansion
    @ ./loading.jl:1167 [inlined]
    [2] macro expansion
    @ ./lock.jl:223 [inlined]
    [3] require(into::Module, mod::Symbol)
    @ Base ./loading.jl:1144
    [4] include
    @ ./Base.jl:419 [inlined]
    [5] 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:1554
    [6] top-level scope
    @ stdin:1
    in expression starting at /home/sylvian/JULIASTUFF/DataAnalysis/PredictiveModeling_withPython/Regression/src/Regression.jl:1
    in expression starting at stdin:1

DecisionTree [7806a523-6efd-50cb-b5f6-3fa6f1930dbb]

Failed to precompile DecisionTree [7806a523-6efd-50cb-b5f6-3fa6f1930dbb] to /home/sylvian/.julia/compiled/v1.8/DecisionTree/jl_LqYqb1.
ERROR: LoadError: UndefVarError: AbstractNode not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:31
[2] top-level scope
@ ~/.julia/packages/DecisionTree/4lZKc/src/abstract_trees.jl:18
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:419
[4] include(x::String)
@ DecisionTree ~/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:1
[5] top-level scope
@ ~/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:84
[6] include
@ ./Base.jl:419 [inlined]
[7] 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:1554
[8] top-level scope
@ stdin:1
in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/abstract_trees.jl:18
in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:1
in expression starting at stdin:1

MLJDecisionTreeInterface [c6f25543-311c-4c74-83dc-3ea6d1015661]

Failed to precompile MLJDecisionTreeInterface [c6f25543-311c-4c74-83dc-3ea6d1015661] to /home/sylvian/.julia/compiled/v1.8/MLJDecisionTreeInterface/jl_jW7eB9.
ERROR: LoadError: UndefVarError: AbstractNode not defined
Stacktrace:
[1] getproperty(x::Module, f::Symbol)
@ Base ./Base.jl:31
[2] top-level scope
@ ~/.julia/packages/DecisionTree/4lZKc/src/abstract_trees.jl:18
[3] include(mod::Module, _path::String)
@ Base ./Base.jl:419
[4] include(x::String)
@ DecisionTree ~/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:1
[5] top-level scope
@ ~/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:84
[6] include
@ ./Base.jl:419 [inlined]
[7] 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::String)
@ Base ./loading.jl:1554
[8] top-level scope
@ stdin:1
in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/abstract_trees.jl:18
in expression starting at /home/sylvian/.julia/packages/DecisionTree/4lZKc/src/DecisionTree.jl:1
in expression starting at stdin:1
ERROR: LoadError: Failed to precompile DecisionTree [7806a523-6efd-50cb-b5f6-3fa6f1930dbb] to /home/sylvian/.julia/compiled/v1.8/DecisionTree/jl_HQmLRd.
Stacktrace:
[1] error(s::String)
@ Base ./error.jl:35
[2] compilecache(pkg::Base.PkgId, path::String, internal_stderr::IO, internal_stdout::IO, keep_loaded_modules::Bool)
@ Base ./loading.jl:1707
[3] compilecache
@ ./loading.jl:1651 [inlined]
[4] _require(pkg::Base.PkgId)
@ Base ./loading.jl:1337
[5] _require_prelocked(uuidkey::Base.PkgId)
@ Base ./loading.jl:1200
[6] macro expansion
@ ./loading.jl:1180 [inlined]
[7] macro expansion
@ ./lock.jl:223 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base ./loading.jl:1144
[9] include
@ ./Base.jl:419 [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:1554
[11] top-level scope
@ stdin:1
in expression starting at /home/sylvian/.julia/packages/MLJDecisionTreeInterface/cIWGa/src/MLJDecisionTreeInterface.jl:1
in expression starting at stdin:1

Dominant language
Julia
Stars
365
Forks
100
PR merge metrics
No merged PRs in 30d

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JuliaAI/DecisionTree.jl

All issues in JuliaAI/DecisionTree.jl

Similar issues

More Julia issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.