X Tutup
Skip to content

FIX: search for tkinter first in builtins#7433

Merged
NelleV merged 1 commit intomatplotlib:masterfrom
matthew-brett:master
Nov 9, 2016
Merged

FIX: search for tkinter first in builtins#7433
NelleV merged 1 commit intomatplotlib:masterfrom
matthew-brett:master

Conversation

@matthew-brett
Copy link
Copy Markdown
Contributor

Python compiled from Python.org source builds the tkinter module as a
built-in module, not an external module, as is the case for the packaged
builds of Debian etc:

>>> Tkinter.tkinter
<module '_tkinter' (built-in)>

This breaks the MPL algorithm for searching for tkinter symbols, which
loaded the external module .so file to get the symbols.

Try searching in the main program namespace for the tkinter symbols,
before looking for the extermal module .so file.

Thanks to github user ettaka for reporting : see
#7428

Python compiled from Python.org source builds the tkinter module as a
built-in module, not an external module, as is the case for the packaged
builds of Debian etc:

    >>> Tkinter.tkinter
    <module '_tkinter' (built-in)>

This breaks the MPL algorithm for searching for tkinter symbols, which
loaded the external module .so file to get the symbols.

Try searching in the main program namespace for the tkinter symbols,
before looking for the extermal module .so file.

Thanks to github user ettaka for reporting : see
matplotlib#7428
@QuLogic QuLogic added the GUI: tk label Nov 9, 2016
@tacaswell tacaswell changed the title FIX: search for tkinter first in builtins [MRG+1] FIX: search for tkinter first in builtins Nov 9, 2016
@tacaswell tacaswell modified the milestones: 2.0.1 (next bug fix release), 2.1 (next point release), 2.0 (style change major release) Nov 9, 2016
@NelleV NelleV merged commit 10f1522 into matplotlib:master Nov 9, 2016
NelleV added a commit that referenced this pull request Nov 9, 2016
FIX: search for tkinter first in builtins
@NelleV
Copy link
Copy Markdown
Member

NelleV commented Nov 9, 2016

Backported as 033c3f2

Thanks @matthew-brett !

@QuLogic QuLogic changed the title [MRG+1] FIX: search for tkinter first in builtins FIX: search for tkinter first in builtins Nov 9, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

X Tutup