# Dependencies problem in new Pkg

**URL:** <https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767>\
**Category:** General Usage\
**Created:** [July 31, 2018, 1:59pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767 "2018-07-31T13:59:43Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 1:59pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/1 "2018-07-31T13:59:43Z")

</div>

Hi guys!

I am making my packages ready for v0.7 but I am facing a problem. In new Pkg, I added my package using:

```julia
]add SatelliteToolbox
dev SatelliteToolbox

```

The problem is that, in the tests, it says that the package `ReferenceFrameRotations` is not available. However, it is a dependency of `SatelliteToolbox`. Thus, the tests are failing. It only worked when I manually add the `ReferenceFrameRotations`. Can anyone tell me what I am doing wrong?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [July 31, 2018, 2:04pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/2 "2018-07-31T14:04:05Z")

</div>

You cannot use “recurisve dependencies”. If you need to import it, it should be declared as a dependency. This is intended.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:06pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/3 "2018-07-31T14:06:24Z")

</div>

Hi @kristoffer.carlsson

I am not using recursive dependencies. `SatelliteToolbox` depends on `ReferenceFrameRotations`. Not the contrary.

In the old Pkg, when I add `SatelliteToolbox`, then `ReferenceFrameRotations` is added and everything works.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:11pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/4 "2018-07-31T14:11:00Z")

</div>

Maybe this warning can make things clear:

```julia
ERROR: LoadError: ArgumentError: Package SatelliteToolbox does not have SparseArrays in its dependencies:
 - If you have SatelliteToolbox checked out for development and have
   added SparseArrays 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 SatelliteToolbox.

```

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:17pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/5 "2018-07-31T14:17:23Z")

</div>

By the way, this is the `REQUIRE` file:

```julia
julia 0.6
HTTP
Interpolations
Parameters 0.9.0
ReferenceFrameRotations 0.2.1
StaticArrays

```

EDIT: Unfortunately I copied the wrong message error above ☹ please do not consider it

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [July 31, 2018, 2:20pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/6 "2018-07-31T14:20:31Z")

</div>

Do you have a link to e.g a Travis log where this fails.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:22pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/7 "2018-07-31T14:22:24Z")

</div>

In Travis it works, it is falling when I start to develop the package in my machine using `dev` of the new Pkg system.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [July 31, 2018, 2:27pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/8 "2018-07-31T14:27:00Z")

</div>

Ok, what if you manually pull the latest version by going into `dev`?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:28pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/9 "2018-07-31T14:28:22Z")

</div>

It does not work either. I needed to manually add the package `ReferenceFrameRotations`.

I mean, only after:

```julia
]add ReferenceFrameRotations

```

that things started to work.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [July 31, 2018, 2:30pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/10 "2018-07-31T14:30:38Z")

</div>

Where are you importing the package? In the REPL or from `Satellite...`?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:32pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/11 "2018-07-31T14:32:09Z")

</div>

ah! in `runtests.jl` I need to import it also.

```julia
using Test

using DelimitedFiles
using LinearAlgebra
using Printf
using ReferenceFrameRotations
using SatelliteToolbox

```

Btw, I saw the problem when running `julia runtests.jl`.

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 2:45pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/12 "2018-07-31T14:45:40Z")

</div>

Another question, can I use

```julia
julia 0.7

```

in `REQUIRE`? Because after the new commit, the package is not compatible anymore with v0.6.

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [July 31, 2018, 3:06pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/13 "2018-07-31T15:06:15Z")

</div>

> [@Ronis\_BR](#):
>
> `Package SatelliteToolbox does not have SparseArrays in its dependencies: - If you have SatelliteToolbox checked out for development and have added SparseArrays as a dependency but haven't updated your primary environment's manifest file, try Pkg.resolve().`

Did you try doing `Pkg.resolve()` (i.e. `resolve` at the pkg prompt)?

---

<div class="post-metadata">

**Author:** ![Ronis\_BR](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ronis_br/32/50999_2.png) [@Ronis\_BR](https://discourse.julialang.org/u/Ronis_BR)\
**Post date:** [July 31, 2018, 5:26pm UTC](https://discourse.julialang.org/t/dependencies-problem-in-new-pkg/12767/14 "2018-07-31T17:26:43Z")

</div>

Yes I did, but unfortunately this was not the error message that I wanted to paste. The other problem with the `ReferenceFrameRotations` package was not fixed by `Pkg.resolve()`.
