-
-
Notifications
You must be signed in to change notification settings - Fork 358
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] Can't load PyPlot and Plots in the same environment #2685
Comments
I can't reproduce this. Might updating of the artifact help? |
Do you test it on a Mac? We find it works well in Windows.
… On May 11, 2020, at 5:51 AM, Simon Christ ***@***.***> wrote:
I can't reproduce this. Might updating of the artifact help?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUDXYXPNAG3KCSRYIPTRQ7DCTANCNFSM4M3QNREA>.
|
Yes, I tried on a Mac |
I try it on another Macbook Pro. The same bug are reproduced.
… On May 11, 2020, at 3:17 PM, Simon Christ ***@***.***> wrote:
Yes, I tried on a Mac
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUBRD3NSYCICFAI3YADRRBFMFANCNFSM4M3QNREA>.
|
Seems I had an old |
After you get this error, can you please do using Libdl
filter!(lib -> occursin("freetype", lib), dllist()) and copy here the output? |
OK.
julia> using Libdl
julia> filter!(lib -> occursin("freetype",lib), dllist())
2-element Array{String,1}:
"/Users/finalboss/.julia/conda/3/lib/libfreetype.6.dylib"
"/Users/finalboss/.julia/artifacts/6d4a696c716e1dc3c552f345367831ad6db06ee5/lib/libfreetype.6.dylib"
julia>
… On May 11, 2020, at 5:19 PM, Mosè Giordano ***@***.***> wrote:
After you get this error, can you please do
using Libdl
filter!(lib -> occursin("freetype", lib), dllist())
and copy here the output?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUC3PZTD53FQRTMXZVLRRBTXTANCNFSM4M3QNREA>.
|
In a shell (also in the shell mode in Julia REPL) please run the command
I'm pretty sure this has version 23, because the other one has version 24:
|
Yes, you are right
~ otool -L /Users/finalboss/.julia/conda/3/lib/libfreetype.6.dylib
/Users/finalboss/.julia/conda/3/lib/libfreetype.6.dylib:
@rpath/libfreetype.6.dylib (compatibility version 23.0.0, current version 23.1.0)
@rpath/libpng16.16.dylib (compatibility version 51.0.0, current version 51.0.0)
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1197.1.1)
… On May 11, 2020, at 5:37 PM, Mosè Giordano ***@***.***> wrote:
In a shell (also in the shell mode in Julia REPL) please run the command
otool -L /Users/finalboss/.julia/conda/3/lib/libfreetype.6.dylib
I'm pretty sure this has version 23, because the other one has version 24:
# otool -L libfreetype.6.dylib
libfreetype.6.dylib:
@rpath/libfreetype.6.dylib (compatibility version 24.0.0, current version 24.1.0)
@rpath/libz.1.dylib (compatibility version 1.0.0, current version 1.2.11)
@rpath/libbz2.1.0.6.dylib (compatibility version 1.0.0, current version 1.0.6)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 1213.0.0)
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUH6WIZP5UB5LBDDVMTRRBVYDANCNFSM4M3QNREA>.
|
No idea where that library is coming from, but that's the culprit 🙂 |
This is what I get with v0.14.0+1:
and this with v0.14.0+2:
Nothing changed in |
As a workaround can I suggest to load |
Yes, changing the order of them works well. Thanks!
… On May 13, 2020, at 7:17 PM, Mosè Giordano ***@***.***> wrote:
As a workaround can I suggest to load Plots.jl before PyPlot.jl?
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUEKD3CNTT2ACYZZZ73RRMTB5ANCNFSM4M3QNREA>.
|
I am experiencing the same problem as @zhangyinhan.
Changing Plots.jl and PyPlot.jl order does not help. Is there any other workaround? |
I have not found other solutions yet.
… On Jun 1, 2020, at 5:33 PM, Vasyl Hafych ***@***.***> wrote:
I am experiencing the same problem as @zhangyinhan <https://github.com/zhangyinhan>.
***@***.***) pkg> status Plots
Status `~/.julia/environments/v1.4/Project.toml`
[91a5bcdd] Plots v1.3.6
***@***.***) pkg> status PyPlot
Status `~/.julia/environments/v1.4/Project.toml`
[d330b81b] PyPlot v2.9.0
julia> versioninfo()
Julia Version 1.4.2
Commit 44fa15b150* (2020-05-23 18:35 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i5-8279U CPU @ 2.40GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
Environment:
JULIA_NUM_THREADS = 8
Changing Plots.jl and PyPlot.jl order does not help. Is there any other workaround?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUCBY3EE6FTIC75L4KTRUQNBPANCNFSM4M3QNREA>.
|
Not that I'm aware of. Out of curiosity, why do you need to load |
One of my friends suggested me to use PyPlot, but another friend recommended Plots. I first installed the PyPlot. However, due to Backend issues in Mac OS, I also installed PyPlot . Hence, I found this issue.
… On Jun 1, 2020, at 5:36 PM, Mosè Giordano ***@***.***> wrote:
Is there any other workaround?
Not that I'm aware of.
Out of curiosity, why do you need to load PyPlot and Plots together? Do you plan to use the two plotting libraries at the same time?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUG2LYRQMAVBH7DOFSDRUQNN5ANCNFSM4M3QNREA>.
|
I am using PyPlot.jl for publication-quality plots and Plots.jl for making easy & simple animations :) |
Yes, we use PyPlot for the same reason (for publication) :)
… On Jun 1, 2020, at 5:52 PM, Vasyl Hafych ***@***.***> wrote:
Out of curiosity, why do you need to load PyPlot and Plots together? Do you plan to use the two plotting libraries at the same time?
I am using PyPlot.jl for publication-quality plots and Plots.jl for making easy & simple animations :)
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub <#2685 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AB7EFUCHWAL6ZIKZCR4B5VDRUQPIDANCNFSM4M3QNREA>.
|
I'd recommend just doing this kind of thing:
I believe you should be able to switch back and forth between the two without issue |
Please search existing issues to avoid duplicates.
Details
Backends
This bug occurs on ( insert
x
below )Versions
Plots.jl version: Plots v1.2.2
Backend version: GR v0.48.0
Output of
versioninfo()
:Julia Version 1.4.1
Commit 381693d3df* (2020-04-14 17:20 UTC)
Platform Info:
OS: macOS (x86_64-apple-darwin18.7.0)
CPU: Intel(R) Core(TM) i5-6267U CPU @ 2.90GHz
WORD_SIZE: 64
LIBM: libopenlibm
LLVM: libLLVM-8.0.1 (ORCJIT, skylake)
The text was updated successfully, but these errors were encountered: