【发布时间】:2020-09-14 08:35:13
【问题描述】:
**在我的一个项目中,我在 Pycharm IDE 2019.2 上使用 Django==2.1.5,并且在调试时遇到此错误
1)我尝试通过删除.idea文件夹并重新配置来解决此问题,但问题没有解决。
2)我已经尝试卸载python并重新安装,问题没有解决。
3)我已经更新了Pycharm并尝试了,问题没有解决同样的错误正在抛出。**
Unhandled exception in thread started by <_pydev_bundle.pydev_monkey._NewThreadStartupWithTrace object at 0x0576E6F0>
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\_pydevd_bundle\pydevd_constants.py", line 328, in get_current_thread_id
AttributeError: '_DummyThread' object has no attribute '__pydevd_id__'
During handling of the above exception, another exception occurred:
SystemError: ..\Objects\codeobject.c:851: bad argument to internal function
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\_pydev_bundle\pydev_monkey.py", line 718, in __call__
File "C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\_pydevd_bundle\pydevd_constants.py", line 335, in get_current_thread_id
File "C:\Program Files\JetBrains\PyCharm 2019.2\helpers\pydev\_pydevd_bundle\pydevd_constants.py", line 302, in _get_or_compute_thread_id_with_lock
SystemError: <built-in method __enter__ of _thread.lock object at 0x0144ADA0> returned a result with an error set
【问题讨论】:
标签: django python-3.x debugging pycharm