我升級日食從3.6到4.2,並從集錦2至3 PyDev的升級日食,集錦,PyDev的後,調試器不工作
現在我不能讓調試工作。我收到以下錯誤:
Traceback (most recent call last):
File "C:\Google\eclipse\plugins\org.python.pydev_2.6.0.2012062121\pysrc\pydevd.py", line 4, in <module>
from pydevd_comm import CMD_CHANGE_VARIABLE, \
File "C:\Google\eclipse\plugins\org.python.pydev_2.6.0.2012062121\pysrc\pydevd_comm.py", line 78, in <module>
import pydevd_console
File "C:\Google\eclipse\plugins\org.python.pydev_2.6.0.2012062121\pysrc\pydevd_console.py", line 3, in <module>
from code import InteractiveConsole
ImportError: cannot import name InteractiveConsole
!ENTRY org.python.pydev.debug 4 4 2012-07-08 22:09:17.635
!MESSAGE Unexpected error setting up the debugger
!STACK 0
java.net.SocketException: Socket operation on nonsocket: configureBlocking
_at java.net.DualStackPlainSocketImpl.configureBlocking(Native Method)
_at java.net.DualStackPlainSocketImpl.socketAccept(Unknown Source)
_at java.net.AbstractPlainSocketImpl.accept(Unknown Source)
_at java.net.PlainSocketImpl.accept(Unknown Source)
_at java.net.ServerSocket.implAccept(Unknown Source)
_at java.net.ServerSocket.accept(Unknown Source)
_at org.python.pydev.debug.model.remote.ListenConnector.run(ListenConnector.java:57)
_at java.lang.Thread.run(Unknown Source)
Fabio,謝謝你的回覆。嘗試了所有的建議和一切似乎沒問題,我玩PYTHONPATH,重新安裝Python 2.7,其他所有工作我可以運行應用程序沒有任何問題,但調試器仍然得到相同的錯誤 – Brian 2012-07-09 14:59:34
你可以試試看。 。除了「導入pydevd_console」(在pydevd_comm.py),看看它是否工作呢? – 2012-07-09 16:05:50
法比奧,是的,這確實奏效! try..except「import pydevd_console」,我不能夠感謝你,我只是把我的頭髮拉出來。再次感謝你。 – Brian 2012-07-09 20:12:57