我正在使用Liclipse,它基本上是带有eclipse的pydev。 python文件运行正常,但是当我尝试在同一文件上使用pydev调试器时,调试器无法启动,并且我找不到关于此错误的任何信息。是pydev中的错误吗?它甚至说:“在处理上述异常期间,发生了另一个异常”
我正在使用python 3.7.1
warning: Debugger speedups using cython not found. Run '"C:\Users\q4116\AppData\Local\Programs\Python\Python37-32\python.exe" "C:\Program Files\Brainwy\LiClipse 5.1.0\plugins\org.python.pydev.core_7.0.0.201811071259\pysrc\setup_cython.py" build_ext --inplace' to build.
pydev debugger: starting (pid: 20104)
Traceback (most recent call last):
File "_pydevd_bundle\pydevd_cython_win32_37_32.pyx", line 134, in _pydevd_bundle.pydevd_cython_win32_37_32.set_additional_thread_info
AttributeError: '_MainThread' object has no attribute 'additional_info'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Program Files\Brainwy\LiClipse 5.1.0\plugins\org.python.pydev.core_7.0.0.201811071259\pysrc\pydevd.py", line 1951, in <module>
main()
File "C:\Program Files\Brainwy\LiClipse 5.1.0\plugins\org.python.pydev.core_7.0.0.201811071259\pysrc\pydevd.py", line 1945, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Program Files\Brainwy\LiClipse 5.1.0\plugins\org.python.pydev.core_7.0.0.201811071259\pysrc\pydevd.py", line 1295, in run
self.notify_thread_created(thread_id, t)
File "C:\Program Files\Brainwy\LiClipse 5.1.0\plugins\org.python.pydev.core_7.0.0.201811071259\pysrc\pydevd.py", line 662, in notify_thread_created
additional_info = set_additional_thread_info(thread)
File "_pydevd_bundle\pydevd_cython_win32_37_32.pyx", line 138, in _pydevd_bundle.pydevd_cython_win32_37_32.set_additional_thread_info
File "_pydevd_bundle\pydevd_cython_win32_37_32.pyx", line 147, in _pydevd_bundle.pydevd_cython_win32_37_32.set_additional_thread_info
File "_pydevd_bundle\pydevd_cython_win32_37_32.pyx", line 95, in _pydevd_bundle.pydevd_cython_win32_37_32.PyDBAdditionalThreadInfo.__init__
AttributeError: '_pydevd_bundle.pydevd_cython_win32_37_32.PyDBAdditionalThreadInfo' object has no attribute 'pydev_state'
答案 0 :(得分:4)
对不起。这是PyDev 7.0.0中的错误。我刚刚完成了PyDev的新版本的上传,LiClipse也差不多了(限制因素是我的互联网连接速度,所以应该在几个小时内就可以使用)。
同时,删除加速器(并在本地创建并重新创建)应该可以使其再次工作。即:删除_pydevd_bundle * .pyd和_pydevd_bundle \ pydevd_frame_eval * .pyd并在本地执行setup_cython.py(如果不需要加速器模块,则不要这样做)。
答案 1 :(得分:2)
更新这些软件包后,我遇到了同样的问题:
不是运行LiClipse,而是运行Eclipse + pydev。
我现在通过还原更新解决了它。单击帮助>关于Eclipse IDE>安装详细信息>安装历史>单击最后一个工作版本>还原
我应该保留错误信息,以便可以提交适当的错误报告...