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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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
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!
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
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.