PyThon Debug采坑--提示 module ‘thread‘ has no attribute ‘start_new_thread‘
編輯:Python
PyThon Debug
C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\_pydevd_bundle\pydevd_resolver.py:127: SyntaxWarning: "is not" with a literal. Did you mean "!="?
if found.get(name) is not 1:
pydev debugger: starting
Connected to pydev debugger (build 181.5540.7)
Traceback (most recent call last):
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\pydevd.py", line 1664, in <module>
main()
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\pydevd.py", line 1658, in main
globals = debugger.run(setup['file'], None, None, is_module)
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\pydevd.py", line 1044, in run
self.prepare_to_run()
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\pydevd.py", line 962, in prepare_to_run
self.patch_threads()
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\pydevd.py", line 983, in patch_threads
patch_thread_modules()
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\helpers\pydev\_pydev_bundle\pydev_monkey.py", line 656, in patch_thread_modules
patch_thread_module(t)
File "C:\Users\Administrator\.IntelliJIdea2018.1\config\plugins\python-ce\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'