jherekhealy / AQFED.jl

Julia package for the book "Applied Quantitative Finance for Equity Derivatives"
MIT License
32 stars 12 forks source link

Precompling package results in CharFunc not defined error #4

Open cfusting opened 4 months ago

cfusting commented 4 months ago

ERROR: LoadError: UndefVarError:CharFuncnot defined Stacktrace: [1] getproperty(x::Module, f::Symbol) @ Base ./Base.jl:31 [2] top-level scope @ ~/.julia/packages/AQFED/rUtxd/src/rough/rheston_pade.jl:15 [3] include(mod::Module, _path::String) @ Base ./Base.jl:457 [4] include(x::String) @ AQFED.Rough ~/.julia/packages/AQFED/rUtxd/src/AQFED.jl:136 [5] top-level scope @ ~/.julia/packages/AQFED/rUtxd/src/AQFED.jl:137 [6] include @ ./Base.jl:457 [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, UInt128}}, source::Nothing) @ Base ./loading.jl:2045 [8] top-level scope @ stdin:3 in expression starting at /home/badger/.julia/packages/AQFED/rUtxd/src/rough/rheston_pade.jl:15 in expression starting at /home/badger/.julia/packages/AQFED/rUtxd/src/AQFED.jl:1 in expression starting at stdin:3 ERROR: Failed to precompile AQFED [75f7dc1a-7be9-4868-9021-6cf8f4c7ff3a] to "/home/badger/.julia/compiled/v1.9/AQFED/jl_3tmfjF". 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:2296 [3] compilecache @ ./loading.jl:2163 [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

cfusting commented 4 months ago

I was able to resolve this by installing PPInterpolation and CharFuncPricing locally and removing the requirements in the project.toml.