# Plots Broken on MacOS Ventura

**URL:** <https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386>\
**Category:** General Usage\
**Tags:** plots\
**Created:** [October 27, 2022, 6:11pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386 "2022-10-27T18:11:23Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 27, 2022, 6:11pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/1 "2022-10-27T18:11:24Z")

</div>

I just upgraded to MacOS Ventura (13.0), and now, when I try to do a basic plot, e.g., with

```julia
using Plots
xvals = LinRange(0, 1, 100)
f(x) = x^2
plot(xvals, f.(xvals))

```

I get the following error:

```julia
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: SystemError: opening file "/var/folders/1d/xcpc4m2d0c7_b8jv3tx1xzfr0000gn/T/jl_DGjsRSTitM.svg": No such file or directory
Stacktrace:
  [1] systemerror(p::String, errno::Int32; extrainfo::Nothing)
    @ Base ./error.jl:176
  [2] #systemerror#80
    @ ./error.jl:175 [inlined]
  [3] systemerror
    @ ./error.jl:175 [inlined]
  [4] open(fname::String; lock::Bool, read::Nothing, write::Nothing, create::Nothing, truncate::Nothing, append::Nothing)
    @ Base ./iostream.jl:293
  [5] open
    @ ./iostream.jl:275 [inlined]
  [6] open(f::Base.var"#387#388"{String}, args::String; kwargs::Base.Pairs{Symbol, Union{}, Tuple{}, NamedTuple{(), Tuple{}}})
    @ Base ./io.jl:382
  [7] open
    @ ./io.jl:381 [inlined]
  [8] read
    @ ./io.jl:462 [inlined]
  [9] _show(io::IOBuffer, #unused#::MIME{Symbol("image/svg+xml")}, plt::Plots.Plot{Plots.GRBackend})
    @ Plots ~/.julia/packages/Plots/fw4rv/src/backends/gr.jl:2195
 [10] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [11] invokelatest
    @ ./essentials.jl:726 [inlined]
 [12] show
    @ ~/.julia/packages/Plots/fw4rv/src/output.jl:227 [inlined]
 [13] __binrepr(m::MIME{Symbol("image/svg+xml")}, x::Plots.Plot{Plots.GRBackend}, context::Nothing)
    @ Base.Multimedia ./multimedia.jl:159
 [14] display(d::VSCodeServer.InlineDisplay, m::MIME{Symbol("image/svg+xml")}, x::Plots.Plot{Plots.GRBackend})
    @ VSCodeServer ./strings/string.jl:0
 [15] display(d::VSCodeServer.InlineDisplay, mime::String, x::Any)
    @ Base.Multimedia ./multimedia.jl:216
 [16] display(d::VSCodeServer.InlineDisplay, x::Plots.Plot{Plots.GRBackend})
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/display.jl:165
 [17] display(x::Any)
    @ Base.Multimedia ./multimedia.jl:328
 [18] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [19] invokelatest
    @ ./essentials.jl:726 [inlined]
 [20] print_response(errio::IO, response::Any, show_value::Bool, have_color::Bool, specialdisplay::Union{Nothing, AbstractDisplay})
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:296
 [21] (::REPL.var"#45#46"{REPL.LineEditREPL, Pair{Any, Bool}, Bool, Bool})(io::Any)
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:278
 [22] with_repl_linfo(f::Any, repl::REPL.LineEditREPL)
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:521
 [23] print_response(repl::REPL.AbstractREPL, response::Any, show_value::Bool, have_color::Bool)
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:276
 [24] (::REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt})(s::REPL.LineEdit.MIState, buf::Any, ok::Bool)
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:857
 [25] (::VSCodeServer.var"#98#101"{REPL.var"#do_respond#66"{Bool, Bool, REPL.var"#77#87"{REPL.LineEditREPL, REPL.REPLHistoryProvider}, REPL.LineEditREPL, REPL.LineEdit.Prompt}})(mi::REPL.LineEdit.MIState, buf::IOBuffer, ok::Bool)
    @ VSCodeServer ~/.vscode/extensions/julialang.language-julia-1.38.2/scripts/packages/VSCodeServer/src/repl.jl:122
 [26] #invokelatest#2
    @ ./essentials.jl:729 [inlined]
 [27] invokelatest
    @ ./essentials.jl:726 [inlined]
 [28] run_interface(terminal::REPL.Terminals.TextTerminal, m::REPL.LineEdit.ModalInterface, s::REPL.LineEdit.MIState)
    @ REPL.LineEdit /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/LineEdit.jl:2510
 [29] run_frontend(repl::REPL.LineEditREPL, backend::REPL.REPLBackendRef)
    @ REPL /usr/local/Cellar/julia/1.8.2/share/julia/stdlib/v1.8/REPL/src/REPL.jl:1248
 [30] (::REPL.var"#49#54"{REPL.LineEditREPL, REPL.REPLBackendRef})()
    @ REPL ./task.jl:484

```

I have tried removing and adding back `Plots`, and adding `Plots` in a new environment by itself, but to no avail. Is anybody experiencing the same issue, or know how to fix this? Thanks!

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [October 27, 2022, 6:58pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/2 "2022-10-27T18:58:20Z")

</div>

Is there a Full Disk Access entry or related issue?

![image](https://global.discourse-cdn.com/julialang/original/3X/1/4/14a0c3ad74031c559ef0d698a363540a5a3719c6.png)

(I’d check, but my computer is too old and I can’t upgrade any more…😀 That image is from pre-Ventura system,)

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 27, 2022, 7:06pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/3 "2022-10-27T19:06:22Z")

</div>

There is no app for Julia in the list… I tried allowing Terminal and VSCode access and still the error persists. I had also tried uninstalling and reinstalling Julia entirely and Plots won’t compile because of this missing file error… The only thing I can think of is that it has to be because of the upgrade to Ventura, and maybe the way the files are organized is different?

---

<div class="post-metadata">

**Author:** ![cormullion](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cormullion/32/49131_2.png) [@cormullion](https://discourse.julialang.org/u/cormullion)\
**Post date:** [October 27, 2022, 7:18pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/4 "2022-10-27T19:18:07Z")

</div>

I remember this was an issue before:

> [@macOS Catalina: Julia cannot access general files](https://discourse.julialang.org/t/macos-catalina-julia-cannot-access-general-files/36601):
>
> I’ve spent some considerable amount of time looking for a solution to this, which I suppose is not very common at all. But I have the most basic Catalina 10.15.4 setup in a brand new machine, and Julia simply doesn’t have permission to read or modify any files. I’ve even granted ‘Full Disk Access’ to both JuliaPro 1.3 and Juila 1.4, and all I get are messages such as ‘IOError: mkdir: permission denied (EACCES)’ (by just starting a Julia 1.4 session) and ‘ERROR: IOError: open: operation not perm…

But perhaps this is some new Apple restriction… 😱😧

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 27, 2022, 7:37pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/5 "2022-10-27T19:37:30Z")

</div>

I have tried everything I can think of at this point… it appears that `GLMakie` and `CairoMakie` are compiling just fine, so I’ll take the opportunity to learn another plotting package in hopes that `Plots` can somehow be fixed to be compatible with MacOS Ventura…

I do worry that this might degrade other parts of my workflow, e.g., where packages like `DifferentialEquations` have easy-to-use plotting recipes through `Plots` that may not be accessible until a fix is found.

---

<div class="post-metadata">

**Author:** ![rowanxshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rowanxshi/32/14699_2.png) [@rowanxshi](https://discourse.julialang.org/u/rowanxshi)\
**Post date:** [October 28, 2022, 5:59pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/6 "2022-10-28T17:59:02Z")

</div>

I also have the problem where `Plots` won’t compile after upgrading to Ventura. I have a different error though:

```julia
GKS: dlopen(/workspace/destdir/lib/cairoplugin.so, 0x0001): tried: '/workspace/destdir/lib/cairoplugin.so' (no such file), '/System/Volumes/Preboot/Cryptexes/OS/workspace/destdir/lib/cairoplugin.so' (no such file), '/workspace/destdir/lib/cairoplugin.so' (no such file)
ERROR: LoadError: SystemError: opening file "/var/folders/f9/8kgfncl13lz1l9jxrjjqdcwh0000gn/T/jl_PcVch6vaL0.png": No such file or directory

```

---

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [October 28, 2022, 7:26pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/7 "2022-10-28T19:26:09Z")

</div>

I cannot reproduce the problem on Ventura (MacBook Air M2). A plot is produced without any problem.

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 28, 2022, 9:56pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/8 "2022-10-28T21:56:38Z")

</div>

Are you on an Intel or Apple Silicon Mac? I’m curious is maybe this is a Ventura + Intel Mac issue?

---

<div class="post-metadata">

**Author:** ![rowanxshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rowanxshi/32/14699_2.png) [@rowanxshi](https://discourse.julialang.org/u/rowanxshi)\
**Post date:** [October 29, 2022, 3:05pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/9 "2022-10-29T15:05:40Z")

</div>

M1 Mac, Julia 1.8.2 from homebrew.

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 29, 2022, 3:12pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/10 "2022-10-29T15:12:10Z")

</div>

Interesting, maybe it’s a homebrew issue? I am also downloading 1.8.2 from homebrew. @zdenek_hurak, do you use homebrew or something else?

---

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [October 29, 2022, 3:22pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/11 "2022-10-29T15:22:56Z")

</div>

I did not use homebrew. I directly installed Julia downloaded from Julia web page.

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [October 29, 2022, 3:49pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/12 "2022-10-29T15:49:26Z")

</div>

Ah, that’s good to know! Maybe that’s the issue. I will try that later tonight and see if that fixes things.

---

<div class="post-metadata">

**Author:** ![zdenek\_hurak](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/zdenek_hurak/32/53118_2.png) [@zdenek\_hurak](https://discourse.julialang.org/u/zdenek_hurak)\
**Post date:** [October 29, 2022, 3:53pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/13 "2022-10-29T15:53:14Z")

</div>

Leave a message here then.

---

<div class="post-metadata">

**Author:** ![rowanxshi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rowanxshi/32/14699_2.png) [@rowanxshi](https://discourse.julialang.org/u/rowanxshi)\
**Post date:** [October 30, 2022, 10:13pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/14 "2022-10-30T22:13:26Z")

</div>

I just downloaded the .dmg directly from [Download Julia](https://julialang.org/downloads/) and Plots precompiled + plotted with no problem. I think I’ll chalk it up to homebrew for now.

---

<div class="post-metadata">

**Author:** ![liamfdoherty](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/liamfdoherty/32/24516_2.png) [@liamfdoherty](https://discourse.julialang.org/u/liamfdoherty)\
**Post date:** [November 1, 2022, 5:24pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/15 "2022-11-01T17:24:07Z")

</div>

Yes, I can confirm that also on my machine deleting Julia and doing a fresh install directly from the Julia website fixed the problem. Thanks for the help, @zdenek_hurak and @rowanxshi !

---

<div class="post-metadata">

**Author:** ![t-bltg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/t-bltg/32/25526_2.png) [@t-bltg](https://discourse.julialang.org/u/t-bltg)\
**Post date:** [November 1, 2022, 6:14pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/16 "2022-11-01T18:14:36Z")

</div>

Plots issue, [[BUG] Plots are not available on OSX (Ventura). · Issue #4478 · JuliaPlots/Plots.jl · GitHub](https://github.com/JuliaPlots/Plots.jl/issues/4478).  
Related: [[libcleri] dlopen could not load library on macOS Ventura · Issue #5771 · JuliaPackaging/Yggdrasil · GitHub](https://github.com/JuliaPackaging/Yggdrasil/issues/5771).

There is a long discussion on `slack` about this, `dyld` seems to have changed behavior (reproducer by @gbaraldi here: [GitHub - gbaraldi/LinkerFailures](https://github.com/gbaraldi/LinkerFailures)).

---

<div class="post-metadata">

**Author:** ![Schneeschaufel](https://avatars.discourse-cdn.com/v4/letter/s/a87d85/32.png) [@Schneeschaufel](https://discourse.julialang.org/u/Schneeschaufel)\
**Post date:** [November 4, 2022, 8:09pm UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/17 "2022-11-04T20:09:19Z")

</div>

I upgraded Julia today from within Julia from 1.7 to 1.8.2:

using UpdateJulia  
update\_julia()

But had to do the final linking manually outside of Julia in the bash terminal (the whole thing is so annoying, of course cannot be linked without sudo):

/dev/disk4 GUID\_partition\_scheme   
/dev/disk4s1 EFI   
/dev/disk4s2 Apple\_HFS /Volumes/Julia-1.8.2  
“disk4” ejected.  
ln: /usr/local/bin/julia: Permission denied  
ERROR: failed process: Process(`ln -sf /Applications/Julia-1.8.2.app/Contents/Resources/julia/bin/julia /usr/local/bin/julia`, ProcessExited(1)) [1]

But in any case I am also on Ventura 13.0 on a M1 Macbook and your plot example would work.

But the broken pipe bug still hasn’t been solved when you want to plot it for a second time:

send: Broken pipe

And then people wonder why Julia doesn’t gain traction in the real world.

It is those little pesky things that annoy people the most.

---

<div class="post-metadata">

**Author:** ![jiangzhuochi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jiangzhuochi/32/44109_2.png) [@jiangzhuochi](https://discourse.julialang.org/u/jiangzhuochi)\
**Post date:** [November 20, 2022, 1:57am UTC](https://discourse.julialang.org/t/plots-broken-on-macos-ventura/89386/18 "2022-11-20T01:57:55Z")

</div>

I have the same problem in julia v1.8.3 that installed by homebrew. I solved the problem by using cask julia instead of formulae julia.
