[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: some error of running IDLE2.1



On Thu, Jan 17, 2002 at 11:22:58PM +0800, Carlos Liu wrote:
> 前幾天我的IDLE無法運行,開始是tcl/tk在gb2312下的問題,照lists中的方法解決後,發現IDLE依然出錯,報錯如下:
> /usr/bin$ idle
> Traceback (most recent call last):
>   File "/usr/bin/idle", line 13, in ?
>     PyShell.main()
>   File "/usr/lib/idle-python2.1/PyShell.py", line 759, in main
>     shell = PyShell(flist)
>   File "/usr/lib/idle-python2.1/PyShell.py", line 319, in __init__
>     OutputWindow.__init__(self, flist, None, None)
>   File "/usr/lib/idle-python2.1/OutputWindow.py", line 15, in __init__
>     apply(EditorWindow.__init__, (self,) + args)
>   File "/usr/lib/idle-python2.1/EditorWindow.py", line 121, in __init__
>     width=edconf.getint('width'),
>   File "/usr/lib/idle-python2.1/IdleConf.py", line 71, in getint
>     return self.config.getint(self.section, option)
>   File "/usr/lib/python2.1/ConfigParser.py", line 311, in getint
>     return self.__get(section, string.atoi, option)
>   File "/usr/lib/python2.1/ConfigParser.py", line 308, in __get
>     return conv(self.get(section, option))
>   File "/usr/lib/python2.1/ConfigParser.py", line 276, in get
>     raise NoSectionError(section)
> ConfigParser.NoSectionError: No section: EditorWindow

Obviously, you somehow messed up your idle's configuration file.
Did you edit ~/.idle or something lately?

The config file need to have at least one section in the form of:
[section1]
foo = bar

Otherwise, you get above error.

> 系統是debian unstable,python, python2.1, python2.1-tk, idle, idle-python2.1都已經裝上了,版本是最新的2.1.1-8
> 哪位能幫我看一下,該怎麼解決呀?
> 

-- 
hashao|    故知勝有五:知可以戰與不可以戰者勝,識眾寡之用者勝,上下同欲者
hashao|    勝,以虞待不虞者勝,將能而君不御者勝。此五者,知勝之道也。故曰:
hashao|    知己知彼,百戰不貽;不知彼而知己,一勝一負;不知彼不知己,每戰
hashao|    必敗。

-- 
To UNSUBSCRIBE, email to debian-chinese-gb-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

-- 
| This message was re-posted from debian-chinese-gb@lists.debian.org
| and converted from gb2312 to big5 by an automatic gateway.



Reply to: