Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precompile problem julia 1.8.5 LinuxMint #222

Open
sylviankahane opened this issue Mar 6, 2023 · 1 comment
Open

precompile problem julia 1.8.5 LinuxMint #222

sylviankahane opened this issue Mar 6, 2023 · 1 comment

Comments

@sylviankahane
Copy link

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

@ablaom
Copy link
Member

ablaom commented Mar 6, 2023

Thanks @sylviankahane for reporting.

ERROR: LoadError: UndefVarError: AbstractNode not defined

My guess is that the version of AbstractTrees.jl in your package environment is not recent enough to be compatible with the version of DecisionTree you are using. You need the very latest version, 0.4.3.

To help diagnose, please report the output of using Pkg; Pkg.status() and Pkg.status(mode=Pkg.PKGMODE_MANIFEST).

In the meantime, you may want to try creating a fresh package environment, in a new Julia session, with Pkg.activate("my_new_env", shared=true) and adding just DecisionTree (with Pkg.add("DecisionTree")) and any other packages you absolutely need for your current project, and see if that resolves your issue. If you are a new user, I encourage you to read the pkg management docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants