# Package does not have ... in its dependencies, but it does

**URL:** <https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017>\
**Category:** General Usage\
**Tags:** package, development\
**Created:** [March 19, 2019, 5:30am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017 "2019-03-19T05:30:15Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [March 19, 2019, 5:30am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/1 "2019-03-19T05:30:15Z")

</div>

I developed a package called [`EquationsOfState.jl`](https://github.com/singularitti/EquationsOfState.jl). However, when I try to build the latest version (`v1.1.1`), I got such error:

```julia
(v1.0) pkg> st
    Status `~/.julia/environments/v1.0/Project.toml`
  [0438fec6] EquationsOfState v1.1.1

(v1.0) pkg> precompile
Precompiling project...
Precompiling EquationsOfState
[Info: Precompiling EquationsOfState [0438fec6-b81c-52d9-9651-d286848f50a8]
ERROR: LoadError: ArgumentError: Package EquationsOfState does not have Reexport in its dependencies:
- If you have EquationsOfState checked out for development and have
  added Reexport as a dependency but haven't updated your primary
  environment's manifest file, try `Pkg.resolve()`.
- Otherwise you may need to report an issue with EquationsOfState
Stacktrace:
 [1] require(::Module, ::Symbol) at ./loading.jl:836
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1044
 [4] include(::Module, ::String) at ./sysimg.jl:29
 [5] top-level scope at none:2
 [6] eval at ./boot.jl:319 [inlined]
 [7] eval(::Expr) at ./client.jl:393
 [8] top-level scope at ./none:3
in expression starting at /Users/qz/.julia/packages/EquationsOfState/9ywpR/src/EquationsOfState.jl:3
ERROR: Failed to precompile EquationsOfState [0438fec6-b81c-52d9-9651-d286848f50a8] to /Users/qz/.julia/compiled/v1.0/EquationsOfState/Fr41m.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1203
 [3] precompile(::Pkg.Types.Context) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/API.jl:514
 [4] do_precompile!(::Dict{Symbol,Any}, ::Array{String,1}, ::Dict{Symbol,Any}) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:662
 [5] #invokelatest#1(::Base.Iterators.Pairs{Union{},Union{},Tuple{},NamedTuple{(),Tuple{}}}, ::Function, ::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:697
 [6] invokelatest(::Any, ::Any, ::Vararg{Any,N} where N) at ./essentials.jl:696
 [7] do_cmd!(::Pkg.REPLMode.PkgCommand, ::REPL.LineEditREPL) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:603
 [8] #do_cmd#33(::Bool, ::Function, ::REPL.LineEditREPL, ::String) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:577
 [9] do_cmd at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:573 [inlined]
 [10] (::getfield(Pkg.REPLMode, Symbol("##50#53")){REPL.LineEditREPL,REPL.LineEdit.Prompt})(::REPL.LineEdit.MIState, ::Base.GenericIOBuffer{Array{UInt8,1}}, ::Bool) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/Pkg/src/REPLMode.jl:923
 [11] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [12] invokelatest at ./essentials.jl:696 [inlined]
 [13] run_interface(::REPL.Terminals.TextTerminal, ::REPL.LineEdit.ModalInterface, ::REPL.LineEdit.MIState) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/LineEdit.jl:2273
 [14] run_frontend(::REPL.LineEditREPL, ::REPL.REPLBackendRef) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:1034
 [15] run_repl(::REPL.AbstractREPL, ::Any) at /Users/osx/buildbot/slave/package_osx64/build/usr/share/julia/stdlib/v1.0/REPL/src/REPL.jl:191
 [16] (::getfield(Base, Symbol("##718#720")){Bool,Bool,Bool,Bool})(::Module) at ./client.jl:355
 [17] #invokelatest#1 at ./essentials.jl:697 [inlined]
 [18] invokelatest at ./essentials.jl:696 [inlined]
 [19] run_main_repl(::Bool, ::Bool, ::Bool, ::Bool, ::Bool) at ./client.jl:339
 [20] exec_options(::Base.JLOptions) at ./client.jl:277
 [21] _start() at ./client.jl:425

```

But I do have `Reexport` in [`Project.toml`](https://github.com/singularitti/EquationsOfState.jl/blob/e7d730e7c862af9e7692d3b842cebaabc656a7bf/Project.toml). Why cannot I build my package? I have a clean `.julia` directory. I have tried to `rm` and `gc`, and even remove `.julia`, but it did not help.

Could it because [I once changed the package’s name and UUID](https://github.com/singularitti/EquationsOfState.jl/commit/97cda049a99fa15aa56aeaad534f38b9cc0155d8)?

---

<div class="post-metadata">

**Author:** ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)\
**Post date:** [March 19, 2019, 7:37am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/2 "2019-03-19T07:37:45Z")

</div>

> [@singularitti](#):
>
> Could it because [I once changed the package’s name and UUID](https://github.com/singularitti/EquationsOfState.jl/commit/97cda049a99fa15aa56aeaad534f38b9cc0155d8)?

Yes, very likely. Remove the old one and add the correct one.

---

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [March 24, 2019, 3:19am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/3 "2019-03-24T03:19:37Z")

</div>

I’m sorry I do not understand to remove what and add what? Remove the old package from `METADATA.jl`?

---

<div class="post-metadata">

**Author:** ![fredrikekre](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/fredrikekre/32/1688_2.png) [@fredrikekre](https://discourse.julialang.org/u/fredrikekre)\
**Post date:** [March 24, 2019, 12:52pm UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/4 "2019-03-24T12:52:50Z")

</div>

The `General` registry is based on `METADATA` which is based on `REQUIRE` files. You don’t have the dependencies in your [`REQUIRE`-file](https://github.com/singularitti/EquationsOfState.jl/blob/e7d730e7c862af9e7692d3b842cebaabc656a7bf/REQUIRE), so that is (likely) the problem.

---

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [March 29, 2019, 5:00am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/5 "2019-03-29T05:00:22Z")

</div>

Thank you for your reply. I am just curious about why `Project.toml` is not enough. Because I saw

> 1. When everything is working the dependencies are computed from the `Project.toml` not from `REQUIRE` . You don’t need the `REQUIRE` file anymore.

from [here](https://discourse.julialang.org/t/recommended-way-to-migrate-an-existing-package-to-pkg3/11560/2).

---

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [March 29, 2019, 5:09am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/6 "2019-03-29T05:09:39Z")

</div>

That refers to the process of deprecating METADATA/Attobot/REQUIRE in favor of General/Registrator/Project. The last component is being tested right now through [Registrator](https://github.com/JuliaComputing/Registrator.jl/) and a branch of General. Depending on how the beta test works, it should be rolled out soon. Once that happens, REQUIRE won’t be needed and Project.toml will completely replace it.

---

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [March 29, 2019, 5:15am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/7 "2019-03-29T05:15:05Z")

</div>

Thank you! I have installed [the attobot app](https://github.com/attobot/attobot), and I wonder how I can benefit from `Registrator` over `attobot`?

---

<div class="post-metadata">

**Author:** ![Nosferican](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nosferican/32/9275_2.png) [@Nosferican](https://discourse.julialang.org/u/Nosferican)\
**Post date:** [March 29, 2019, 5:28am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/8 "2019-03-29T05:28:11Z")

</div>

It is currently in beta so some changes are happening currently (e.g., making it read-only permission bot). You can install it just like Attobot and follow the docs on the project. For that, no REQUIRE required.

```
So create new packages, have them get registered, update them etc.
To test it, add @nishanth's fork of the registry to Pkg and try to install
the packages etc. The more testing the faster we can make it the
default and the less problems it will have when we switch.

```

- @kristoffer.carlsson

You can join the Slack channel #pkg-dev for more info and support testing it out.

---

<div class="post-metadata">

**Author:** ![singularitti](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/singularitti/32/17678_2.png) [@singularitti](https://discourse.julialang.org/u/singularitti)\
**Post date:** [March 29, 2019, 6:08am UTC](https://discourse.julialang.org/t/package-does-not-have-in-its-dependencies-but-it-does/22017/9 "2019-03-29T06:08:13Z")

</div>

Thank you for your information.
