# Precompiling Plots.jl fails on julia 1.0

**URL:** https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232
**Category:** New to Julia
**Tags:** question, package, plotting, linux
**Created:** [August 11, 2018, 9:50am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232 "2018-08-11T09:50:00Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 11, 2018, 9:50am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/1 "2018-08-11T09:50:00Z")

</div>

First off, congrats on finally reaching 1.0! It’s awesome. Excited as I am I dove straight into downloading and installing 1.0. I also cleaned out anything from my .julia folders to make sure I’m starting out fresh. 🙂

Anyway here goes: My problem comes when trying to precompile Plots.jl. Perhaps Plots.jl is not ported to 1.0 yet?

Reproducible(on my machine) example.

```julia
using Pkg
Pkg.add("Plots")
using Plots

```

Which leads to this error:

[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]  
ERROR: LoadError: LoadError: UndefVarError: endof not defined  
Stacktrace:  
[1] getproperty(::Module, ::Symbol) at ./sysimg.jl:13  
[2] top-level scope at none:0  
[3] include at ./boot.jl:317 [inlined]  
[4] include\_relative(::Module, ::String) at ./loading.jl:1038  
[5] include at ./sysimg.jl:29 [inlined]  
[6] include(::String) at /home/michael/.julia/packages/Plots/mqUvK/src/Plots.jl:3  
[7] top-level scope at none:0  
[8] include at ./boot.jl:317 [inlined]  
[9] include\_relative(::Module, ::String) at ./loading.jl:1038  
[10] include(::Module, ::String) at ./sysimg.jl:29  
[11] top-level scope at none:2  
[12] eval at ./boot.jl:319 [inlined]  
[13] eval(::Expr) at ./client.jl:389  
[14] top-level scope at ./none:3  
in expression starting at /home/michael/.julia/packages/Plots/mqUvK/src/types.jl:90  
in expression starting at /home/michael/.julia/packages/Plots/mqUvK/src/Plots.jl:156  
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/michael/.julia/compiled/v1.0/Plots/ld3vC.ji.  
Stacktrace:  
[1] error(::String) at ./error.jl:33  
[2] macro expansion at ./logging.jl:313 [inlined]  
[3] compilecache(::Base.PkgId, ::String) at ./loading.jl:1184  
[4] \_require(::Base.PkgId) at ./logging.jl:311  
[5] require(::Base.PkgId) at ./loading.jl:852  
[6] macro expansion at ./logging.jl:311 [inlined]  
[7] require(::Module, ::Symbol) at ./loading.jl:834

I’m using Ubuntu Linux 17.10 on a Surface pro 4.

Best,  
Michael

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 9:57am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/2 "2018-08-11T09:57:23Z")

</div>

> [@DoktorMike](#):
>
> Perhaps Plots.jl is not ported to 1.0 yet?

Exactly. It’ll be ready soon. You can join the slack ([julialang.slack.com](http://julialang.slack.com)) and the #plotting channel to follow the discussions, but it’s almost ready to be tagged.

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 11, 2018, 9:59am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/3 "2018-08-11T09:59:29Z")

</div>

Great. Thanks!

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 10:00am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/4 "2018-08-11T10:00:50Z")

</div>

There’s currently a hackathon in the aftermath of JuliaCon, and I think quite a few maintainers of core packages are working to get their packages ready. Many are already ready, tagged and published, but not all.

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 11, 2018, 10:01am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/5 "2018-08-11T10:01:53Z")

</div>

Is there a list somewhere of packages already ported?

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 10:05am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/6 "2018-08-11T10:05:51Z")

</div>

I don’t think so. The best way to generate such a list is to run PkgEvaluator. @Keno did it frequently throughout the week, but I’m not sure if he’s still updating the number of packages passing tests. You can follow the merges here, but it’s not a super convenient way of getting an overview of the ecosystem [https://github.com/JuliaLang/METADATA.jl/issues?q=is%3Apr+is%3Aclosed](https://github.com/JuliaLang/METADATA.jl/issues?q=is%3Apr+is%3Aclosed)

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 10:14am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/7 "2018-08-11T10:14:49Z")

</div>

Maybe this one is the closest you’ll find [https://gist.github.com/Keno/eaf49cc99f5767d77f4a2cc7cb4e3ec2](https://gist.github.com/Keno/eaf49cc99f5767d77f4a2cc7cb4e3ec2)

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 11, 2018, 10:16am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/8 "2018-08-11T10:16:12Z")

</div>

How did you find that? 😂 But that looks like a good bet on such a list.

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 10:16am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/9 "2018-08-11T10:16:46Z")

</div>

Slack 🙂 Come join us!

---

<div class="post-metadata">

### Author: ![LeoK987](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/leok987/32/4880_2.png) [@LeoK987](https://discourse.julialang.org/u/LeoK987)
#### Post date: [August 11, 2018, 10:23am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/10 "2018-08-11T10:23:19Z")

</div>

Why many are “skipped”?

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 11, 2018, 10:25am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/11 "2018-08-11T10:25:59Z")

</div>

It may be known that it’s dependencies are not working, so it’s not worth running it either.

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 12, 2018, 6:51am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/12 "2018-08-12T06:51:26Z")

</div>

Just for anyone reading this thread in the future. Plots.jl works with julia v 1.0 now. 🙂

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 12, 2018, 7:28am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/13 "2018-08-12T07:28:23Z")

</div>

Great! I think it was helpful that a few people involved in Plots and the surrounding packages were at the hackathon ! 🙂

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 12, 2018, 7:48am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/14 "2018-08-12T07:48:01Z")

</div>

So the installing and precompiling works perfectly but somehow I cannot recreate a variant of the plot example from the manual. The code is the following:

```julia
using Distributions
using Plots

println("Verify that the world still works");
a = rand(Distributions.Gaussian(10, 5), 100);
b = rand(Distributions.Gaussian(10, 5), 100);

plot(x=a, y=b)

```

It results in the screen being just white as in the screenshot. Any ideas?

 ![screenshot](https://global.discourse-cdn.com/julialang/original/3X/3/1/314a13feda12fced82195c71316d8be92fd4f116.png)

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 12, 2018, 7:55am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/15 "2018-08-12T07:55:43Z")

</div>

Try `plot(a, b)`

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 12, 2018, 7:56am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/16 "2018-08-12T07:56:21Z")

</div>

same result. :-/

 ![screenshot](https://global.discourse-cdn.com/julialang/original/3X/0/8/083adacfc6e2610e8af6476092529cf8c5d73eff.png)

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 12, 2018, 8:00am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/17 "2018-08-12T08:00:45Z")

</div>

What if you try from the REPL?

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 12, 2018, 8:07am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/18 "2018-08-12T08:07:28Z")

</div>

![screenshot](https://global.discourse-cdn.com/julialang/original/3X/c/b/cb96ad0075356656c8de7ee7222d789470a60c22.png)

Same as far as I can see…

---

<div class="post-metadata">

### Author: ![pkofod](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/pkofod/32/2179_2.png) [@pkofod](https://discourse.julialang.org/u/pkofod)
#### Post date: [August 12, 2018, 8:17am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/19 "2018-08-12T08:17:00Z")

</div>

Could be the plotting backend? Are all packages up to date? For what it’s worth, it works fine here on a clean v1.0 installation.

---

<div class="post-metadata">

### Author: ![DoktorMike](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/doktormike/32/2736_2.png) [@DoktorMike](https://discourse.julialang.org/u/DoktorMike)
#### Post date: [August 12, 2018, 8:18am UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/20 "2018-08-12T08:18:36Z")

</div>

It works fine for me if I use UnicodePlots. All packages are up to date. It seems like I have issues with GR backend. But I did a complete fresh install too. So perhaps it’s a GTK setting or whatever GR is using that’s messing it up? Are you on Ubuntu too?

[Next page](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232.md?page=2)
