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

IDLE won't work (Mac) #64253

Closed
SophieChancheong mannequin opened this issue Dec 23, 2013 · 7 comments
Closed

IDLE won't work (Mac) #64253

SophieChancheong mannequin opened this issue Dec 23, 2013 · 7 comments
Labels
topic-IDLE type-bug An unexpected behavior, bug, or error

Comments

@SophieChancheong
Copy link
Mannequin

SophieChancheong mannequin commented Dec 23, 2013

BPO 20054
Nosy @ned-deily
Superseder
  • bpo-18270: IDLE on OS X fails with Attribute Error if no initial shell and Tk out-of-date
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2013-12-24.06:26:50.285>
    created_at = <Date 2013-12-23.14:23:54.348>
    labels = ['expert-IDLE', 'type-bug']
    title = "IDLE won't work (Mac)"
    updated_at = <Date 2013-12-27.00:53:17.102>
    user = 'https://bugs.python.org/SophieChancheong'

    bugs.python.org fields:

    activity = <Date 2013-12-27.00:53:17.102>
    actor = 'Sophie.Chancheong'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-12-24.06:26:50.285>
    closer = 'ned.deily'
    components = ['IDLE']
    creation = <Date 2013-12-23.14:23:54.348>
    creator = 'Sophie.Chancheong'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 20054
    keywords = []
    message_count = 7.0
    messages = ['206859', '206880', '206882', '206887', '206909', '206918', '206976']
    nosy_count = 2.0
    nosy_names = ['ned.deily', 'Sophie.Chancheong']
    pr_nums = []
    priority = 'normal'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '18270'
    type = 'behavior'
    url = 'https://bugs.python.org/issue20054'
    versions = ['Python 3.3']

    @SophieChancheong
    Copy link
    Mannequin Author

    SophieChancheong mannequin commented Dec 23, 2013

    I'm having trouble with running Idle on my macbook pro os x 10.9.1 . two days ago it was running with absolutely no problem and now it won't start up. I've tried uninstalling and reinstalling, and I have updated the Tkinter and Tcl/Tk etc. It appears in the dock for a second then disappears. Any help would be appreciated.

    Thanks,
    Sophie

    @SophieChancheong SophieChancheong mannequin added topic-IDLE type-bug An unexpected behavior, bug, or error labels Dec 23, 2013
    @ned-deily
    Copy link
    Member

    What happens if you try to start IDLE from a terminal session by typing:

    /usr/local/bin/idle3.3

    @SophieChancheong
    Copy link
    Mannequin Author

    SophieChancheong mannequin commented Dec 24, 2013

    when i try to start it from terminal i get:

    sophiesmac:~ Sophie$ /usr/local/bin/idle3.3
    Traceback (most recent call last):
      File "/usr/local/bin/idle3.3", line 5, in <module>
        main()
      File "/Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/idlelib/PyShell.py", line 1572, in main
        shell.interp.runcommand(''.join(("print('", tkversionwarning, "')")))
    AttributeError: 'NoneType' object has no attribute 'interp'

    @ned-deily
    Copy link
    Member

    This problem was reported and fixed in bpo-18270 which will be in the next set of Python maintenance releases. As explained there, what is causing this is that the Python 3.3 tkinter you are using is trying to use the known buggy system Tk 8.5 shipped with OS X. If you are using a python.org 3.3, you can avoid the problem by installing a more up-to-date version of Tcl/Tk 8.5, such as the current ActiveTcl 8.5.15.0. See http://www.python.org/download/mac/tcltk/

    @SophieChancheong
    Copy link
    Mannequin Author

    SophieChancheong mannequin commented Dec 24, 2013

    i have downloaded and installed activeTcl 8.5.15.0 and that's still what it says. do you mean a new version of python?

    @ned-deily
    Copy link
    Member

    I was assuming you were using a Python 3.3 from a binary installer downloaded from python.org. Those Pythons are built to dynamically link with a compatible Tcl and Tk 8.5 frameworks in /Library/Frameworks, such as the ActiveTcl 8.5 ones, and fall back to the Apple-supplied version in /System/Library/Frameworks. If you are using a Python 3.3 from another source or built yourself from source, it may not behave that way.

    If you are using the current Python.org 3.3.3 64-bit/32-bit installer, the signature should be:

    $ /usr/local/bin/python3.3 -c "import sys; print(sys.version)"
    3.3.3 (v3.3.3:c3896275c0f6, Nov 16 2013, 23:39:35)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]
    $ /usr/local/bin/python3.3 -c "import _tkinter;print(_tkinter.__file__)"
    /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/_tkinter.so
    $ otool -L $(/usr/local/bin/python3.3 -c "import _tkinter;print(_tkinter.__file__)")
    /Library/Frameworks/Python.framework/Versions/3.3/lib/python3.3/lib-dynload/_tkinter.so:
    	/Library/Frameworks/Tcl.framework/Versions/8.5/Tcl (compatibility version 8.5.0, current version 8.5.15)
    	/Library/Frameworks/Tk.framework/Versions/8.5/Tk (compatibility version 8.5.0, current version 8.5.15)
    	/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version 125.2.0)

    @SophieChancheong
    Copy link
    Mannequin Author

    SophieChancheong mannequin commented Dec 27, 2013

    Sorry for not replying,

    I followed the solution on the other thread and got it to work! Thank you so much for your help!!

    @ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    topic-IDLE type-bug An unexpected behavior, bug, or error
    Projects
    None yet
    Development

    No branches or pull requests

    1 participant