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

Precompiling ChainRules stack not defined #595

Closed
ga72kud opened this issue Nov 14, 2022 · 3 comments
Closed

Precompiling ChainRules stack not defined #595

ga72kud opened this issue Nov 14, 2022 · 3 comments

Comments

@ga72kud
Copy link

ga72kud commented Nov 14, 2022

julia> using ChainRules
[ Info: Precompiling ChainRules [082447d4-558c-5d27-93f4-14fc19e9eca2]
ERROR: LoadError: UndefVarError: stack not defined
Stacktrace:
 [1] include
   @ ./Base.jl:384 [inlined]
 [2] 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
 [3] top-level scope
   @ none:1
 [4] eval
   @ ./boot.jl:360 [inlined]
 [5] eval(x::Expr)
   @ Base.MainInclude ./client.jl:446
 [6] top-level scope
   @ none:1
in expression starting at /home/hartmannadm/.julia/packages/ChainRules/hVHC4/src/ChainRules.jl:1
ERROR: Failed to precompile ChainRules [082447d4-558c-5d27-93f4-14fc19e9eca2] to /home/hartmannadm/.julia/compiled/v1.6/ChainRules/jl_rSUY80.
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
@ga72kud
Copy link
Author

ga72kud commented Nov 14, 2022

The same problem comes with using Zygote, Flux, ReinforcementLearning

@mcabbott
Copy link
Member

mcabbott commented Nov 14, 2022

I think this is like JuliaDiff/ChainRules.jl#598, which I never managed to reproduce.

tl;dr is that mysteriously an old version of Compat is loaded. And that ] up may help.

@ga72kud
Copy link
Author

ga72kud commented Nov 14, 2022

@mcabbott thank you for your support. I managed to install it, it seems that there are weird package dependencies. I used this packages with the current julia v1.8.2 release (https://julialang.org/downloads/)

[082447d4] ChainRules v1.45.0
[3da002f7] ColorTypes v0.11.4
⌃ [587475ba] Flux v0.13.4
[a98d9a8b] Interpolations v0.14.6
[91a5bcdd] Plots v1.36.1
[158674fc] ReinforcementLearning v0.10.1
Info Packages marked with ⌃ have new versions available and may be upgradable.

@ga72kud ga72kud closed this as completed Nov 14, 2022
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