Path: csiph.com!usenet.pasdenom.info!goblin2!goblin.stu.neva.ru!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'win32': 0.03; 'subject:Python': 0.06; 'debugging': 0.07; 'rename': 0.07; 'subject:file': 0.07; 'tkinter': 0.07; '__init__': 0.09; 'callback': 0.09; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'skip:$ 30': 0.09; 'python': 0.11; '36,': 0.16; 'codec': 0.16; 'filename,': 0.16; 'key)': 0.16; 'received:80.91.229.3': 0.16; 'received:dip0.t-ipconnect.de': 0.16; 'received:plane.gmane.org': 0.16; 'received:t-ipconnect.de': 0.16; 'exception': 0.16; 'wrote:': 0.18; 'bit': 0.19; 'import': 0.22; 'header:User- Agent:1': 0.23; 'error': 0.23; 'byte': 0.24; 'skip:" 30': 0.26; 'skip:" 40': 0.26; 'header:X-Complaints-To:1': 0.27; 'skip:( 20': 0.30; '>>>>': 0.31; 'file': 0.32; 'open': 0.33; '(most': 0.33; 'message.': 0.35; "can't": 0.35; 'skip:s 30': 0.35; 'skip:u 20': 0.35; 'nov': 0.38; 'to:addr:python-list': 0.38; 'recent': 0.39; 'delete': 0.39; 'to:addr:python.org': 0.39; 'received:org': 0.40; 'skip:u 10': 0.60; 'further': 0.61; 'more': 0.64; 'invalid': 0.68; '10:': 0.84; '2013,': 0.91 X-Injected-Via-Gmane: http://gmane.org/ To: python-list@python.org From: Peter Otten <__peter__@web.de> Subject: Re: Python shell wont open idle or an exisiting py file Date: Fri, 31 Jan 2014 20:51:06 +0100 Organization: None References: <24EAA33389A147D8BC08B029E2209E16@UserPC> Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7Bit X-Gmane-NNTP-Posting-Host: p5084ab4d.dip0.t-ipconnect.de User-Agent: KNode/4.7.3 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Newsgroups: comp.lang.python Message-ID: Lines: 47 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1391197855 news.xs4all.nl 2896 [2001:888:2000:d::a6]:55376 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python:65136 rpucci2@cox.net wrote: > 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. What happens if you rename $HOME/.idlerc/recent-files.lst (to an arbitrary name, just to keep it around for further debugging if the file indeed triggers the problem)?