Precompiling RxInfer v3 & graphppl v4 #295
Replies: 1 comment 2 replies
-
Hey @adammanoogian , thanks for trying out |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
A bit new to Julia / its pkg manager so excuse me if this comes off naive. Cannot get the Rxinfer v3 package up and running as it runs into a precompile error. I've tried clearing my compile folder, deleting the previous graphPPL package I had installed, and setup a new environment containing only RxInfer v3. And continue running into the same error. Please see the code below:
(testv4Project) pkg> st
Status
C:\Users\aman0087\Documents\Introspection Draft\scripts\testv4Project\Project.toml
[86711068] RxInfer v3.0.0
julia> Pkg.precompile()
Installed GraphPPL ─ v4.0.0
Precompiling project...
✗ GraphPPL
✗ GraphPPL → GraphPPLDistributionsExt
✗ RxInfer
8 dependencies successfully precompiled in 17 seconds. 121 already precompiled.
ERROR: The following 1 direct dependency failed to precompile:
RxInfer [86711068-29c9-4ff7-b620-ae75d7495b3d]
Failed to precompile RxInfer [86711068-29c9-4ff7-b620-ae75d7495b3d] to "C:\Users\aman0087\.julia\compiled\v1.9\RxInfer\jl_3EC3.tmp".
ERROR: LoadError: UndefVarError:
@Kwargs
not definedStacktrace:
[1] top-level scope
@ :0
[2] include(mod::Module, _path::String)
@ Base .\Base.jl:457
[3] include(x::String)
@ GraphPPL C:\Users\aman0087.julia\packages\GraphPPL\Ogal3\src\GraphPPL.jl:1
[4] top-level scope
@ C:\Users\aman0087.julia\packages\GraphPPL\Ogal3\src\GraphPPL.jl:8
[5] include
@ .\Base.jl:457 [inlined]
[6] 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, UInt128}}, source::String)
@ Base .\loading.jl:2049
[7] top-level scope
@ stdin:3
in expression starting at C:\Users\aman0087.julia\packages\GraphPPL\Ogal3\src\graph_engine.jl:497
in expression starting at C:\Users\aman0087.julia\packages\GraphPPL\Ogal3\src\graph_engine.jl:497
in expression starting at C:\Users\aman0087.julia\packages\GraphPPL\Ogal3\src\GraphPPL.jl:1
in expression starting at stdin:3
ERROR: LoadError: Failed to precompile GraphPPL [b3f8163a-e979-4e85-b43e-1f63d8c8b42c] to "C:\Users\aman0087\.julia\compiled\v1.9\GraphPPL\jl_512C.tmp".
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:2294
[3] compilecache
@ .\loading.jl:2167 [inlined]
[4] _require(pkg::Base.PkgId, env::String)
@ Base .\loading.jl:1805
[5] _require_prelocked(uuidkey::Base.PkgId, env::String)
@ Base .\loading.jl:1660
[6] macro expansion
@ .\loading.jl:1648 [inlined]
[7] macro expansion
@ .\lock.jl:267 [inlined]
[8] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1611
[9] include
@ .\Base.jl:457 [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, UInt128}}, source::Nothing)
@ Base .\loading.jl:2049
[11] top-level scope
@ stdin:3
in expression starting at C:\Users\aman0087.julia\packages\RxInfer\1p1hH\src\RxInfer.jl:1
in expression starting at stdin:3
Stacktrace:
[1] pkgerror(msg::String)
@ Pkg.Types C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\Types.jl:69
[2] precompile(ctx::Pkg.Types.Context, pkgs::Vector{Pkg.Types.PackageSpec}; internal_call::Bool, strict::Bool, warn_loaded::Bool, already_instantiated::Bool, timing::Bool, kwargs::Base.Pairs{Symbol, Base.TTY, Tuple{Symbol}, NamedTuple{(:io,), Tuple{Base.TTY}}})
@ Pkg.API C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:1619
[3] precompile(pkgs::Vector{Pkg.Types.PackageSpec}; io::Base.TTY, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:156
[4] precompile(pkgs::Vector{Pkg.Types.PackageSpec})
@ Pkg.API C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:145
[5] precompile(; name::Nothing, uuid::Nothing, version::Nothing, url::Nothing, rev::Nothing, path::Nothing, mode::Pkg.Types.PackageMode, subdir::Nothing, kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
@ Pkg.API C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:171
[6] precompile()
@ Pkg.API C:\Users\aman0087\AppData\Local\Programs\Julia-1.9.4\share\julia\stdlib\v1.9\Pkg\src\API.jl:162
[7] top-level scope
@ REPL[4]:1
when running the following file on vscode / julia:
using Pkg
print(Pkg.status())
using RxInfer
@model function coin_toss(prior, y)
θ ~ prior
y .~ Bernoulli(θ)
end
Beta Was this translation helpful? Give feedback.
All reactions