Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #65133

Python shell wont open idle or an exisiting py file

From <rpucci2@cox.net>
Subject Python shell wont open idle or an exisiting py file
Date 2014-01-31 12:01 -0500
Newsgroups comp.lang.python
Message-ID <mailman.6213.1391191555.18130.python-list@python.org> (permalink)

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

Python 3.3.3 (v3.3.3:c3896275c0f6, Nov 18 2013, 21:18:40) [MSC v.1600 32 bit (Intel)] on win32
Type "copyright", "credits" or "license()" for more information.
>>> import idlelib.idle
Exception in Tkinter callback
Traceback (most recent call last):
  File "C:\Python33\lib\tkinter\__init__.py", line 1475, in __call__
    return self.func(*args)
  File "C:\Python33\lib\idlelib\EditorWindow.py", line 927, in open_recent_file
    self.io.open(editFile=fn_closure)
  File "C:\Python33\lib\idlelib\IOBinding.py", line 183, in open
    flist.open(filename)
  File "C:\Python33\lib\idlelib\FileList.py", line 36, in open
    edit = self.EditorWindow(self, filename, key)
  File "C:\Python33\lib\idlelib\PyShell.py", line 126, in __init__
    EditorWindow.__init__(self, *args)
  File "C:\Python33\lib\idlelib\EditorWindow.py", line 287, in __init__
    if io.loadfile(filename):
  File "C:\Python33\lib\idlelib\IOBinding.py", line 242, in loadfile
    self.updaterecentfileslist(filename)
  File "C:\Python33\lib\idlelib\IOBinding.py", line 523, in updaterecentfileslist
    self.editwin.update_recent_files_list(filename)
  File "C:\Python33\lib\idlelib\EditorWindow.py", line 915, in update_recent_files_list
    menu.delete(0, END)  # clear, and rebuild:
  File "C:\Python33\lib\tkinter\__init__.py", line 2778, in delete
    if 'command' in self.entryconfig(i):
  File "C:\Python33\lib\tkinter\__init__.py", line 2788, in entryconfigure
    return self._configure(('entryconfigure', index), cnf, kw)
  File "C:\Python33\lib\tkinter\__init__.py", line 1247, in _configure
    self.tk.call(_flatten((self._w, cmd)))):
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 10: invalid start byte

This is the error message.

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Python shell wont open idle or an exisiting py file <rpucci2@cox.net> - 2014-01-31 12:01 -0500

csiph-web