# Can't instantiate project with two unregistered packages

**URL:** <https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703>\
**Category:** General Usage\
**Created:** [March 29, 2020, 9:38pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703 "2020-03-29T21:38:57Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [March 29, 2020, 9:38pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/1 "2020-03-29T21:38:58Z")

</div>

I’m not sure what I’m missing but I’m having problems setting up a Julia project, as follows:

- I started the project on my Mac
- the project uses two unregistered packages:  
[GitHub - GenieFramework/Stipple.jl: The reactive UI library for interactive data applications with pure Julia.](https://github.com/essenciary/Stipple.jl)  
[https://github.com/GenieFramework/GenieAutoreload.jl](https://github.com/GenieFramework/GenieAutoreload.jl)

Now I want to continue developing the project on my Windows machine so I downloaded the project and I want to instantiate it, as follows:

- I have `developed` the 2 packages in `@v1.4`:

```julia
(@v1.4) pkg> st
Status `C:\Users\adria\.julia\environments\v1.4\Project.toml`
  [c43c736e] Genie v0.29.0 [`C:\Users\adria\.julia\dev\Genie`]
  [c6228e60] GenieAutoReload v0.1.0 [`C:\Users\adria\.julia\dev\GenieAutoReload`]
  [340e8cb6] SearchLight v0.19.0 [`C:\Users\adria\.julia\dev\SearchLight`]
  [c3245d6e] Stipple v0.1.0 [`C:\Users\adria\.julia\dev\Stipple`]

```

- then into the project I tried:

```julia
(TitanicDash) pkg> instantiate
   Updating registry at `C:\Users\adria\.julia\registries\General`
   Updating git-repo `https://github.com/JuliaRegistries/General.git`
ERROR: expected package `Stipple [c3245d6e]` to be registered

(TitanicDash) pkg> dev Stipple
Path `C:\Users\adria\.julia\dev\Stipple` exists and looks like the correct package. Using existing path.
  Resolving package versions...
ERROR: expected package `GenieAutoReload [c6228e60]` to be registered

(TitanicDash) pkg> dev GenieAutoReload
Path `C:\Users\adria\.julia\dev\GenieAutoReload` exists and looks like the correct package. Using existing path.
  Resolving package versions...
ERROR: expected package `Stipple [c3245d6e]` to be registered

```

No idea what the problem is and what to do next, other than register the packages?

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [March 29, 2020, 9:55pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/2 "2020-03-29T21:55:42Z")

</div>

In the end I removed one of the packages from the project and was able to instantiate it. Then I added the package back and all worked fine.

Can it be a bug in `Pkg`: when two packages are unregistered, it get confused @kristoffer.carlsson ?

---

<div class="post-metadata">

**Author:** ![anon67531922](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Post date:** [March 29, 2020, 10:39pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/3 "2020-03-29T22:39:24Z")

</div>

Try

```julia
pkg> dev ../Stipple
pkg> dev ../GenieAutoReload

```

? Without a path (absolute or relative), it will look in the registry and won’t find it.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [March 30, 2020, 7:32am UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/4 "2020-03-30T07:32:43Z")

</div>

Thanks @anon67531922 - I did `develop` them successfully in `@v1.4` by passing the full GitHub URL. The issue arises when running `pkg> instantiate` within the project (TitanicDash). `Pkg` knows how to resolve one unregistered package, but not two, so it looks like a bug (or an undocumented limitation).

---

<div class="post-metadata">

**Author:** ![anon67531922](https://avatars.discourse-cdn.com/v4/letter/a/48db29/32.png) [@anon67531922](https://discourse.julialang.org/u/anon67531922)\
**Post date:** [March 30, 2020, 7:52am UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/5 "2020-03-30T07:52:36Z")

</div>

I see. You want to dev them from GitHub. You can also achieve an approximation of what you want, if I understand, by deving them from a local directory. This is what I do for my private repos. It works well for containerization as well.

---

<div class="post-metadata">

**Author:** ![PaulMainwood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulmainwood/32/9578_2.png) [@PaulMainwood](https://discourse.julialang.org/u/PaulMainwood)\
**Post date:** [November 4, 2020, 12:16pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/6 "2020-11-04T12:16:06Z")

</div>

> [@anon67531922](#):
>
> what

With apologies for resurrecting an old thread, I am having what looks like a similar problem. Two unregistered, locally dev-ed packages. One depends on the other, and Pkg demands that it is registered.

@essenciary could you give a litte more detail on what you did to resolve? I tried removing one, then both packages and adding them back, but the problem recurs.

---

<div class="post-metadata">

**Author:** ![essenciary](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/essenciary/32/210469_2.png) [@essenciary](https://discourse.julialang.org/u/essenciary)\
**Post date:** [November 4, 2020, 3:00pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/7 "2020-11-04T15:00:13Z")

</div>

For me it worked as described. For example I had a dependency chain like this:  
Genie (registered) \> Stipple (unregistered) \> StippleUI (unregistered).

I removed the unregistered packages, dev-ed Stipple and then dev-ed StippleUI.

Maybe also check your manifest file or delete it altogether and add/dev all packages from scratch.

---

<div class="post-metadata">

**Author:** ![PaulMainwood](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/paulmainwood/32/9578_2.png) [@PaulMainwood](https://discourse.julialang.org/u/PaulMainwood)\
**Post date:** [November 4, 2020, 3:10pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/8 "2020-11-04T15:10:56Z")

</div>

Thank you.

I tried various permuations, and after some experimentation, cleaning out the lot and reinstalling with much use of “up” and “resolve” seems to have done the trick.

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [November 4, 2020, 3:45pm UTC](https://discourse.julialang.org/t/cant-instantiate-project-with-two-unregistered-packages/36703/9 "2020-11-04T15:45:51Z")

</div>

I have found a private registry to be a reliable solution for such issues. It gives all of the benefits of registering the packages in general registry.
