2010-08-12 99 views
6

我想学习winpdb来调试django脚本。我有一个非常简单 Django的运行发现,如果我在命令行启动它,但网站时,我尝试从winpdb它给了我这个错误消息启动它:WinPdb错误(调试Django):CTimeoutHTTP实例没有属性'getresponse'

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. 

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

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

回答

1

这似乎是Python 2.7中rpdb2的一个bug。尝试下载Python 2.6并针对该问题运行winpdb。你需要合适的wxPython库,你需要重新运行:

python setup.py install -f 

安装winpdb。

11

固定在Winpdb 1.4.8

+0

哦,我的天啊,非常感谢你。 rpdb2控制台功能...但不完全符合人体工程学。 – badp 2013-12-09 17:35:18

1

我也有这个完全相同的错误。我从上面的nir建议升级到Winpdb 1.4.6到1.4.8,不再看到它(因为我是一个新用户,所以不能投他的答案)。

相关问题