# Dependency build failure and current path

**URL:** https://discourse.julialang.org/t/dependency-build-failure-and-current-path/59842
**Category:** New to Julia
**Created:** [April 23, 2021, 3:31am UTC](https://discourse.julialang.org/t/dependency-build-failure-and-current-path/59842 "2021-04-23T03:31:44Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![George9000](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/george9000/32/23619_2.png) [@George9000](https://discourse.julialang.org/u/George9000)
#### Post date: [April 23, 2021, 3:31am UTC](https://discourse.julialang.org/t/dependency-build-failure-and-current-path/59842/1 "2021-04-23T03:31:44Z")

</div>

I encounter a recurring error with packages failing to build due to a dependency on Emoji\_Entities. That package fails to build with the error “Package JSON not found in current path”. This error has been raised as an issue [here](https://github.com/JuliaString/Emoji_Entities.jl/issues/18).

Adding JSON does not make the error go away. I tried entirely removing `~/.julia` and then immediately after starting julia and going to the Pkg interface, `add JSON` which is successfully installed. Upon `add Emoji_Entities` the same error recurs:

```julia
(@v1.6) pkg> add Emoji_Entities
   Resolving package versions...
   Installed StrTables ────── v1.0.1
   Installed Emoji_Entities ─ v1.0.1
    Updating `~/.julia/environments/v1.6/Project.toml`
  [fd8f23de] + Emoji_Entities v1.0.1
    Updating `~/.julia/environments/v1.6/Manifest.toml`
  [fd8f23de] + Emoji_Entities v1.0.1
  [9700d1a9] + StrTables v1.0.1
    Building Emoji_Entities → `~/.julia/scratchspaces/44cfe95a-1eb2-52ea-b672-e2afdf69b78f/d45cd624dadedf039b74025d6ac4b200100a2e65/build.log`
ERROR: Error building `Emoji_Entities`:
ERROR: LoadError: ArgumentError: Package JSON not found in current path:
- Run `import Pkg; Pkg.add("JSON")` to install the JSON package.

Stacktrace:
 [1] require(into::Module, mod::Symbol)
   @ Base ./loading.jl:871
 [2] include(fname::String)
   @ Base.MainInclude ./client.jl:444
 [3] top-level scope
   @ none:5
in expression starting at /Users/foo/.julia/packages/Emoji_Entities/qRCWW/deps/build.jl:1

```

Platform: macOS 10.15.7, julia 1.6

Perhaps this is an issue with my load path. Any suggestions on fixing it?

```julia
julia> @show LOAD_PATH
LOAD_PATH = ["@", "@v#.#", "@stdlib"]
3-element Vector{String}:
 "@"
 "@v#.#"
 "@stdlib"

julia> LOAD_PATH
3-element Vector{String}:
 "@"
 "@v#.#"
 "@stdlib"

julia> Base.load_path()
2-element Vector{String}:
 "/Users/foo/.julia/environments/v1.6/Project.toml"
 "/Applications/Julia-1.6.app/Contents/Resources/julia/share/julia/stdlib/v1.6"

```

---

<div class="post-metadata">

### Author: ![ScottPJones](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/scottpjones/32/146_2.png) [@ScottPJones](https://discourse.julialang.org/u/ScottPJones)
#### Post date: [May 14, 2021, 7:59pm UTC](https://discourse.julialang.org/t/dependency-build-failure-and-current-path/59842/2 "2021-05-14T19:59:30Z")

</div>

This seems to have been caused by a change in Julia v1.6.  
Previously, even if it couldn’t load the package, the build script continued and then located the pre-built data file (that is already checked in).
