WinPdb error (Django debugging): CTimeoutHTTP instance does not have the attribute 'getresponse'

I am trying to learn winpdb for debugging django scripts. I have a very simple django site that runs find if I run it from the command line, but when I try to run it from winpdb it gives me this error message:

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. 

I don’t even know where to start this fix. This CTimeoutHTTP looks like an MFC thing. I installed wxpython with the ANSI version, and then when it complained, I installed the Unicode version (without uninstalling the ANSI version). This is the only unusual thing that I can think of. Any help would be appreciated.

I have to say that it works on Windows XP.

+6
django winpdb
source share
3 answers

Fixed in Winpdb 1.4.8

+11
source

This seems to be a bug with rpdb2 in Python 2.7. Try downloading Python 2.6 and running winpdb against this. You will need the appropriate wxPython library, and you will need to re-run:

 python setup.py install -f 

to install winpdb.

+1
source

I also had the same error. I upgraded from Winpdb 1.4.6 to 1.4.8, as suggested by nir above, and can’t see it anymore (I can’t vote for his answer, as I am a new user).

+1
source

All Articles