# Incomplete installation reported when importing package for the first time

**URL:** https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376
**Category:** New to Julia
**Created:** [December 25, 2020, 3:28pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376 "2020-12-25T15:28:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [December 25, 2020, 3:28pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376/1 "2020-12-25T15:28:01Z")

</div>

I installed the `Plots` package, but I get the following error when trying to compile it. I am using version 1.5.3 on Ubuntu. While installing this package, there was an interruption in between. What could I do to solve this problem ?

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
Your GR installation is incomplete. Rerun build step for GR package.
ERROR: LoadError: LoadError: InitError: Evaluation into the closed module `GR` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `GR` with `eval` during precompilation - don't do this.
Stacktrace:
 [1] eval at ./boot.jl:331 [inlined]
 [2] __init__ () at /home/nodi/.julia/packages/GR/RlE5Y/src/GR.jl:274
 [3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [4] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
 [5] _require(::Base.PkgId) at ./loading.jl:1007
 [6] require(::Base.PkgId) at ./loading.jl:928
 [7] require(::Module, ::Symbol) at ./loading.jl:923
 [8] include(::Function, ::Module, ::String) at ./Base.jl:380
 [9] include at ./Base.jl:368 [inlined]
 [10] include(::String) at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:1
 [11] top-level scope at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:212
 [12] include(::Function, ::Module, ::String) at ./Base.jl:380
 [13] include(::Module, ::String) at ./Base.jl:368
 [14] top-level scope at none:2
 [15] eval at ./boot.jl:331 [inlined]
 [16] eval(::Expr) at ./client.jl:467
 [17] top-level scope at ./none:3
during initialization of module GR
in expression starting at /home/nodi/.julia/packages/Plots/vsE7b/src/backends/gr.jl:6
in expression starting at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:212
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/nodi/.julia/compiled/v1.5/Plots/ld3vC_OHNrH.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

```

---

<div class="post-metadata">

### Author: ![Aman\_Atman](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/aman_atman/32/20248_2.png) [@Aman\_Atman](https://discourse.julialang.org/u/Aman_Atman)
#### Post date: [December 25, 2020, 3:37pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376/2 "2020-12-25T15:37:32Z")

</div>

You may try adding it again. I too interrupted(ctrl - c) it while installing the package. After that I again added it  
`] add Plots`

and now it works.

---

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [December 25, 2020, 3:40pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376/3 "2020-12-25T15:40:51Z")

</div>

That didn’t work, as I show below

```julia
julia> Pkg.add("Plots")
  Resolving package versions...
No Changes to `~/.julia/environments/v1.5/Project.toml`
No Changes to `~/.julia/environments/v1.5/Manifest.toml`

julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
Your GR installation is incomplete. Rerun build step for GR package.
ERROR: LoadError: LoadError: InitError: Evaluation into the closed module `GR` breaks incremental compilation because the side effects will not be permanent. This is likely due to some other module mutating `GR` with `eval` during precompilation - don't do this.
Stacktrace:
 [1] eval at ./boot.jl:331 [inlined]
 [2] __init__ () at /home/nodi/.julia/packages/GR/RlE5Y/src/GR.jl:274
 [3] _include_from_serialized(::String, ::Array{Any,1}) at ./loading.jl:697
 [4] _require_search_from_serialized(::Base.PkgId, ::String) at ./loading.jl:782
 [5] _require(::Base.PkgId) at ./loading.jl:1007
 [6] require(::Base.PkgId) at ./loading.jl:928
 [7] require(::Module, ::Symbol) at ./loading.jl:923
 [8] include(::Function, ::Module, ::String) at ./Base.jl:380
 [9] include at ./Base.jl:368 [inlined]
 [10] include(::String) at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:1
 [11] top-level scope at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:212
 [12] include(::Function, ::Module, ::String) at ./Base.jl:380
 [13] include(::Module, ::String) at ./Base.jl:368
 [14] top-level scope at none:2
 [15] eval at ./boot.jl:331 [inlined]
 [16] eval(::Expr) at ./client.jl:467
 [17] top-level scope at ./none:3
during initialization of module GR
in expression starting at /home/nodi/.julia/packages/Plots/vsE7b/src/backends/gr.jl:6
in expression starting at /home/nodi/.julia/packages/Plots/vsE7b/src/Plots.jl:212
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/nodi/.julia/compiled/v1.5/Plots/ld3vC_OHNrH.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1305
 [3] _require(::Base.PkgId) at ./loading.jl:1030
 [4] require(::Base.PkgId) at ./loading.jl:928
 [5] require(::Module, ::Symbol) at ./loading.jl:923

```

---

<div class="post-metadata">

### Author: ![iamsuddhasattwa](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iamsuddhasattwa/32/7441_2.png) [@iamsuddhasattwa](https://discourse.julialang.org/u/iamsuddhasattwa)
#### Post date: [December 25, 2020, 3:52pm UTC](https://discourse.julialang.org/t/incomplete-installation-reported-when-importing-package-for-the-first-time/52376/4 "2020-12-25T15:52:03Z")

</div>

I found it on [this](https://discourse.julialang.org/t/help-plots-not-loading/49941/18) link  
I have to rebuild the Plots package :  
`Pkg.build(“Plots”)`
