# GR build problems: "installation is incomplete"

**URL:** <https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [April 7, 2021, 3:13pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764 "2021-04-07T15:13:07Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 3:13pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/1 "2021-04-07T15:13:07Z")

</div>

My students are still getting the error reported here:

> [@Help! Plots not loading](https://discourse.julialang.org/t/help-plots-not-loading/49941):
>
> I’m having trouble with the GR backend for Plots 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. I tried Pkg.build("GR")

But since this was over 6 months ago and not adequately resolved I am raising it again.

This semester, I took a chance and decided to be the first in my University to set Julia, to a class of 100 Data Science students, and now they are up in arms, mostly over the fact that after working fine for most of the semester, Plots has stopped working for them, just as they are completing their final projects and seems to be unfixable, despite reinstallations, suggested fixes etc.

The initial error message many of them are getting is:

```julia
Your GR installation is incomplete. Rerun build step for GR package.

```

This does not solve the problems, nor does deleting/reinstalling Plots or any of the suggested fixes in the (lengthy) discourse link above

Thanks for any urgent help on this, as some students are very frustrated (as am I).

Even a workaround would be great at this point. Is it possible to run Plots without GR?

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [April 7, 2021, 3:25pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/2 "2021-04-07T15:25:15Z")

</div>

I can’t help with this problem, specifically, but in order for others to help out I think we need more information.

1. What version of Julia are your students using?
2. What version of Plots are they using?
3. What changed that caused Plots to stop failing (Project.toml, etc.)
4. Which platforms are the students on who are having trouble? Windows, Mac, Linux, etc.

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 7, 2021, 3:30pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/3 "2021-04-07T15:30:44Z")

</div>

- It is possible to user older version of packages if a new one is problematic. This can be done with e.g. `pkg> add GR@0.54` to use the 0.54.x version of GR.
- A good idea is to keep the `Manifest.toml` around. That file contains all the version of the packages used so that things can be reproduced in case an update goes bad.

---

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [April 7, 2021, 3:31pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/4 "2021-04-07T15:31:48Z")

</div>

Maybe switch to `plotly()` backend?

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 3:33pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/5 "2021-04-07T15:33:12Z")

</div>

> [@pdeffebach](#):
>
> I can’t help with this problem, specifically, but in order for others to help out I think we need more information.
> 
> 1. What version of Julia are your students using?
> 2. What version of Plots are they using?
> 3. What changed that caused Plots to stop failing (Project.toml, etc.)
> 4. Which platforms are the students on who are having trouble? Windows, Mac, Linux, etc.

Hi PD, thanks, the are all using Julia 1.5.3, whatever the latest version of Plots is, I don’t know what changed that would make it all fail, and I think most of the ones having problems are on Windows, though I had this problem myself some time ago, and I’m on Mac (can’t remember how I fixed it, but it was not easy or obvious).

Thanks

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [April 7, 2021, 3:33pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/6 "2021-04-07T15:33:41Z")

</div>

I had something similar. What I did was :

```julia
]rm GR
]rm GR_jll
]registry update
]add GR
]build GR

```

At some point I also had a dirty registry so I went into the `.julia/registries/General` folder and ran

```julia
git reset --hard
git pull

```

Maybe something works.

---

<div class="post-metadata">

**Author:** ![antoine-levitt](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/antoine-levitt/32/4008_2.png) [@antoine-levitt](https://discourse.julialang.org/u/antoine-levitt)\
**Post date:** [April 7, 2021, 3:38pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/7 "2021-04-07T15:38:00Z")

</div>

The usual workaround for me is to `rm -rf .julia`.

Also, not too helpful, but I advise students to use PyPlot instead of Plots (because I could never figure out how to zoom in Plots, and because students are already familiar with matplotlib). Of course that opens the can of worms that is PyCall and python installations, but that’s needed for jupyter anyway.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 3:39pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/8 "2021-04-07T15:39:54Z")

</div>

Thanks all for your suggestions (and for getting back to me quickly - I am hoping  
to alleviate panic).

I will pass them on to the students and see what works for them and report back here!.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 3:47pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/9 "2021-04-07T15:47:39Z")

</div>

> [@feanor12](#):
>
> I had something similar. What I did was :
> 
> ```julia
> ]rm GR
> ]rm GR_jll
> ]registry update
> ]add GR
> ]build GR
> 
> ```
> 
> At some point I also had a dirty registry so I went into the `.julia/registry` folder and ran
> 
> ```julia
> git reset --hard
> git pull
> 
> ```
> 
> Maybe something works.

Hiya,

I will certainly ask them to do the first one. Would an alternative to the second be just deleting Registry.toml ? I have in the past used that to solve some other problems.  
And btw, is the second suggestion run within julia, or at the shell commandline?

Thanks

---

<div class="post-metadata">

**Author:** ![feanor12](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/feanor12/32/8212_2.png) [@feanor12](https://discourse.julialang.org/u/feanor12)\
**Post date:** [April 7, 2021, 3:50pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/10 "2021-04-07T15:50:26Z")

</div>

The git commands were run in the command line, but I think there is also a Julia interface for git built into Base. Also the folder was `.julia/registries/General` . I’ll fix it in the post above.

Git can be called inside Julia by `using LibGit2`

Maybe @StefanKarpinski knows a better way to fix a broken registry or clean a broken package install.  
Also @jheinen might be able to help with GR.

Did you try the last reply from the discussion mentioned above:

> [@Help! Plots not loading](https://discourse.julialang.org/t/help-plots-not-loading/49941/48):
>
> I had the same issue and build GR command won’t fix it. Here is how i did fix it: goto ~.julia\compiled\v1.6\GR delete everything in there run the build command again

---

<div class="post-metadata">

**Author:** ![pjentsch0](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pjentsch0/32/15148_2.png) [@pjentsch0](https://discourse.julialang.org/u/pjentsch0)\
**Post date:** [April 7, 2021, 4:25pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/11 "2021-04-07T16:25:12Z")

</div>

Yes I have this problem sometimes and can confirm that the only fix is usually to remove `.julia`.

I find Plots.jl to very fragile as well.

---

<div class="post-metadata">

**Author:** ![ElOceanografo](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/eloceanografo/32/624_2.png) [@ElOceanografo](https://discourse.julialang.org/u/ElOceanografo)\
**Post date:** [April 7, 2021, 4:28pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/12 "2021-04-07T16:28:55Z")

</div>

I have had similar problems show up in the past week for both Windows and Linux installs–I thought it was related to upgrading to Julia 1.6, but maybe not, if your students are all on 1.5. Uninstalling GR and GR\_jll, running `] gc`, (and possibly manually deleting their directories in .julia/packages) and then reinstalling was what worked for me.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 4:28pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/13 "2021-04-07T16:28:56Z")

</div>

> [@pjentsch0](#):
>
> Yes I have this problem sometimes and can confirm that the only fix is usually to remove `.julia` .
> 
> I find Plots.jl to very fragile as well.

Thanks. I wondered about this. So you have found that it works? And it rebuilds itself? I suppose you have to add everything again.

Thanks. I do wish they would fix Plots and/or GR

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [April 7, 2021, 4:50pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/14 "2021-04-07T16:50:45Z")

</div>

You should only have to `instantiate` if you have a `Project.toml` in your directory.

> I do wish they would fix Plots and/or GR

It looks like there aren’t an [issues](https://github.com/JuliaPlots/Plots.jl/issues) filed for this bug. If you are having problems, it’s good to report them on github.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 5:04pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/15 "2021-04-07T17:04:35Z")

</div>

> [@pdeffebach](#):
>
> You should only have to `instantiate` if you have a `Project.toml` in your directory.

Thanks, but I don’t know what this means (sorry for my ignorance).

---

<div class="post-metadata">

**Author:** ![pdeffebach](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pdeffebach/32/10320_2.png) [@pdeffebach](https://discourse.julialang.org/u/pdeffebach)\
**Post date:** [April 7, 2021, 5:27pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/16 "2021-04-07T17:27:50Z")

</div>

You decided to teach a class of 100 Data Science students without reading into how to properly manage an environment in Julia?

You can do `] instantiate` when there is an existing `Project.toml` or a `Manifest.toml` and Julia will download all the packages listed in either one, at the correct versions.

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 5:32pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/17 "2021-04-07T17:32:32Z")

</div>

Anyway, I didn’t want the class to be too formulaic - I want to encourage students to be self-reliant. And, apart from a few teething problems, it worked. Almost. Just except this bug.

Thanks for your thoughts

\*\*\* Update\*\*\* someone has suggested that downgrading GR to 0.55.0 fixes the problem

PS I wonder if something as basic and essential as plotting should have at least a basic working version in Base? It is wonderful that people contribute packages like Plots and GR, but if Julia is to be relied upon for research and teaching, shouldn’t underwriting/ensuring the stability of basic programming functionality be a priority?

PPS If I were to give then a common Project.toml or Mainfest.toml, would they be able to add new packages if I missed some that they needed?

---

<div class="post-metadata">

**Author:** ![matthieu](https://avatars.discourse-cdn.com/v4/letter/m/da6949/32.png) [@matthieu](https://discourse.julialang.org/u/matthieu)\
**Post date:** [April 7, 2021, 9:07pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/18 "2021-04-07T21:07:26Z")

</div>

It would be awesome if this kind of issues were fixed. I don’t think people (esp. students) should have to figure out instantiate, Project.toml, Manifest.toml etc in order to use Julia for quick plotting. It sounds crazy to me that the solution is to do “rm -rf .julia”

---

<div class="post-metadata">

**Author:** ![compleat](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/compleat/32/8958_2.png) [@compleat](https://discourse.julialang.org/u/compleat)\
**Post date:** [April 7, 2021, 9:08pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/19 "2021-04-07T21:08:49Z")

</div>

Yes!!!

---

<div class="post-metadata">

**Author:** ![carstenbauer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/carstenbauer/32/4981_2.png) [@carstenbauer](https://discourse.julialang.org/u/carstenbauer)\
**Post date:** [April 7, 2021, 9:40pm UTC](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764/20 "2021-04-07T21:40:25Z")

</div>

Well, I’ve run multiple courses and workshops with almost no issues at all. The thing is that I carefully prepared a (fixed) Julia environment (Project.toml + Manifest.toml) and made sure that my environment works on a plain Windows / Linux VM. The students than just used my tested environment.

(And I also offered a last-resort alternative like [mybinder.org](http://mybinder.org) where everything was guaranteed (because tested) to work.)

(See [GitHub - carstenbauer/JuliaNRW21: Julia workshop @ HPC.NRW](https://github.com/crstnbr/JuliaNRW21) for example. Note that I even created a little [WorkshopWizard.jl](https://crstnbr.github.io/WorkshopWizard.jl/dev/usage/#Getting-the-latest-workshop-1) to simplify the process for them even further.)

[Next page](https://discourse.julialang.org/t/gr-build-problems-installation-is-incomplete/58764.md?page=2)
