Skip to content
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

TkAgg backend on macOS aborts #410

Closed
tkf opened this issue Nov 17, 2018 · 4 comments
Closed

TkAgg backend on macOS aborts #410

tkf opened this issue Nov 17, 2018 · 4 comments

Comments

@tkf
Copy link
Member

tkf commented Nov 17, 2018

It seems that there are problems using TkAgg in macOS:
#405
#399
#253 (comment)
https://discourse.julialang.org/t/pyplot-installation-error-related-to-libpython3-7m-dylib-and-libsystem-kernel-dylib/17649

Upstream issues:
matplotlib/matplotlib#7743
https://sourceforge.net/p/tktoolkit/bugs/3082/

How about removing :tk from the list of GUIs to try in macOS? Or maybe move it to the end?

PyPlot.jl/src/init.jl

Lines 50 to 60 in daadae4

function find_backend(matplotlib::PyObject)
gui2matplotlib = Dict(:wx=>"WXAgg",:gtk=>"GTKAgg",:gtk3=>"GTK3Agg",
:qt_pyqt4=>"Qt4Agg", :qt_pyqt5=>"Qt5Agg",
:qt_pyside=>"Qt4Agg", :qt4=>"Qt4Agg",
:qt5=>"Qt5Agg", :qt=>"Qt4Agg",:tk=>"TkAgg")
conda = PyCall.conda || !isempty(PyCall.anaconda_conda())
if Compat.Sys.islinux()
guis = [:tk, :gtk3, :gtk, :qt5, :qt4, :wx]
else
guis = [:tk, :qt5, :qt4, :wx, :gtk, :gtk3]
end

I also suggest to install pyqt in build.jl using JuliaPy/PyCall.jl#613

@stevengj
Copy link
Member

stevengj commented Mar 6, 2019

Is this still an issue? On my MacOS machine with Conda PyPlot defaults to qt5 already

@tkf
Copy link
Member Author

tkf commented Mar 7, 2019

Reading the conda recipe it still looks like matplotlib does not install pyqt by default? https://github.com/AnacondaRecipes/matplotlib-feedstock/blob/f5ecb6832741888ab853ac92345d9fc4124de5d0/recipe/meta.yaml#L56

Also, the fact that :tk comes before :qt5 means that this problem would pops up once tk is installed via some other dependencies.

But I don't have macOS so I can't check the situation myself. So, if you (or other macOS users) think it's already fixed then I don't have any reasons to stop closing this issue.

@stevengj
Copy link
Member

stevengj commented Apr 5, 2019

Changed to put tk last since this seems to still be an issue.

@stevengj
Copy link
Member

stevengj commented Apr 13, 2022

This seems to be fine these days, at least with the Conda tkinter package which is nowadays the default on MacOS.

See 52ff225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants