Issues in using Econometrics package

I just started using julia-1.5.3 on my Linux machine (Pop!_OS 20.10). I cloned https://github.com/mcreel/Econometrics in order to add the package to Julia. Afterwards I did “using Econometrics” to use the package. I got three errors. this is the code.

julia> using Printf

julia> using Econometrics
[ Info: Precompiling Econometrics [4d6a76a9-bfbc-5492-8924-cf6ed7875f06]
**ERROR: LoadError: LoadError: LoadError: UndefVarError: @printf not defined**
Stacktrace:
 [1] top-level scope
 [2] include(::Function, ::Module, ::String) at ./Base.jl:380
 [3] include at ./Base.jl:368 [inlined]
 [4] include(::String) at /home/mtubani/.julia/packages/Optim/5JqO8/src/Optim.jl:18
 [5] top-level scope at /home/mtubani/.julia/packages/Optim/5JqO8/src/Optim.jl:106
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/mtubani/.julia/packages/Optim/5JqO8/src/types.jl:66
in expression starting at /home/mtubani/.julia/packages/Optim/5JqO8/src/types.jl:64
in expression starting at /home/mtubani/.julia/packages/Optim/5JqO8/src/Optim.jl:106
**ERROR: LoadError: Failed to precompile Optim [429524aa-4258-5aef-a3af-852621145aeb] to /home/mtubani/.julia/compiled/v1.5/Optim/R5uoh_RgLlA.ji.**
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923
 [6] include(::Function, ::Module, ::String) at ./Base.jl:380
 [7] include(::Module, ::String) at ./Base.jl:368
 [8] top-level scope at none:2
 [9] eval at ./boot.jl:331 [inlined]
 [10] eval(::Expr) at ./client.jl:467
 [11] top-level scope at ./none:3
in expression starting at /home/mtubani/.julia/packages/Econometrics/s3aVP/src/Econometrics.jl:4
**ERROR: Failed to precompile Econometrics [4d6a76a9-bfbc-5492-8924-cf6ed7875f06] to /home/mtubani/.julia/compiled/v1.5/Econometrics/XQPLt_RgLlA.ji.**
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

What should I do?
Thank you very much in advance and best regards

Thanks for the interest. Please try this:

  1. go to the directory where you cloned Econometrics, and start Julia
  2. do using Pkg; Pkg.activate(".")
  3. do Pkg.instantiate()
  4. now do using Econometrics
    step 3 will take a while, as there are a number of packages that Econometrics relies upon.
1 Like

Dear Professor, now it works. Thank you very much and merry Christmas to you and your family.

Excellent! Merry Christmas.