pydev importerror: no module named thread, debugging no longer works after pydev upgrade

别等时光非礼了梦想. 提交于 2019-12-07 18:17:18

问题


My Eclipse 3.6 /PyDev setup just did a pydev upgrade to 1.6.0.2010071813 and debugging no longer works. My default python interpreter is 3.1 although I doubt that matters. Until the Eclipse upgrade of pydev, it was working very nicely.


回答1:


This is already fixed in the current nightly (1.6.1). See: http://pydev.org/download.html for details on getting it.

Note that you can just change that "import thread" locally (in org.python.pydev.debug/pysrc/pydevd.py) for:

try:    
    import thread 
except ImportError:
    import _thread as thread #Py3K changed it.

Cheers,

Fabio




回答2:


Downgrade to 1.5.9. Eclipse updates has the option to show all versions, but by default it shows only the latest version. Turn off that setting, and install 1.5.9. It works with python 3.1




回答3:


Same problem here, I am on MacOs 10.6. I tried to reinitialize the configured interpreters, it did not fix the problem. I switched between the built-in Python 2.6 and the newer 2.6.5 provided by MacPorts, this also did not fix it. Looks like it needs another update?

Update: I just tried the same upgrade on Linux (this time with a backup of the Eclipse setup :-) ), and experienced the same problem. It is not a platform issue on Mac.



来源:https://stackoverflow.com/questions/3326740/pydev-importerror-no-module-named-thread-debugging-no-longer-works-after-pydev

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!