# Error in Pkg.add:

**URL:** <https://discourse.julialang.org/t/error-in-pkg-add/13164>\
**Category:** New to Julia\
**Tags:** pkg\
**Created:** [August 10, 2018, 9:53am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164 "2018-08-10T09:53:37Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gladex](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gladex](https://discourse.julialang.org/u/Gladex)\
**Post date:** [August 10, 2018, 9:53am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/1 "2018-08-10T09:53:37Z")

</div>

Hi everyone,

# I just installed Julia (64 bit version) and Atom on Win 10, and I opened Atom with error below,

Press Enter to start Julia.  
Starting Julia…  
ERROR: LoadError: ArgumentError: Package Atom not found in current path:

- Run `Pkg.add("Atom")` to install the Atom package.

# Stacktrace: [1] require(::Module, ::Symbol) at .\loading.jl:817 [2] top-level scope at C:\Users\Administrator.atom\packages\julia-client\script\boot\_repl.jl:13 [3] include at .\boot.jl:317 [inlined] [4] include\_relative(::Module, ::String) at .\loading.jl:1038 [5] include(::Module, ::String) at .\sysimg.jl:29 [6] exec\_options(::Base.JLOptions) at .\client.jl:229 [7] \_start() at .\client.jl:421 in expression starting at C:\Users\Administrator.atom\packages\julia-client\script\boot\_repl.jl:1

# Then I open Julia terminal, and type `Pkg.add("Atom")`

# ERROR: UndefVarError: Pkg not defined Stacktrace: [1] top-level scope at none:0

Can any one give help? Thanks a lot.

Ben

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 10, 2018, 10:21am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/2 "2018-08-10T10:21:52Z")

</div>

Please try updating the julia-client package (ideally via closing Atom, opening a terminal and calling `apm update`) and try again.

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 10, 2018, 10:36am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/3 "2018-08-10T10:36:06Z")

</div>

Aaah so that’s the way to do it without running into that weird bug where julia-client goes into zombie state!

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 10, 2018, 10:38am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/4 "2018-08-10T10:38:06Z")

</div>

Yeah. I had kinda hoped I fixed that in the latest release but apparently not… Will look into it again sometime soon.

---

<div class="post-metadata">

**Author:** ![Gladex](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gladex](https://discourse.julialang.org/u/Gladex)\
**Post date:** [August 10, 2018, 10:59am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/5 "2018-08-10T10:59:31Z")

</div>

# It does not work,

julia\> apm update  
ERROR: syntax: extra token “update” after end of expression

# julia\> apm ERROR: UndefVarError: apm not defined

---

<div class="post-metadata">

**Author:** ![Gladex](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gladex](https://discourse.julialang.org/u/Gladex)\
**Post date:** [August 10, 2018, 10:59am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/6 "2018-08-10T10:59:35Z")

</div>

# It does not work,

# julia\> apm update ERROR: syntax: extra token “update” after end of expression julia\> apm ERROR: UndefVarError: apm not defined

Any further suggestion?

---

<div class="post-metadata">

**Author:** ![saschatimme](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/saschatimme/32/10313_2.png) [@saschatimme](https://discourse.julialang.org/u/saschatimme)\
**Post date:** [August 10, 2018, 11:46am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/7 "2018-08-10T11:46:53Z")

</div>

`apm update` is meant to be run in your terminal, not in a Julia session. Alternatively, you can also go in Atom into Preferences and there in the Updates tab to update your installed Atom packages.

---

<div class="post-metadata">

**Author:** ![Gladex](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gladex](https://discourse.julialang.org/u/Gladex)\
**Post date:** [August 10, 2018, 12:24pm UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/8 "2018-08-10T12:24:40Z")

</div>

# It does not work yet,

# C:\WINDOWS\system32\>apm update Package Updates Available (0) └── (empty)

# Then

# julia\> Pkg.add(Atom) ERROR: UndefVarError: Pkg not defined Stacktrace: [1] top-level scope at none:0

Any suggestion?

---

<div class="post-metadata">

**Author:** ![Gladex](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@Gladex](https://discourse.julialang.org/u/Gladex)\
**Post date:** [August 10, 2018, 12:28pm UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/9 "2018-08-10T12:28:06Z")

</div>

Atom is terrible, not consolidated at all. People are wasting time updating and getting familiar with it. Not productive as RStudio, or PyCharm.

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Post date:** [August 10, 2018, 12:30pm UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/10 "2018-08-10T12:30:18Z")

</div>

I‘ve got similar problems to run Julia 1.0 using Atom 1.29.0. After a fresh installation of Atom and loading the package uber-juno (0.7.2) I tried to execute ‚1+1‘ within the console window (with julia-client setting Boot Mode: Cycler and Console Option: Legacy) I always get the error message:

```julia
ERROR: LoadError: UndefVarError: find_in_path not defined
Stacktrace:
 [1] getproperty(::Module, ::Symbol) at .\sysimg.jl:13
 [2] top-level scope at C:\Users\Carsten\.atom\packages\julia-client\script\boot_sync.jl:3
 [3] include at .\boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1038
 [5] include(::Module, ::String) at .\sysimg.jl:29
 [6] exec_options(::Base.JLOptions) at .\client.jl:229
 [7] _start() at .\client.jl:421
in expression starting at C:\Users\Carsten\.atom\packages\julia-client\script\boot_sync.jl:1

```

Using the Console Option: REPL-based ‚1+1 is works as expected.

---

<div class="post-metadata">

**Author:** ![pfitzseb](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pfitzseb/32/45566_2.png) [@pfitzseb](https://discourse.julialang.org/u/pfitzseb)\
**Post date:** [August 10, 2018, 12:44pm UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/11 "2018-08-10T12:44:48Z")

</div>

> [@Carsten](#):
>
> I‘ve got similar problems to run Julia 1.0 using Atom 1.29.0. After a fresh installation of Atom and loading the package uber-juno (0.7.2) I tried to execute ‚1+1‘ within the console window (with julia-client setting Boot Mode: Cycler and Console Option: Legacy) I always get the error message:

Sorry for that, should be fixed on the latest julia-client release. I’d emphatically urge you to start using the REPL-based console instead of the legacy console.

> [@Gladex](#):
>
> Atom is terrible, not consolidated at all. People are wasting time updating and getting familiar with it. Not productive as RStudio, or PyCharm.

Please remember that Juno is a community effort and not backed by a company. We still try our best to get you stable releases, but sometimes there are some minor hiccups. If you’ve enabled the Legacy console as well then please update julia-client and try again.

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Post date:** [August 12, 2018, 9:30am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/12 "2018-08-12T09:30:56Z")

</div>

Regarding my reply above:  
I started Atom and the new julia-client release 0.7.3 was updated. After relaunching Atom the Julia item within the menu disappeared and I was not able to get this item anymore. In a next step I uninstalled Atom by deleting the following folders:

```julia
C:\Users\User Name\.atom
C:\Users\User Name\AppData\Local\atom

```

Then I installed Atom again including loading the package uber-juno. Now executing a simple ‘1+1’ works within the Legacy console mode but I’ve got the error message (non-recurring):

```julia
Julia Client – Internal Error 
UndefVarError: active_repl not defined 

```

---

<div class="post-metadata">

**Author:** ![ig-or](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ig-or/32/4975_2.png) [@ig-or](https://discourse.julialang.org/u/ig-or)\
**Post date:** [August 14, 2018, 12:31am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/13 "2018-08-14T00:31:52Z")

</div>

Yes, still have this issue: Julia 1.0 + latest Atom does not work…  
Atom used to be the best editor for Julia. But What I’m getting now:

```julia
Press Enter to start Julia.

Hold on tight while we're installing some packages for you.
This should only take a few seconds...

ERROR: LoadError: ArgumentError: Package Pkg not found in current path:
- Run `Pkg.add("Pkg")` to install the Pkg package.

Stacktrace:
 [1] require(::Module, ::Symbol) at .\loading.jl:817
 [2] top-level scope at C:\Users\isandler\.atom\packages\julia-client\script\boot_repl.jl:15
 [3] include at .\boot.jl:317 [inlined]
 [4] include_relative(::Module, ::String) at .\loading.jl:1038
 [5] include(::Module, ::String) at .\sysimg.jl:29
 [6] exec_options(::Base.JLOptions) at .\client.jl:229
 [7] _start() at .\client.jl:421
in expression starting at C:\Users\isandler\.atom\packages\julia-client\script\boot_repl.jl:1

```

I tried everything, for the last three days… System is Windows 10, 64 bits…

---

<div class="post-metadata">

**Author:** ![ig-or](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ig-or/32/4975_2.png) [@ig-or](https://discourse.julialang.org/u/ig-or)\
**Post date:** [August 14, 2018, 1:07am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/14 "2018-08-14T01:07:29Z")

</div>

rolling back to Julia 0.6.4: now everything is working.

---

<div class="post-metadata">

**Author:** ![00vareladavid](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/00vareladavid/32/23521_2.png) [@00vareladavid](https://discourse.julialang.org/u/00vareladavid)\
**Post date:** [August 14, 2018, 3:58am UTC](https://discourse.julialang.org/t/error-in-pkg-add/13164/15 "2018-08-14T03:58:50Z")

</div>

> [@Gladex](#):
>
> UndefVarError: Pkg

This error is because you did not `import Pkg` before you ran `Pkg.add("Atom")`
