# Error with the DIVAnd.jl package

**URL:** https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189
**Category:** General Usage
**Created:** [October 16, 2025, 12:16am UTC](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189 "2025-10-16T00:16:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Leon6](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leon6/32/205483_2.png) [@Leon6](https://discourse.julialang.org/u/Leon6)
#### Post date: [October 16, 2025, 12:16am UTC](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189/1 "2025-10-16T00:16:40Z")

</div>

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

```julia-auto

**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

```

---

<div class="post-metadata">

### Author: ![JM\_Beckers](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jm_beckers/32/22482_2.png) [@JM\_Beckers](https://discourse.julialang.org/u/JM_Beckers)
#### Post date: [October 16, 2025, 8:58am UTC](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189/2 "2025-10-16T08:58:35Z")

</div>

Should be solved:

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

```

> <https://github.com/gher-uliege/DIVAnd.jl/issues/150>
>
> \*\*Describe the bug\*\*
> DIVAnd.jl doesn't install in Julia 1.12 macOS. Have not tes…t it on other systems.
> 
> \*\*Environment\*\*
> \- Julia version: 1.12 beta 4
> \- Operating system: macOS 15.5
> 
> \*\*Installed modules\*\*
> \`\`\`julia
> Type here the result of the command \`import Pkg; Pkg.status()\`:
> 
> Status \`~/.julia/environments/test/Project.toml\`
> \[efc8151c\] DIVAnd v2.7.12
> 
> \`\`\`
> 
> \*\*To Reproduce\*\*
> Pkg.add("DIVAnd.jl")
> 
> \*\* Full stack trace with error message\*\*
> 
> \`\`\`
> julia\> err
> PkgPrecompileError: The following 1 direct dependency failed to precompile:
> 
> DIVAnd 
> 
> Failed to precompile DIVAnd \[efc8151c-67de-5a8f-9a35-d8f54746ae9d\] to "/Users/user/.julia/compiled/v1.12/DIVAnd/jl\_Nvv667".
> 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:304
> \[3\] top-level scope
> @ ~/.julia/packages/DIVAnd/4UymR/src/DIVAnd.jl:526
> \[4\] include(mod::Module, \_path::String)
> @ Base ./Base.jl:303
> \[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:2991
> \[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:2837
> \[9\] include\_string
> @ ./loading.jl:2847 \[inlined\]
> \[10\] exec\_options(opts::Base.JLOptions)
> @ Base ./client.jl:319
> \[11\] \_start()
> @ Base ./client.jl:554
> in expression starting at /Users/user/.julia/packages/DIVAnd/4UymR/src/Quadtrees.jl:1
> in expression starting at /Users/user/.julia/packages/DIVAnd/4UymR/src/DIVAnd.jl:1
> in expression starting at stdin:
> \`\`\`

---

<div class="post-metadata">

### Author: ![Leon6](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leon6/32/205483_2.png) [@Leon6](https://discourse.julialang.org/u/Leon6)
#### Post date: [October 16, 2025, 3:33pm UTC](https://discourse.julialang.org/t/error-with-the-divand-jl-package/133189/3 "2025-10-16T15:33:10Z")

</div>

It works. Thank you very much.
