# "using Plots" suddenly stopped working

**URL:** <https://discourse.julialang.org/t/using-plots-suddenly-stopped-working/16695>\
**Category:** Modelling & Simulations\
**Created:** [October 23, 2018, 4:38pm UTC](https://discourse.julialang.org/t/using-plots-suddenly-stopped-working/16695 "2018-10-23T16:38:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Post date:** [October 23, 2018, 4:38pm UTC](https://discourse.julialang.org/t/using-plots-suddenly-stopped-working/16695/1 "2018-10-23T16:38:37Z")

</div>

I have been using Plots in Julia 1.0 for a whil now and it all worked ok. However, I needed some plots were I more easily could customize various things (line thickness etc.) to make a pretty figure and I thought I should use Plotly (which always gave me a good web interface for this kind of things in 0.6). Earlier in 1.0 I have only used GR to myself look at my data.

In principle I used `add PlotlyJS` in the pkg tool, realized that it didn’t worked at all, and returned to my old Jupyter notebook. This may not be related, but now I get this error whenever I run

```julia
using Plots

```

```julia
┌ Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
└ @ Base loading.jl:1186
WARNING: StaticArrays.FixedSizeArrays is deprecatedStaticArrays.FixedSizeArrays is deprecated. Use StaticArrays directly.
  likely near /home/Torkel.Loman/.julia/packages/Plots/Ufx0i/src/Plots.jl:8
ERROR: LoadError: LoadError: UndefVarError: FixedSizeArrays not defined
Stacktrace:
 [1] top-level scope at none:0
 [2] include at ./boot.jl:317 [inlined]
 [3] include_relative(::Module, ::String) at ./loading.jl:1038
 [4] include at ./sysimg.jl:29 [inlined]
 [5] include(::String) at /home/Torkel.Loman/.julia/packages/Plots/Ufx0i/src/Plots.jl:1
 [6] top-level scope at none:0
 [7] include at ./boot.jl:317 [inlined]
 [8] include_relative(::Module, ::String) at ./loading.jl:1038
 [9] include(::Module, ::String) at ./sysimg.jl:29
 [10] top-level scope at none:2
 [11] eval at ./boot.jl:319 [inlined]
 [12] eval(::Expr) at ./client.jl:389
 [13] top-level scope at ./none:3
in expression starting at /home/user_name/.julia/packages/Plots/Ufx0i/src/utils.jl:290
in expression starting at /home/user_name/.julia/packages/Plots/Ufx0i/src/Plots.jl:167

```

and this output

```julia
Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /home/user_name/.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] macro expansion at ./logging.jl:311 [inlined]
 [5] _require(::Base.PkgId) at ./loading.jl:941
 [6] require(::Base.PkgId) at ./loading.jl:852
 [7] macro expansion at ./logging.jl:311 [inlined]
 [8] require(::Module, ::Symbol) at ./loading.jl:834
 [9] top-level scope at In[3]:1

```

I have tried to find a solution, but none found. I tried `rm PlotlyJS` in pkg, but didn’t seem to help.

Anyone knows what is going on?

---

<div class="post-metadata">

**Author:** ![piever](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/piever/32/1815_2.png) [@piever](https://discourse.julialang.org/u/piever)\
**Post date:** [October 23, 2018, 4:46pm UTC](https://discourse.julialang.org/t/using-plots-suddenly-stopped-working/16695/2 "2018-10-23T16:46:47Z")

</div>

It is temporarily broken by a change in a dependency (the StaticArrays dependency has no upper bound in the Plots REQUIRE and it did a breaking change in the last release). Should be fixed [here](https://github.com/JuliaPlots/Plots.jl/pull/1803) (you can check out the PR or pin StaticArrays to an earlier version if you need to use Plots right now).

---

<div class="post-metadata">

**Author:** ![Torkel](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/torkel/32/5030_2.png) [@Torkel](https://discourse.julialang.org/u/Torkel)\
**Post date:** [October 23, 2018, 4:47pm UTC](https://discourse.julialang.org/t/using-plots-suddenly-stopped-working/16695/3 "2018-10-23T16:47:42Z")

</div>

Thanks for the quick reply.
