Menu ▾ ▴

Pydev - Debug - Could not resolve variable?

2009-01-08
2013-03-15
  • Victor Hooi

    Victor Hooi - 2009-01-08

    heya,

    I'm running Pydev 1.4, under Eclipse 3.3. I've set a breakpoint, and I'm running my code under the Debug Perspective.

    However, in my Variable window, there are no variable, it simply says "Error", and "Could not resolve variable."

    I've checked the error log, and there are a few messages, about "Error fetching a variable". I've pasted the entries from the logfile itself after this. Even though the log file complains about dict_keys having no sort, it's strange there's nothing in the variable window at all.

    Is it an issue with my setup, or is it another issue?

    Cheers,
    Victor

    !ENTRY org.python.pydev.debug 4 4 2009-01-08 15:17:58.047
    !MESSAGE Error fetching a variable
    !STACK 1
    org.eclipse.core.runtime.CoreException: pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

        at org.python.pydev.debug.model.remote.GetVariableCommand.getResponse(GetVariableCommand.java:61)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:86)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:77)
        at org.python.pydev.debug.model.PyVariableCollection.commandComplete(PyVariableCollection.java:68)
        at org.python.pydev.debug.model.remote.AbstractDebuggerCommand.processResponse(AbstractDebuggerCommand.java:114)
        at org.python.pydev.debug.model.remote.DebuggerReader.processCommand(DebuggerReader.java:112)
        at org.python.pydev.debug.model.remote.DebuggerReader.run(DebuggerReader.java:131)
        at java.lang.Thread.run(Unknown Source)
    !SUBENTRY 1 org.python.pydev.debug 4 4 2009-01-08 15:17:58.047
    !MESSAGE pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

    !ENTRY org.python.pydev.debug 4 4 2009-01-08 16:24:56.063
    !MESSAGE Error fetching a variable
    !STACK 1
    org.eclipse.core.runtime.CoreException: pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

        at org.python.pydev.debug.model.remote.GetVariableCommand.getResponse(GetVariableCommand.java:61)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:86)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:77)
        at org.python.pydev.debug.model.PyVariableCollection.commandComplete(PyVariableCollection.java:68)
        at org.python.pydev.debug.model.remote.AbstractDebuggerCommand.processResponse(AbstractDebuggerCommand.java:114)
        at org.python.pydev.debug.model.remote.DebuggerReader.processCommand(DebuggerReader.java:112)
        at org.python.pydev.debug.model.remote.DebuggerReader.run(DebuggerReader.java:131)
        at java.lang.Thread.run(Unknown Source)
    !SUBENTRY 1 org.python.pydev.debug 4 4 2009-01-08 16:24:56.063
    !MESSAGE pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

    !ENTRY org.python.pydev.debug 4 4 2009-01-08 15:17:01.688
    !MESSAGE Error fetching a variable
    !STACK 1
    org.eclipse.core.runtime.CoreException: pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

        at org.python.pydev.debug.model.remote.GetVariableCommand.getResponse(GetVariableCommand.java:61)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:86)
        at org.python.pydev.debug.model.PyVariableCollection.getCommandVariables(PyVariableCollection.java:77)
        at org.python.pydev.debug.model.PyVariableCollection.commandComplete(PyVariableCollection.java:68)
        at org.python.pydev.debug.model.remote.AbstractDebuggerCommand.processResponse(AbstractDebuggerCommand.java:114)
        at org.python.pydev.debug.model.remote.DebuggerReader.processCommand(DebuggerReader.java:112)
        at org.python.pydev.debug.model.remote.DebuggerReader.run(DebuggerReader.java:131)
        at java.lang.Thread.run(Unknown Source)
    !SUBENTRY 1 org.python.pydev.debug 4 4 2009-01-08 15:17:01.719
    !MESSAGE pydevd error:Error resolving variables Traceback (most recent call last):
      File "H:\eclipse-SDK-3.4.1-win32\eclipse\plugins\org.python.pydev.debug_1.4.0\pysrc\pydevd_comm.py", line 564, in doIt
        keys.sort()
    AttributeError: 'dict_keys' object has no attribute 'sort'

     
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-01-08

      Which python version are you using?

      Cheers,

      Fabio

       
    • Victor Hooi

      Victor Hooi - 2009-01-11

      Fabio,

      I'm running Python 3.0 (released).

      Pydev 1.4 should support this, right?

      Cheers,
      Victor

       
      • Fabio Zadrozny

        Fabio Zadrozny - 2009-01-13

        Yes, it should.

        I'll make it work for the next release.

        Cheers,

        Fabio

         
    • Victor Hooi

      Victor Hooi - 2009-01-11

      Fabio,

      I've just tried with Python 2.6.1, and it works...

      Strange - something with Python 3.0?

      Cheers,
      Victor

       
    • Fabio Zadrozny

      Fabio Zadrozny - 2009-01-13

      Ok, just fixed in the svn (for 1.4.2).

      Cheers,

      Fabio