Menu

Pydev 2.2.4 Python 3 debugging won't work

kve
2011-11-10
2013-03-15
  • kve

    kve - 2011-11-10

    Hello,
    using Pydev 2.2.4 and python 2 code (opensuse 64 bit), debugging works.
    But when using python 3, I receive the following error when starting the debugger:
    Traceback (most recent call last):
      File "/home/kristof/bin/eclipse/plugins/org.python.pydev.debug_2.2.4.2011110216/pysrc/pydev_imports.py", line 3, in <module>
        import xmlrpclib
    ImportError: No module named xmlrpclib

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/kristof/bin/eclipse/plugins/org.python.pydev.debug_2.2.4.2011110216/pysrc/pydev_imports.py", line 5, in <module>
        import xmlrpc.client as xmlrpclib
    ImportError: No module named xmlrpc.client

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "/home/kristof/bin/eclipse/plugins/org.python.pydev.debug_2.2.4.2011110216/pysrc/pydevd.py", line 3, in <module>
        import pydev_imports
      File "/home/kristof/bin/eclipse/plugins/org.python.pydev.debug_2.2.4.2011110216/pysrc/pydev_imports.py", line 7, in <module>
        import _pydev_xmlrpclib as xmlrpclib
    SystemError: Objects/tupleobject.c:126: bad argument to internal function

    How can this be solved?
    Best regards

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-11-10

    Which Python 3 version are you using?

    (note: seems like a bug in python itself, but I'll have to take a deeper look to see what's going on there)

    Cheers,

    Fabio

     
  • kve

    kve - 2011-11-10

    Thanks for the quick reply!
    I'm using python version 3.2.1, together with PyQt4, Eclipse Indigo and Pydev 2.2.4
    Debugging in the same environment but with python 2 code works.
    Best regards!

     
  • Fabio Zadrozny

    Fabio Zadrozny - 2011-11-10

    Ok, just checked with Python 3.2.2 and it works there.

    It seems that the difference from 3.2.1 to 3.2.2 is some issue handling urls ( http://www.python.org/download/releases/3.2.2/ ), which could be the problem you're having… so, please check if it works for you with 3.2.2.

    Cheers,

    Fabio

     
  • kve

    kve - 2011-11-10

    Solved!
    Thank you very much Fabio!
    Although the problem was not python 3.2.1, but the fact that somehow python3-xml was not installed. After install of python3-xml everything works like a charm.
    Cheers,
    Kristof.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.