Thanks to visit codestin.com
Credit goes to github.com

Skip to content

FIX: search for tkinter first in builtins #7433

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

Merged
merged 1 commit into from
Nov 9, 2016

Conversation

matthew-brett
Copy link
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
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