# 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:** 14
**Page:** 2

<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, 2:12pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/21 "2018-08-12T14:12:21Z")

</div>

Can you plot with GR.jl? Without Plots.jl.

---

<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, 5:43pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/22 "2018-08-12T17:43:04Z")

</div>

I only tried the histogram in raw GR.jl without Plots.jl and it also just came up blank. I can try with some more examples to see if it works.

---

<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, 6:07pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/23 "2018-08-12T18:07:25Z")

</div>

Have you tried PyPlot?

---

<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:09pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/24 "2018-08-12T18:09:18Z")

</div>

PyPlot does not precompile. It fails on my machine. Someone stated it’s because LatexStrings need to run from master which I don’t know how to install to be honest. I’m at Pkg.add level. 🙂

`using PyPlot`

[Info: Precompiling PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee]  
WARNING: could not import Base.mimewritable into PyPlot  
ERROR: LoadError: UndefVarError: start 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(::Module, ::String) at ./sysimg.jl:29  
[6] top-level scope at none:2  
[7] eval at ./boot.jl:319 [inlined]  
[8] eval(::Expr) at ./client.jl:389  
[9] top-level scope at ./none:3  
in expression starting at /home/michael/.julia/packages/LaTeXStrings/qycAf/src/LaTeXStrings.jl:62  
ERROR: LoadError: Failed to precompile LaTeXStrings [b964fa9f-0449-5b57-a5c2-d3ea65f4040f] to /home/michael/.julia/compiled/v1.0/LaTeXStrings/H4HGh.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  
[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/PyPlot/jXCXB/src/PyPlot.jl:295  
ERROR: Failed to precompile PyPlot [d330b81b-6aea-500a-939a-2ce795aea3ee] to /home/michael/.julia/compiled/v1.0/PyPlot/oatAj.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

---

<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, 6:15pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/25 "2018-08-12T18:15:31Z")

</div>

Yeah, okay… Everything’s a bit in post v1.0 announcement chaos, but it’s getting better quickly, so stay tuned 🙂

Returning to the GR engine. What happens if you `savefig("figname.png")`? Does it render properly in the file?

---

<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 12, 2018, 6:16pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/26 "2018-08-12T18:16:53Z")

</div>

Obviously only slightly helpful, but Plots.jl with GR works fine for me in Juno (and outside) with the version I get from `pkg> add`:

```julia
(TestEnv) pkg> st
    Status `~/Documents/TestEnv/Project.toml`
  [91a5bcdd] Plots v0.19.0

```

---

<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:17pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/27 "2018-08-12T18:17:59Z")

</div>

I’ll be damned: Yes it does. If I look at the saved figure the plot is there. 🙃

---

<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, 6:21pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/28 "2018-08-12T18:21:06Z")

</div>

You seem to be hitting this 25 day old issue [https://github.com/jheinen/GR.jl/issues/124](https://github.com/jheinen/GR.jl/issues/124) @jheinen might have some debugging question for you, this is beyond my paygrade 🙂

---

<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:29pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/29 "2018-08-12T18:29:07Z")

</div>

Happy to help any way I can. 🙂

---

<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:59pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/30 "2018-08-12T18:59:02Z")

</div>

I Would like to try it but I couldn’t get Juno to install. The last part/package failed.

---

<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 12, 2018, 7:01pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/31 "2018-08-12T19:01:56Z")

</div>

Oh? You might want to try backing up `~/.atom` somewhere and delete it. Installing `uber-juno` should then take care of everything. If it still doesn’t work then please open an issue at Juno.jl or start a new thread on Discourse.

---

<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:02pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/32 "2018-08-12T19:02:45Z")

</div>

I’ll give that a whirl. 👍

---

<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:20pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/33 "2018-08-12T20:20:51Z")

</div>

I removed the .atom folder and did a fresh install of uber-juno which fails at the last package julia-client. Error message below. I’ll open a new thread. 🙂

Juno: Error installing package julia-client  
Please check your internet connection, or report this to  
[http://discuss.junolab.org](http://discuss.junolab.org)  
and we’ll try to help.  
–––  
Error: Installing “julia-client@0.7.3” failed.

---

<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, 9:20pm UTC](https://discourse.julialang.org/t/precompiling-plots-jl-fails-on-julia-1-0/13232/34 "2018-08-12T21:20:03Z")

</div>

Just FYI I tested my setup in Gnome and there it works. It was my tiling window manager i3wm that for some reason causes this weirdness with GR. Have no idea how to fix it, but it works in Gnome so Yay!

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