Cannot debug as Python run

klawzz
2012-01-07
2013-03-15
  • klawzz
    klawzz
    2012-01-07

    Hello.

    Run as 'Python run' works fine here, but debug causes this error:
    Traceback (most recent call last):
      File "/media/sdb1/binaries/linux-i386/eclipse-3.6.1/eclipse/plugins/org.python.pydev.debug_2.3.0.2011121518/pysrc/pydevd.py", line 2, in <module>
        from pydevd_constants import * #@UnusedWildImport
      File "/media/sdb1/binaries/linux-i386/eclipse-3.6.1/eclipse/plugins/org.python.pydev.debug_2.3.0.2011121518/pysrc/pydevd_constants.py", line 42, in <module>
        import threading
      File "/usr/lib/python2.6/threading.py", line 45, in <module>
        module='threading', message='sys.exc_clear')
      File "/usr/lib/python2.6/warnings.py", line 60, in filterwarnings
        item = (action, re.compile(message, re.I), category,
    AttributeError: 'module' object has no attribute 'compile'

    I am using Pydev on Debian Squeeze (Python 2.6.6-3+squeeze6).

    Any Python wizard has an idea what is wrong with my config ?
    Many thanks.