Hello, I want to adapt parameters of a differential equation to available data on a computer with julia 1.4.1 on a linux system. julia 1.4.0 has the same problem.
Running
using DifferentialEquations
using Plots
is o.K. but using DiffEqParamEstim results into an error: I start the REPL with julia and then input
using DiffEqParamEstim
with results:
[ Info: Precompiling DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c]
WARNING: could not import LearnBase.prox into PenaltyFunctions
WARNING: could not import LearnBase.prox! into PenaltyFunctions
WARNING: could not import LearnBase.addgrad! into PenaltyFunctions
WARNING: could not import LearnBase.scaled into PenaltyFunctions
ERROR: LoadError: UndefVarError: Penalty not defined
Stacktrace:
[1] top-level scope at /home/ad08/.julia/packages/PenaltyFunctions/6Cxmi/src/PenaltyFunctions.jl:37
[2] include(::Module, ::String) at ./Base.jl:377
[3] top-level scope at none:2
[4] eval at ./boot.jl:331 [inlined]
[5] eval(::Expr) at ./client.jl:449
[6] top-level scope at ./none:3
in expression starting at /home/ad08/.julia/packages/PenaltyFunctions/6Cxmi/src/PenaltyFunctions.jl:37
ERROR: LoadError: Failed to precompile PenaltyFunctions [06bb1623-fdd5-5ca2-a01c-88eae3ea319e] to /home/ad08/.julia/compiled/v1.4/PenaltyFunctions/RxfJh_O8MUa.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
[6] include(::Module, ::String) at ./Base.jl:377
[7] top-level scope at none:2
[8] eval at ./boot.jl:331 [inlined]
[9] eval(::Expr) at ./client.jl:449
[10] top-level scope at ./none:3
in expression starting at /home/ad08/.julia/packages/DiffEqParamEstim/vV8rW/src/DiffEqParamEstim.jl:2
ERROR: Failed to precompile DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c] to /home/ad08/.julia/compiled/v1.4/DiffEqParamEstim/nWq0E_O8MUa.ji.
Stacktrace:
[1] error(::String) at ./error.jl:33
[2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1272
[3] _require(::Base.PkgId) at ./loading.jl:1029
[4] require(::Base.PkgId) at ./loading.jl:927
[5] require(::Module, ::Symbol) at ./loading.jl:922
I have no idea what is wrong. Shall I downgrade to julia-0.7.0 ? REQUIRE in PenaltyFunctions includes the row
julia 0.7-beta.
Thank you, but Pkg.update has no measurable effect. All seems to find, but PenaltyFunctions is unchanged. Do you know, where I can find a new version of PenaltyFunctions?
The current release of PenaltyFunctions is 0.2.1. I donβt see any packages there that would be holding it back from upgrading, so Iβm not sure whatβs going on.
@brunopjacob
My last reply is imprecise. I still cannot upgrade PenaltyFunctions to v.0.2.1. But my original program is running now.
I think that the problem with Learnbase is not solved, I donβt know if I need it anymore, but for the moment I can do my work.
Many thanks again.
downgrades PenaltyFunctions. To resolve the problem I started with an empty local .julia directory and got the following output for adding some packages:
After
add DifferentialEquations
add Plots
add LinearAlgebra
now seems to be o.k. I only got the following warnings. Donβt know if they are relevant.
julia> using DiffEqParamEstim
[ Info: Precompiling DiffEqParamEstim [1130ab10-4a5a-5621-a13d-e4788d82bd4c]
β Warning: lgamma(x::Real) is deprecated, use (logabsgamma(x))[1] instead.
β caller = lstirling_asym(::BigFloat) at misc.jl:56
β @ StatsFuns ~/.julia/packages/StatsFuns/2QE7p/src/misc.jl:56
WARNING: could not import LearnBase.prox into PenaltyFunctions
WARNING: could not import LearnBase.prox! into PenaltyFunctions
WARNING: could not import LearnBase.addgrad! into PenaltyFunctions
WARNING: could not import LearnBase.scaled into PenaltyFunctions
My status now is:
[a134a8b2] BlackBoxOptim v0.5.0
[1130ab10] DiffEqParamEstim v1.14.0
[0c46a032] DifferentialEquations v6.13.0
[7f8f8fb0] LearnBase v0.4.0
[429524aa] Optim v0.20.6
[06bb1623] PenaltyFunctions v0.2.1
[91a5bcdd] Plots v1.1.0
[731186ca] RecursiveArrayTools v2.3.1
[37e2e46d] LinearAlgebra