Skip to content

TkAgg backend on macOS aborts #410

Closed
@tkf

Description

@tkf

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions