首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >WinPdb错误(调试Django) :CTimeoutHTTP实例没有属性'getresponse‘

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

Stack Overflow用户
提问于 2010-08-12 01:08:24
回答 3查看 1.9K关注 0票数 6

我正在尝试学习winpdb来调试django脚本。我有一个非常简单的django网站,如果我从命令行启动它,就会运行find,但是当我尝试从winpdb启动它时,它会给出以下错误消息:

代码语言:javascript
复制
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上。

EN

回答 3

Stack Overflow用户

发布于 2010-08-20 06:43:01

固定在Winpdb 1.4.8中

票数 11
EN

Stack Overflow用户

发布于 2010-08-18 01:39:58

这似乎是Python2.7中rpdb2的一个bug。尝试下载Python2.6并对其运行winpdb。您需要适当的wxPython库,并且需要重新运行:

代码语言:javascript
复制
python setup.py install -f

安装winpdb。

票数 1
EN

Stack Overflow用户

发布于 2010-08-26 14:06:34

我也犯了同样的错误。我按照上面nir的建议将Winpdb1.4.6升级到1.4.8,不再看到它(因为我是一个新用户,所以不能投票给他的答案)。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/3464013

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档