# LoadError: unknown package Atom when trying to use Julia on Atom

**URL:** <https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220>\
**Category:** New to Julia\
**Created:** [April 7, 2018, 12:21pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220 "2018-04-07T12:21:11Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![mrapo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrapo/32/3911_2.png) [@mrapo](https://discourse.julialang.org/u/mrapo)\
**Post date:** [April 7, 2018, 12:21pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/1 "2018-04-07T12:21:11Z")

</div>

Hi,

I wanted to use **Julia 0.6.2 on Atom** , but I got the following error message when the uber-juno installation was ready:

```
Press Enter to start Julia.
Starting Julia...
juno-msg-installingjuno-msg-installERROR: LoadError: unknown package Atom
macro expansion at .\pkg\entry.jl:53 [inlined]
(::Base.Pkg.Entry.##1#3{String,Base.Pkg.Types.VersionSet})() at .\task.jl:335
Stacktrace:
[1] sync_end() at .\task.jl:287
[2] macro expansion at .\task.jl:303 [inlined]
[3] add(::String, ::Base.Pkg.Types.VersionSet) at .\pkg\entry.jl:51
[4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}})() at .\pkg\dir.jl:36
[5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#add,Tuple{String}}, ::String) at .\file.jl
:59
[6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{String,N} where N) at .\pkg\di
r.jl:36
[7] add(::String) at .\pkg\pkg.jl:117
[8] include_from_node1(::String) at .\loading.jl:576
[9] include(::String) at .\sysimg.jl:14
[10] process_options(::Base.JLOptions) at .\client.jl:305
[11] _start() at .\client.jl:371
while loading C:\Users\mra136\.atom\packages\julia-client\script\boot_repl.jl, in expression starting
on line 11

```

Also if I now try to run `Pkg.update()` from Julia command prompt, the following error occurs:

```
ERROR: KeyError: key "Atom" not found
Stacktrace:
[1] getindex at .\dict.jl:474 [inlined]
[2] resolve(::Dict{String,Base.Pkg.Types.VersionSet}, ::Dict{String,Dict{Versio
nNumber,Base.Pkg.Types.Available}}, ::Dict{String,Tuple{VersionNumber,Bool}}, ::
Dict{String,Base.Pkg.Types.Fixed}, ::Dict{String,VersionNumber}, ::Set{String})
at .\pkg\entry.jl:485
[3] update(::String, ::Set{String}) at .\pkg\entry.jl:461
[4] (::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Set{
String}}})() at .\pkg\dir.jl:36
[5] cd(::Base.Pkg.Dir.##4#7{Array{Any,1},Base.Pkg.Entry.#update,Tuple{String,Se
t{String}}}, ::String) at .\file.jl:59
[6] #cd#1(::Array{Any,1}, ::Function, ::Function, ::String, ::Vararg{Any,N} whe
re N) at .\pkg\dir.jl:36
[7] update() at .\pkg\pkg.jl:228

```

Any suggestions why this happens and how to get this working?

---

<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:** [April 7, 2018, 1:00pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/2 "2018-04-07T13:00:51Z")

</div>

I’d recommend making a backup of `C:\Users\mra136\.julia` and then reinstalling `Atom.jl` and the other packages you need.

---

<div class="post-metadata">

**Author:** ![mrapo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrapo/32/3911_2.png) [@mrapo](https://discourse.julialang.org/u/mrapo)\
**Post date:** [April 7, 2018, 1:10pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/3 "2018-04-07T13:10:19Z")

</div>

Hi pfitzseb,  
I’ve tried reinstalling Atom many times but I always get the same error.

---

<div class="post-metadata">

**Author:** ![haberdashPI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/haberdashpi/32/26337_2.png) [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Post date:** [April 7, 2018, 2:12pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/4 "2018-04-07T14:12:51Z")

</div>

mrapo, just wondering if there’s a misunderstanding, as there’s some ambiguity in the above discussion. _Many_ apologies if I’m saying something stupidly obvious. There’s Atom the program, and `Atom.jl` the Julia package (for interacting with Atom the program).

So I think what `pfetzeb` means is after backing up your `.julia` directory, delete it, and then open Julia (_not_ in Atom, but seperately), and add the `Atom.jl` package

```julia
julia> Pkg.add("Atom")

```

And then open Atom.exe to see if that fixes the problem. Reinstalling Atom the program would not reset this directory, and so that would explain why you’re still having a problem.

---

<div class="post-metadata">

**Author:** ![mrapo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrapo/32/3911_2.png) [@mrapo](https://discourse.julialang.org/u/mrapo)\
**Post date:** [April 7, 2018, 7:03pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/5 "2018-04-07T19:03:00Z")

</div>

Hi haberdashPI and thanks for the explanation.

There is no `Atom.jl` folder inside the `.julia` folder.  
If I run `Pkg.add("Atom")` i get an error that says `ERROR: unknown package Atom`.

---

<div class="post-metadata">

**Author:** ![haberdashPI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/haberdashpi/32/26337_2.png) [@haberdashPI](https://discourse.julialang.org/u/haberdashPI)\
**Post date:** [April 9, 2018, 2:46pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/6 "2018-04-09T14:46:55Z")

</div>

I believe you need to update your package Metadata:

```julia
julia>Pkg.update()

```

---

<div class="post-metadata">

**Author:** ![mrapo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mrapo/32/3911_2.png) [@mrapo](https://discourse.julialang.org/u/mrapo)\
**Post date:** [April 9, 2018, 3:16pm UTC](https://discourse.julialang.org/t/loaderror-unknown-package-atom-when-trying-to-use-julia-on-atom/10220/7 "2018-04-09T15:16:40Z")

</div>

I got Atom to work by reinstalling everything a few times, but now I cannot use, install or update any packages. I will create a new thread about it.
