bo602505401 2017-08-13 08:08 采纳率: 0%
浏览 10451
已结题

关于pycharm 调试python时抛出非自身程序异常

直接运行2个print语句,顺利打印,但是一断点就报错"
D:\Code Path\Python\python.exe" "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py" --multiproc --qt-support=auto --client 127.0.0.1 --port 51337 --file D:/Pyworkpace/test.py
pydev debugger: process 5864 is connecting

Connected to pydev debugger (build 172.3544.44)
Traceback (most recent call last):
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py", line 1599, in
globals = debugger.run(setup['file'], None, None, is_module)
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py", line 1002, in run
self.prepare_to_run()
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py", line 905, in prepare_to_run
self.patch_threads()
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev\pydevd.py", line 926, in patch_threads
patch_thread_modules()
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev_pydev_bundle\pydev_monkey.py", line 656, in patch_thread_modules
patch_thread_module(t)
File "D:\Code Path\PyCharm Community Edition 2017.2\helpers\pydev_pydev_bundle\pydev_monkey.py", line 622, in patch_thread_module
_original_start_new_thread = thread._original_start_new_thread = thread.start_new_thread
AttributeError: module 'thread' has no attribute 'start_new_thread'

重新下了几次pycharm也不行,用的是Anaconda的python3.6

  • 写回答

2条回答 默认 最新

  • ZachWangFsqm 2019-03-27 15:29
    关注

    因为你的项目里包含一个叫thread.py的文件,重命名一下即可

    评论

报告相同问题?

悬赏问题

  • ¥15 outlook无法配置成功
  • ¥15 Pwm双极模式H桥驱动控制电机
  • ¥30 这是哪个作者做的宝宝起名网站
  • ¥60 版本过低apk如何修改可以兼容新的安卓系统
  • ¥25 由IPR导致的DRIVER_POWER_STATE_FAILURE蓝屏
  • ¥50 有数据,怎么建立模型求影响全要素生产率的因素
  • ¥50 有数据,怎么用matlab求全要素生产率
  • ¥15 TI的insta-spin例程
  • ¥15 完成下列问题完成下列问题
  • ¥15 C#算法问题, 不知道怎么处理这个数据的转换