Уведомления

Группа в Telegram: @pythonsu

#1 Июль 14, 2007 08:54:42

pythonwin
От:
Зарегистрирован: 2006-07-18
Сообщения: 1294
Репутация: +  0  -
Профиль   Отправить e-mail  

ошибка закрытия idle

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

debian 4.0 stable
pythin2.4



Офлайн

#2 Июль 14, 2007 10:09:15

slav0nic
Команда
От: dp.ua
Зарегистрирован: 2006-05-07
Сообщения: 2260
Репутация: +  41  -
Профиль   Отправить e-mail  

ошибка закрытия idle

запусти из консоли idle и смотри какие ошибки пишет

Офлайн

#3 Авг. 20, 2007 09:37:34

pythonwin
От:
Зарегистрирован: 2006-07-18
Сообщения: 1294
Репутация: +  0  -
Профиль   Отправить e-mail  

ошибка закрытия idle

вот ошибка:

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



Офлайн

#4 Авг. 20, 2007 11:14:17

Viper
От:
Зарегистрирован: 2006-11-08
Сообщения: 137
Репутация: +  0  -
Профиль   Отправить e-mail  

ошибка закрытия idle

Очень похоже что в файле ты используешь не ascii символы и не указываешь кодировку.



Офлайн

#5 Авг. 20, 2007 11:22:31

pythonwin
От:
Зарегистрирован: 2006-07-18
Сообщения: 1294
Репутация: +  0  -
Профиль   Отправить e-mail  

ошибка закрытия idle

Viper
Очень похоже что в файле ты используешь не ascii символы и не указываешь кодировку.
1) если использую русский язык, то указываю кодировку
2) ругается так даже на файлы типа:
b=1
a=b
b=5**5
print



Офлайн

Board footer

Модераторировать

Powered by DjangoBB

Lo-Fi Version