-
-
Notifications
You must be signed in to change notification settings - Fork 357
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Plots with GR on Mac OS stopped working at all #3800
Comments
It seems to be working fine when using Julia and Plots.jl in the Mac OS terminal, until you want to save a plot with png(). However, when I try using Plots.jl in Atom, I get the error right away and cannot plot anything. |
Alright, I solved the issue by re-installing Julia (and upgrading to 1.6.2) and all my packages. If you don't care why the problem happened, and just want a solution, you can follow this step-by-step solution:
I also took the opportunity to switch from Atom to VSCode. If you have been using Atom's ftp-remote-edit package, you can find instructions on how to do the equivalent in VSCode here https://stackoverflow.com/questions/52085501/how-to-connect-vs-code-via-ftp-with-remote-workspace and here https://marketplace.visualstudio.com/items?itemName=liximomo.sftp . Instructions on how to get started with Julia in VSCode
TL;DR One solution is to completely remove Julia and all Julia-related data and re-install everything. |
Thanks for testing. I might try deleting the Edit: I today took the short time to delete my |
This seems to be the same as #3416, and I could solve it by following the idea there, i.e. installing [email protected], though I am not sure which of the packages has to be updated in what way to resolve this. |
Julia 1.5 on MacOS is giving errors related to GR: ``` GKS: dlopen(/Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/../lib/cairoplugin.so, 1): Library not loaded: @rpath/libtiff.5.dylib Referenced from: /Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/cairoplugin.so Reason: Incompatible library version: cairoplugin.so requires version 13.0.0 or later, but libtiff.5.dylib provides version 11.0.0 soliton: Error During Test at /Users/runner/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25 Got exception outside of a @test ``` These are only errors in generating plots in the example notebooks, so don't really matter to the functionality of UltraDark. However, I don't actually need to support julia 1.5, so don't run these tests. Related: JuliaPlots/Plots.jl#3800
Julia 1.5 on MacOS is giving errors related to GR: ``` GKS: dlopen(/Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/../lib/cairoplugin.so, 1): Library not loaded: @rpath/libtiff.5.dylib Referenced from: /Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/cairoplugin.so Reason: Incompatible library version: cairoplugin.so requires version 13.0.0 or later, but libtiff.5.dylib provides version 11.0.0 soliton: Error During Test at /Users/runner/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25 Got exception outside of a @test ``` These are only errors in generating plots in the example notebooks, so don't really matter to the functionality of UltraDark. However, I don't actually need to support julia 1.5, so don't run these tests. Related: JuliaPlots/Plots.jl#3800
Julia 1.5 on MacOS is giving errors related to GR: ``` GKS: dlopen(/Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/../lib/cairoplugin.so, 1): Library not loaded: @rpath/libtiff.5.dylib Referenced from: /Users/runner/.julia/artifacts/8ad1378af931092f83916905440a69d0af818452/lib/cairoplugin.so Reason: Incompatible library version: cairoplugin.so requires version 13.0.0 or later, but libtiff.5.dylib provides version 11.0.0 soliton: Error During Test at /Users/runner/.julia/packages/SafeTestsets/A83XK/src/SafeTestsets.jl:25 Got exception outside of a @test ``` These are only errors in generating plots in the example notebooks, so don't really matter to the functionality of UltraDark. However, I don't actually need to support julia 1.5, so don't run these tests. Related: JuliaPlots/Plots.jl#3800
I am facing a similar problem now: I can plot but i cannot save plots with savefig. If I run the following I get
I have tried everything, even completeley reinstalled julia, added only Plots and the problem persists. I am running on Mac 11.7.10 and using Julia 1.10.5 (the latest stable release) |
Can you try using plain |
I get the same error if I run the following code
|
Please open an issue and report the bug in https://github.com/jheinen/GR.jl, as there is nothing we can do about it here in Plots. |
Makes sense, thanks |
As a continuation of https://discourse.julialang.org/t/plots-broken-on-mac/65551/9 – I am facing a similar issue that I do not seem to be able to resolve (and I am not sure whether its Plots or GR either).
I get the error message
when running code with Plots/GR inside
things I further tried
] rm Plots, GR
) and adding them back againThe only thing I can additionally provide, is that on most recent GR, it also prints
Backends
GR
This bug occurs on ( insert
x
below )Versions
Plots.jl version: 1.15.2
Backend version (
]st -m <backend(s)>
): GR 57.5 (or 0.48 or some in between)Output of
versioninfo()
:The text was updated successfully, but these errors were encountered: