WinPdb错误(调试Django):CTimeoutHTTP实例没有属性'getresponse'

Fre*_*mas 6 django winpdb

我正在尝试学习winpdb来调试django脚本.我有一个非常简单的django网站运行查找,如果我从命令行启动它,但当我尝试从winpdb启动它时,它给我这个错误消息:

RPDB2 - The Remote Python Debugger, version RPDB_2_4_6,
Copyright (C) 2005-2009 Nir Aides.
Type "help", "copyright", "license", "credits" for more information.

*** NEW: Use CTRL-N for auto completion in the following commands: launch,
*** eval and exec.
*** Password has been set to a random password.
*** Starting debuggee...
*** Command returned the following error:
*** <type 'exceptions.AttributeError'>, CTimeoutHTTP instance has no
*** attribute 'getresponse'.
*** Please check stderr for stack trace and report to support.
*** Failed to find script.
Run Code Online (Sandbox Code Playgroud)

我甚至不知道从哪里开始解决这个问题.它CTimeoutHTTP看起来像MFC的东西.我用ANSI版本安装了wxpython,然后当它抱怨时,我安装了unicode版本(没有删除ANSI版本.)这是我能想到的唯一不寻常的东西.任何帮助,将不胜感激.

我应该说,在Windows XP上运行.

小智 11

在Winpdb 1.4.8中修复


小智 1

这似乎是 Python 2.7 中 rpdb2 的一个错误。尝试下载Python 2.6并针对它运行 winpdb。您将需要适当的 wxPython 库,并且需要重新运行:

python setup.py install -f
Run Code Online (Sandbox Code Playgroud)

安装 winpdb。