Error with the DIVAnd.jl package

Can anyone please help me debug this issue with the DIVAnd.jl package?


**Info** Given DIVAnd was explicitly requested, output will be shown live

**ERROR:** LoadError: cannot define function include; it already has a value

Stacktrace:

[1] top-level scope

@ ~/.julia/packages/DIVAnd/4UymR/src/Quadtrees.jl:116

[2] **include(**mapexpr::Function, mod::Module, _path::String**)**

@ Base ./Base.jl:307

[3] top-level scope

@ ~/.julia/packages/DIVAnd/4UymR/src/DIVAnd.jl:526

[4] **include(**mod::Module, _path::String**)**

@ Base ./Base.jl:306

[5] **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:2997

[6] top-level scope

@ stdin:5

[7] **eval(**m::Module, e::Any**)**

@ Core ./boot.jl:489

[8] **include_string(**mapexpr::typeof(identity), mod::Module, code::String, filename::String**)**

@ Base ./loading.jl:2843

[9] **include_string**

@ ./loading.jl:2853 [inlined]

[10] **exec_options(**opts::Base.JLOptions**)**

@ Base ./client.jl:315

[11] **_start()**

@ Base ./client.jl:550

in expression starting at /Users/ninja/.julia/packages/DIVAnd/4UymR/src/Quadtrees.jl:1

in expression starting at /Users/ninja/.julia/packages/DIVAnd/4UymR/src/DIVAnd.jl:1

in expression starting at stdin:5

✗ DIVAnd

**Precompiling** DIVAnd finished.

0 dependencies successfully precompiled in 4 seconds. 123 already precompiled.

**ERROR:** LoadError: The following 1 direct dependency failed to precompile:

DIVAnd

Failed to precompile DIVAnd [efc8151c-67de-5a8f-9a35-d8f54746ae9d] to "/Users/ninja/.julia/compiled/v1.12/DIVAnd/jl_GZVzvC".

**ERROR:** LoadError: cannot define function include; it already has a value

Stacktrace:

[1] top-level scope

@ ~/.julia/packages/DIVAnd/4UymR/src/Quadtrees.jl:116

[2] **include(**mapexpr::Function, mod::Module, _path::String**)**

@ Base ./Base.jl:307

[3] top-level scope

@ ~/.julia/packages/DIVAnd/4UymR/src/DIVAnd.jl:526

[4] **include(**mod::Module, _path::String**)**

@ Base ./Base.jl:306

[5] **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:2997

[6] top-level scope

@ stdin:5

[7] **eval(**m::Module, e::Any**)**

@ Core ./boot.jl:489

[8] **include_string(**mapexpr::typeof(identity), mod::Module, code::String, filename::String**)**

@ Base ./loading.jl:2843

[9] **include_string**

@ ./loading.jl:2853 [inlined]

[10] **exec_options(**opts::Base.JLOptions**)**

@ Base ./client.jl:315

[11] **_start()**

@ Base ./client.jl:550

Should be solved:

using Pkg
Pkg.add(url="https://github.com/gher-uliege/DIVAnd.jl", rev="master")
1 Like

It works. Thank you very much.

1 Like