idle-python2.7 - blank window (after ubutu upgrade to 13.10)

Bug #1244145 reported by Jan Hapala
14
This bug affects 3 people
Affects Status Importance Assigned to Milestone
python3.1 (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Hi,

after upgrade of Ubuntu from 13.04 to 13.10, Idle for Python 2.7 has not been working any more:
1) When I choose to open an existing module, I get a blank window (as if the file was empty).
2) I cannot close the window. (No response to clicking on the button.)

When run in the terminal, I get:

problem 1:
==========

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1473, in __call__
    return self.func(*args)
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 937, in open_recent_file
    self.io.open(editFile=fn_closure)
  File "/usr/lib/python2.7/idlelib/IOBinding.py", line 222, in open
    flist.open(filename)
  File "/usr/lib/python2.7/idlelib/FileList.py", line 36, in open
    return self.EditorWindow(self, filename, key)
  File "/usr/lib/python2.7/idlelib/PyShell.py", line 131, in __init__
    EditorWindow.__init__(self, *args)
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 323, in __init__
    io.loadfile(filename)
  File "/usr/lib/python2.7/idlelib/IOBinding.py", line 258, in loadfile
    chars = self.decode(chars)
  File "/usr/lib/python2.7/idlelib/IOBinding.py", line 296, in decode
    enc = coding_spec(chars)
  File "/usr/lib/python2.7/idlelib/IOBinding.py", line 129, in coding_spec
    for line in lst:
NameError: global name 'lst' is not defined

problem 2:
==========

Exception in Tkinter callback
Traceback (most recent call last):
  File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1473, in __call__
    return self.func(*args)
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 1025, in close
    self._close()
  File "/usr/lib/python2.7/idlelib/PyShell.py", line 302, in _close
    EditorWindow._close(self)
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 1032, in _close
    self.unload_extensions()
  File "/usr/lib/python2.7/idlelib/EditorWindow.py", line 1053, in unload_extensions
    for ins in self.extensions.values():
AttributeError: 'PyShellEditorWindow' object has no attribute 'extensions'

Idle-python3.3 works fine.

Tags: idle python2-7
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in python3.1 (Ubuntu):
status: New → Confirmed
Revision history for this message
Jan Hapala (jan-n) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.