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| 必败。
Reply to: