# Re-installing Julia w/ v. 1.2.0 -- Plots doesn't compile

**URL:** https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236
**Category:** General Usage
**Created:** [September 27, 2019, 2:21pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236 "2019-09-27T14:21:41Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 27, 2019, 2:21pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236/1 "2019-09-27T14:21:41Z")

</div>

After some problem with Julia vs. Python in Jypyter notebooks, I’m removing every trace of Python and Julia on my computers, and re-installing first Julia v. 1.2.0 with packages, and then Anaconda. [I mainly use Julia, but occationally need to run some Python code.]

Reinstalling Julia with packages worked fine on my desktop, and previous problem with IJulia was solved. Next, I’m trying to cleanse and reinstall Julia on my laptop. On my laptop, `Plots` doesn’t compile, and complains about a missing `ffmpeg`.

Anyone knows what this can be?

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
ERROR: LoadError: UndefVarError: ffmpeg not defined
Stacktrace:
 [1] top-level scope at C:\Users\User_Name\.julia\packages\FFMPEG\bkWgb\src\FFMPEG.jl:55
 [2] include at .\boot.jl:328 [inlined]
 [3] include_relative(::Module, ::String) at .\loading.jl:1094
 [4] include(::Module, ::String) at .\Base.jl:31
 [5] top-level scope at none:2
 [6] eval at .\boot.jl:330 [inlined]
 [7] eval(::Expr) at .\client.jl:432
 [8] top-level scope at .\none:3
in expression starting at C:\Users\User_Name\.julia\packages\FFMPEG\bkWgb\src\FFMPEG.jl:55
ERROR: LoadError: Failed to precompile FFMPEG [c87230d0-a227-11e9-1b43-d7ebe4e7570a] to C:\Users\User_Name\.julia\compiled\v1.2\FFMPEG\TGvga.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
 [3] _require(::Base.PkgId) at .\loading.jl:1013
 [4] require(::Base.PkgId) at .\loading.jl:911
 [5] require(::Module, ::Symbol) at .\loading.jl:906
 [6] include at .\boot.jl:328 [inlined]
 [7] include_relative(::Module, ::String) at .\loading.jl:1094
 [8] include(::Module, ::String) at .\Base.jl:31
 [9] top-level scope at none:2
 [10] eval at .\boot.jl:330 [inlined]
 [11] eval(::Expr) at .\client.jl:432
 [12] top-level scope at .\none:3
in expression starting at C:\Users\User_Name\.julia\packages\Plots\h3o4c\src\Plots.jl:11
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to C:\Users\User_Name\.julia\compiled\v1.2\Plots\ld3vC.ji.
Stacktrace:
 [1] error(::String) at .\error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at .\loading.jl:1253
 [3] _require(::Base.PkgId) at .\loading.jl:1013
 [4] require(::Base.PkgId) at .\loading.jl:911
 [5] require(::Module, ::Symbol) at .\loading.jl:906

```

---

<div class="post-metadata">

### Author: ![sdanisch](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sdanisch/32/1406_2.png) [@sdanisch](https://discourse.julialang.org/u/sdanisch)
#### Post date: [September 27, 2019, 2:31pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236/2 "2019-09-27T14:31:59Z")

</div>

Can you run `]build FFMPEG` ?

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 27, 2019, 2:51pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236/3 "2019-09-27T14:51:30Z")

</div>

I found `FFMPEG.jl`, and tried to `Pkg.add("FFMPEG")`. This worked, and now I could do `using Plots` without error message. When I tried to specify `pycall()`, I was told that I needed to `build PyCall`. I’m in the process of doing that now.

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 27, 2019, 2:58pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236/4 "2019-09-27T14:58:12Z")

</div>

OK… seems to have worked – `build PyCall` caused the installation of a load of Python code.

Hm… I used exactly the same \*.jl script of adding packages on my desktop and on my laptop. My laptop must have had a hiccup … seems like:

1. Adding `ffmpeg` and
2. Building `PyCall`

solved the problem. The only “real” difference regarding graphics between my desktop and my laptop is that my laptop has an NVIDIA 1050 graphics card, but I would be surprised if that should have caused the problem…

---

<div class="post-metadata">

### Author: ![BLI](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/bli/32/37206_2.png) [@BLI](https://discourse.julialang.org/u/BLI)
#### Post date: [September 27, 2019, 3:03pm UTC](https://discourse.julialang.org/t/re-installing-julia-w-v-1-2-0-plots-doesnt-compile/29236/5 "2019-09-27T15:03:35Z")

</div>

While I’m at IJulia… if anyone has an idea why sometimes, plots are embedded in a scrollable window,

 ![image](https://global.discourse-cdn.com/julialang/original/3X/0/1/016e2caf8d569bb1799f2042609f921a84ba07dd.png)

while other times, they appear without such scroll bars:

 ![image](https://global.discourse-cdn.com/julialang/original/3X/f/c/fcd006d2b0d13b0a65276564115ca0cdbd34bebb.png)

I’m curious to know… it seems to be random. Of course, if the plot is “tall” or “wide”, I could see why this happes, but it seems to happen randomly for plots of the same size…
