Найти - Пользователи
Полная версия: ошибка закрытия idle
Начало » Инструментальные средства разработки » ошибка закрытия idle
1
pythonwin
в IDLE у меня ошибка - когда создаешь новый файл (ctrl+N), пишешь туда код и сохраняешь и после этого нет возможности закрыть кроме kill :(
может кто-то знает как это исправить?

debian 4.0 stable
pythin2.4
slav0nic
запусти из консоли idle и смотри какие ошибки пишет
pythonwin
вот ошибка:
idle
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/EditorWindow.py”, line 707, in close
File “idlelib/PyShell.py”, line 259, in _close
File “idlelib/EditorWindow.py”, line 712, in _close
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/EditorWindow.py”, line 707, in close
File “idlelib/PyShell.py”, line 259, in _close
File “idlelib/EditorWindow.py”, line 712, in _close
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/EditorWindow.py”, line 707, in close
File “idlelib/PyShell.py”, line 259, in _close
File “idlelib/EditorWindow.py”, line 712, in _close
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/EditorWindow.py”, line 707, in close
File “idlelib/PyShell.py”, line 259, in _close
File “idlelib/EditorWindow.py”, line 712, in _close
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Exception in Tkinter callback
Traceback (most recent call last):
File “lib-tk/Tkinter.py”, line 1348, in __call__
return self.func(*args)
File “idlelib/OutputWindow.py”, line 94, in goto_file_line
File “idlelib/FileList.py”, line 36, in open
File “idlelib/PyShell.py”, line 105, in __init__
File “idlelib/EditorWindow.py”, line 201, in __init__
File “idlelib/IOBinding.py”, line 267, in loadfile
File “idlelib/IOBinding.py”, line 544, in updaterecentfileslist
File “idlelib/EditorWindow.py”, line 592, in update_recent_files_list
UnicodeDecodeError: ‘ascii’ codec can't decode byte 0xd0 in position 18: ordinal not in range(128)
Traceback (most recent call last):
File “/usr/bin/idle”, line 5, in ?
main()
File “idlelib/PyShell.py”, line 1383, in main
File “/usr/lib/python2.4/lib-tk/Tkinter.py”, line 968, in mainloop
self.tk.mainloop(n)
File “/usr/lib/python2.4/lib-tk/Tkinter.py”, line 1343, in __call__
def __call__(self, *args):
KeyboardInterrupt
Viper
Очень похоже что в файле ты используешь не ascii символы и не указываешь кодировку.
pythonwin
Viper
Очень похоже что в файле ты используешь не ascii символы и не указываешь кодировку.
1) если использую русский язык, то указываю кодировку
2) ругается так даже на файлы типа:
b=1
a=b
b=5**5
print
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Powered by DjangoBB