baidu-security / openrasp-iast

IAST 灰盒扫描工具
Apache License 2.0
439 stars 84 forks source link

1. fix the issue: "AttributeError: 'Thread' object has no attribute '… #27

Closed NeoTheCapt closed 2 years ago

NeoTheCapt commented 2 years ago
openrasp-iast_1   | [!] Module down with exception:
openrasp-iast_1   | Traceback (most recent call last):
openrasp-iast_1   |   File "/home/openrasp-iast/openrasp_iast/core/modules/base.py", line 72, in _run_module
openrasp-iast_1   |     module.run()
openrasp-iast_1   |   File "/home/openrasp-iast/openrasp_iast/core/modules/monitor.py", line 415, in run
openrasp-iast_1   |     if self._check_alive():
openrasp-iast_1   |   File "/home/openrasp-iast/openrasp_iast/core/modules/monitor.py", line 277, in _check_alive
openrasp-iast_1   |     if self.cloud_thread is not None and not self.cloud_thread.isAlive():
openrasp-iast_1   | AttributeError: 'Thread' object has no attribute 'isAlive'

Threading.Thread 's method isAlive() was renamed to is_alive() since Python 3.9.0

CaledoniaProject commented 2 years ago

看了下这个是3.7开始变更的,理论上应该加个版本号判断。具体请 @yinhuochong 看下

yinhuochong commented 2 years ago

看了下这个是3.7开始变更的,理论上应该加个版本号判断。具体请 @yinhuochong 看下

3.9删了,过去版本is_alive就是isAlive, 两个函数是一样的