# Workers do not find packages in spite of @everywhere and Pkg.activate commands

**URL:** <https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441>\
**Category:** New to Julia\
**Tags:** distributed\
**Created:** [April 23, 2019, 2:00pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441 "2019-04-23T14:00:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![smury](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smury/32/8136_2.png) [@smury](https://discourse.julialang.org/u/smury)\
**Post date:** [April 23, 2019, 2:00pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/1 "2019-04-23T14:00:40Z")

</div>

I am new to Julia and am slowly trying to convert Matlab code. My current problem is that I cannot run distributed code. I have searched and found posts suggesting the use of @everywhere and Pkg.activate(“.”) but I just cannot get it to work. I get the error:

> LoadError: On worker 2: ArgumentError: Package Formatting not found in current path: - Run `import Pkg; Pkg.add("Formatting")` to install the Formatting package.

I use the JuliaPro distribution (Juno, Julia 1.0.3).

```julia
using Distributed
addprocs(3)
using Formatting
@everywhere using Pkg;
@everywhere Pkg.activate(".") 
@everywhere using Formatting

@sync @distributed for j=0:3
    #for j=0:3
    s=sprintf1("%.5e",j)
    print(s)
end

```

Thanks for any help.

---

<div class="post-metadata">

**Author:** ![smury](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smury/32/8136_2.png) [@smury](https://discourse.julialang.org/u/smury)\
**Post date:** [April 23, 2019, 4:25pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/2 "2019-04-23T16:25:57Z")

</div>

I discovered that this a problem with JuliaPro or with 1.0.3.  
I installed Julia 1.1 (and the Atom/Juno editor) and now its working.

---

<div class="post-metadata">

**Author:** ![mfariacastro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mfariacastro/32/4432_2.png) [@mfariacastro](https://discourse.julialang.org/u/mfariacastro)\
**Post date:** [October 7, 2019, 11:20pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/3 "2019-10-07T23:20:30Z")

</div>

Hi, I am reviving this thread because I am having the exact same problem (also trying to “translate” some Matlab code). I guess this was never fixed?

---

<div class="post-metadata">

**Author:** ![smury](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/smury/32/8136_2.png) [@smury](https://discourse.julialang.org/u/smury)\
**Post date:** [October 8, 2019, 1:46pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/4 "2019-10-08T13:46:33Z")

</div>

It was fixed. As I wrote, switching to pure Julia from Julia Pro fixed it.

---

<div class="post-metadata">

**Author:** ![mfariacastro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mfariacastro/32/4432_2.png) [@mfariacastro](https://discourse.julialang.org/u/mfariacastro)\
**Post date:** [October 8, 2019, 9:49pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/5 "2019-10-08T21:49:17Z")

</div>

Yes, I understand, but it still is a problem in JuliaPro

---

<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:** [October 9, 2019, 6:41am UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/6 "2019-10-09T06:41:47Z")

</div>

Perhaps you should contact them for support then.

---

<div class="post-metadata">

**Author:** ![mfariacastro](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mfariacastro/32/4432_2.png) [@mfariacastro](https://discourse.julialang.org/u/mfariacastro)\
**Post date:** [October 9, 2019, 11:11am UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/7 "2019-10-09T11:11:42Z")

</div>

I did not realize it was a completely different product, sorry I asked for the clarification.

---

<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:** [October 9, 2019, 12:32pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/8 "2019-10-09T12:32:10Z")

</div>

My reply was not intended as reproof, simply as a clarification. It _is_ a packaged version of Julia with some tweaks from a company that has some people on this forum, but since most people here use plain vanilla Julia it is hard to give help for that product.

---

<div class="post-metadata">

**Author:** ![avik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/avik/32/17_2.png) [@avik](https://discourse.julialang.org/u/avik)\
**Post date:** [October 9, 2019, 1:44pm UTC](https://discourse.julialang.org/t/workers-do-not-find-packages-in-spite-of-everywhere-and-pkg-activate-commands/23441/9 "2019-10-09T13:44:10Z")

</div>

This has been fixed in JuliaPro 1.0.5-1. The fix hasn’t yet reached the 1.2 version yet, but that should happen soon.

It is fine to ask questions about JuliaPro here, but be aware that it may be drowned out by the volume. Direct support can be obtained by emailing [juliapro@juliacomputing.com](mailto:juliapro@juliacomputing.com)
