我无法获得urwid“hello world”示例工作。我尝试使用urwid 1.1.1,1.2.1,使用python 2.7.6,3.4.0,通过pip安装,在clean install ubuntu 13.10,14.04上,我仍然有输出错误:
7 [?47h
Traceback (most recent call last):
File "/home/neo/hello.py", line 6, in <module>
File "/home/neo/urwid/main_loop.py", line 274, in run
self.screen.run_wrapper(self._run)
File "/home/neo/urwid/raw_display.py", line 267, in run_wrapper
self.start(alternate_buffer)
File "/home/neo/urwid/raw_display.py", line 201, in start
fd = self._term_input_file.fileno()
UnsupportedOperation: fileno
运行的代码:
import urwid
txt = urwid.Text(u"Hello World")
fill = urwid.Filler(txt, 'top')
loop = urwid.MainLoop(fill)
loop.run()