# Suddenly cannot use Plots package

**URL:** <https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385>\
**Category:** New to Julia\
**Tags:** package, plotting, bug\
**Created:** [July 1, 2020, 5:02pm UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385 "2020-07-01T17:02:24Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 1, 2020, 5:02pm UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/1 "2020-07-01T17:02:24Z")

</div>

I am using julia 1.3.0, and suddenly I cannot use the Plots.jl package.

This the error I get:

```julia
julia> using Plots
[Info: Precompiling Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80]
GC error (probable corruption) :
Allocations: 7199675 (Pool: 7199102; Big: 573); GC: 3
<?#0x121070f60::0x10>
0x1140ac000: Queued root: 0x11efaf9e0 :: 0x116686c40 (bits: 3)
        of type Core.TypeName
...
...
0x10e04dfb8: `- Module (bindings) 0x13053b340 (bits 1) -- [0x7fbb680942a8, 0x7fbb68096600)
0x10e04dfe0: Root object: 0x13499e370 :: 0x10fc32310 (bits: 1)
        of type GlobalRef

signal (6): Abort trap: 6
in expression starting at /Users/roi/.julia/packages/Plots/mXrnb/src/Plots.jl:15
__pthread_kill at /usr/lib/system/libsystem_kernel.dylib (unknown line)
Allocations: 7252414 (Pool: 7251736; Big: 678); GC: 1
ERROR: Failed to precompile Plots [91a5bcdd-55d7-5caf-9e0b-520d859cae80] to /Users/roi/.julia/compiled/v1.3/Plots/ld3vC_lObFt.ji.
Stacktrace:
 [1] error(::String) at ./error.jl:33
 [2] compilecache(::Base.PkgId, ::String) at ./loading.jl:1283
 [3] _require(::Base.PkgId) at ./loading.jl:1024
 [4] require(::Base.PkgId) at ./loading.jl:922
 [5] require(::Module, ::Symbol) at ./loading.jl:91

```

At first I had a different error like in this [post](https://discourse.julialang.org/t/error-read-file-after-package-update/33861).  
I moved the directory `~/.julia/compiled/v1.3` to a different location, and now I see this error.  
Is there any solution?

I was thinking of installing julia 1.4.2, but I still want to be able to have julia 1.3 running.

---

<div class="post-metadata">

**Author:** ![tim.holy](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tim.holy/32/52_2.png) [@tim.holy](https://discourse.julialang.org/u/tim.holy)\
**Post date:** [July 1, 2020, 9:43pm UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/2 "2020-07-01T21:43:07Z")

</div>

Does commenting-out [these two lines](https://github.com/JuliaPlots/Plots.jl/blob/c3fa7c8941666029cc0a16ed55ae1713fa7e2813/src/precompile_includer.jl#L16-L17) help? (You’ll have to `dev Plots` to try it.)

If so, then (1) best to report it as an issue at Plots, and (2) it should be fixed on 1.4.2 (it’s probably fixed by [https://github.com/JuliaLang/julia/pull/35378](https://github.com/JuliaLang/julia/pull/35378), which is in 1.4.2 and higher).

---

<div class="post-metadata">

**Author:** ![djsegal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/djsegal/32/13752_2.png) [@djsegal](https://discourse.julialang.org/u/djsegal)\
**Post date:** [July 1, 2020, 10:09pm UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/3 "2020-07-01T22:09:25Z")

</div>

You could probably also just swap it out for [SimplePlots.jl](https://github.com/djsegal/SimplePlots.jl) if you’re just using it for simple stuff on an old julia version

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 2, 2020, 7:51am UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/4 "2020-07-02T07:51:31Z")

</div>

> [@tim.holy](#):
>
> Does commenting-out [these two lines](https://github.com/JuliaPlots/Plots.jl/blob/c3fa7c8941666029cc0a16ed55ae1713fa7e2813/src/precompile_includer.jl#L16-L17) help? (You’ll have to `dev Plots` to try it.)

How can I find the proper file for julia 1.3.1? (I am running on Mac).

> [@tim.holy](#):
>
> it should be fixed on 1.4.2

I installed julia 1.4.2 and everything is fine there.  
Still, I have a lot of code written in jupyter notebooks for julia 1.3 which I would like to run - so I want to fix this issue…

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [July 2, 2020, 7:52am UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/5 "2020-07-02T07:52:34Z")

</div>

All the things you’ve written in 1.3 are almost guaranteed to work in 1.4.2 though? Just install IJulia on your 1.4.2 version and open your notebooks.

---

<div class="post-metadata">

**Author:** ![roi.holtzman](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@roi.holtzman](https://discourse.julialang.org/u/roi.holtzman)\
**Post date:** [July 2, 2020, 8:17am UTC](https://discourse.julialang.org/t/suddenly-cannot-use-plots-package/42385/6 "2020-07-02T08:17:48Z")

</div>

I see.  
Thanks to your comment I now saw that I can change the kernel in the notebook.
