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 is behaving badly in Python 2.7.6rc1 #63697

Closed
rhettinger opened this issue Nov 4, 2013 · 3 comments
Closed

IDLE is behaving badly in Python 2.7.6rc1 #63697

rhettinger opened this issue Nov 4, 2013 · 3 comments
Labels
release-blocker topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump

Comments

@rhettinger
Copy link
Contributor

BPO 19498
Nosy @rhettinger, @benjaminp, @ned-deily
Superseder
  • bpo-19426: Opening a file in IDLE causes a crash or hang
  • 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-11-04.20:54:19.695>
    created_at = <Date 2013-11-04.20:47:39.350>
    labels = ['expert-IDLE', 'type-crash', 'release-blocker']
    title = 'IDLE is behaving badly in Python 2.7.6rc1'
    updated_at = <Date 2013-11-04.21:00:02.505>
    user = 'https://github.com/rhettinger'

    bugs.python.org fields:

    activity = <Date 2013-11-04.21:00:02.505>
    actor = 'ned.deily'
    assignee = 'none'
    closed = True
    closed_date = <Date 2013-11-04.20:54:19.695>
    closer = 'ned.deily'
    components = ['IDLE']
    creation = <Date 2013-11-04.20:47:39.350>
    creator = 'rhettinger'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 19498
    keywords = []
    message_count = 3.0
    messages = ['202167', '202168', '202170']
    nosy_count = 3.0
    nosy_names = ['rhettinger', 'benjamin.peterson', 'ned.deily']
    pr_nums = []
    priority = 'release blocker'
    resolution = 'duplicate'
    stage = 'resolved'
    status = 'closed'
    superseder = '19426'
    type = 'crash'
    url = 'https://bugs.python.org/issue19498'
    versions = ['Python 2.7']

    @rhettinger
    Copy link
    Contributor Author

    IDLE is behaving badly in Python 2.7.6rc1 with a fresh install.

    The problem occurs with a sequence of creating a new window, pasting code, and running the code: Cmd-N, Cmd-V, Cmd-S, F5

    The visible effect in IDLE is that a new window named "idle" is created and is unresponsive. Behind the scenes, the following tracebacks occur.

    -----------------------------------------

    Python 2.7.6rc1 (v2.7.6rc1:4913d0e9be30+, Oct 27 2013, 20:52:11)
    [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin

    ------------------------------------------

    ~/tmp $ python2.7 -m idlelib.idle
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/IOBinding.py", line 222, in open
        flist.open(filename)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/FileList.py", line 36, in open
        return self.EditorWindow(self, filename, key)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 131, in __init__
        EditorWindow.__init__(self, *args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 323, in __init__
        io.loadfile(filename)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/IOBinding.py", line 258, in loadfile
        chars = self.decode(chars)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/IOBinding.py", line 296, in decode
        enc = coding_spec(chars)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/IOBinding.py", line 129, in coding_spec
        for line in lst:
    NameError: global name 'lst' is not defined
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Exception in Tkinter callback
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1470, in __call__
        return self.func(*args)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'
    Traceback (most recent call last):
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 162, in _run_module_as_main
        "__main__", fname, loader, pkg_name)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/runpy.py", line 72, in _run_code
        exec code in run_globals
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/idle.py", line 11, in <module>
        idlelib.PyShell.main()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 1582, in main
        root.mainloop()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/lib-tk/Tkinter.py", line 1068, in mainloop
        self.tk.mainloop(n)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/FileList.py", line 48, in close_all_callback
        reply = edit.close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
        self._close()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/PyShell.py", line 302, in _close
        EditorWindow._close(self)
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
        self.unload_extensions()
      File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
        for ins in self.extensions.values():
    AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'

    @rhettinger rhettinger added release-blocker topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump labels Nov 4, 2013
    @ned-deily
    Copy link
    Member

    This is a duplicate of bpo-19426. The fix for it will be in 2.7.6 final.

    @ned-deily
    Copy link
    Member

    P.S. For users comfortable with the command line, there is an procedure documented here for applying the fix to 2.7.6rc1 (2.7.6 final is expected soon): http://bugs.python.org/issue19484#msg202062

    @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
    release-blocker topic-IDLE type-crash A hard crash of the interpreter, possibly with a core dump
    Projects
    None yet
    Development

    No branches or pull requests

    2 participants