我正在尝试学习winpdb来调试django脚本。我有一个非常简单的django网站,如果我从命令行启动它,就会运行find,但是当我尝试从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.我甚至不知道该从哪里开始修这个。CTimeoutHTTP看起来像个MFC的东西。我安装了带有ANSI版本的wxpython,然后当它抱怨时,我安装了unicode版本(没有删除ANSI版本)。这是我唯一能想到的不寻常的事情。任何帮助都将不胜感激。
我应该说,运行在Windows上。
发布于 2010-08-20 06:43:01
固定在Winpdb 1.4.8中
发布于 2010-08-18 01:39:58
这似乎是Python2.7中rpdb2的一个bug。尝试下载Python2.6并对其运行winpdb。您需要适当的wxPython库,并且需要重新运行:
python setup.py install -f安装winpdb。
发布于 2010-08-26 14:06:34
我也犯了同样的错误。我按照上面nir的建议将Winpdb1.4.6升级到1.4.8,不再看到它(因为我是一个新用户,所以不能投票给他的答案)。
https://stackoverflow.com/questions/3464013
复制相似问题