【问题标题】:WinPdb Error (Debugging Django) :CTimeoutHTTP instance has no attribute 'getresponse'WinPdb 错误(调试 Django):CTimeoutHTTP 实例没有属性“getresponse”
【发布时间】:2011-03-28 16:47:54
【问题描述】:

我正在尝试学习 winpdb 来调试 django 脚本。我有一个 very 简单的 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 XP 上运行。

【问题讨论】:

    标签: django winpdb


    【解决方案1】:

    在 Winpdb 1.4.8 中修复

    【讨论】:

    • 天哪,非常感谢。 rpdb2 控制台……功能齐全,但不完全符合人体工程学。
    【解决方案2】:

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

    python setup.py install -f
    

    安装winpdb。

    【讨论】:

      【解决方案3】:

      我也遇到了同样的错误。我按照上面 nir 的建议从 Winpdb 1.4.6 升级到 1.4.8 并且不再看到它(因为我是新用户,所以无法投票给他的答案)。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 2016-06-10
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-01-22
        • 1970-01-01
        相关资源
        最近更新 更多