6

我已经安装PuDBpython 3.4.2其中virtualenv并运行在windows 7 sp1.

我首先激活 virtualenv

workon env01

然后进入python控制台

python

现在我需要按以下方式测试 PuDB

>>> import pudb
>>> pudb.set_trace()

我得到这个错误

> Traceback (most recent call last):   File "<stdin>", line 1, in
> <module>   File
> "C:\Users\L3\Envs\env01\lib\site-packages\pudb\__init__.py", line 150,
> in set_trace
>     dbg = _get_debugger()   File "C:\Users\L3\Envs\env01\lib\site-packages\pudb\__init__.py", line 35,
> in _get_debugger
>     dbg = Debugger(**kwargs)   File "C:\Users\L3\Envs\env01\lib\site-packages\pudb\debugger.py", line 150,
> in __init__
> 
>    self.ui = DebuggerUI(self, stdin=stdin, stdout=stdout, term_size=term_size)   File
> "C:\Users\L3\Envs\env01\lib\site-packages\pudb\debugger.py", line
> 1871, in __init__
>     self.screen = ThreadsafeRawScreen()   File "C:\Users\L3\Envs\env01\lib\site-packages\urwid\raw_display.py", line
> 89, in __init__
>     fcntl.fcntl(self._resize_pipe_rd, fcntl.F_SETFL, os.O_NONBLOCK) NameError: name 'fcntl' is not defined

难道我做错了什么?

4

0 回答 0