OneForAll icon indicating copy to clipboard operation
OneForAll copied to clipboard

动态导入包功能失效 No module named 'modules.certificates.'

Open godzeo opened this issue 3 years ago • 1 comments

是否使用了最新代码

Bug描述 import_func 导入模块失灵,程序直接中断了。 好像动态导入有问题,我之前的mac 没事,但是这个台win7的就不行

运行环境

  • 系统:Windows 7 sp1 64
  • Python版本:3.7.2
  • OneForAll版本:0.4.3 #dev

如何复现 复现步骤(选写) python3 oneforall.py --target baidu.com --fmt json run

复现命令(必写)

报错文本 python3 oneforall.py --target baidu.com --fmt json run

OneForAll is a powerful subdomain integration tool ___ _ _ ___ ___ | | ___ | | | {v0.4.3 #dev} | . | | -| | . | | .'| | | |||||| ||| |__,||| git.io/fjHT1

OneForAll is under development, please update before each use!

[*] Starting OneForAll @ 2021-10-17 21:51:02

21:51:02,928 [INFOR] utils:523 - Checking dependent environment 21:51:02,929 [INFOR] utils:535 - Checking network environment 21:51:03,350 [INFOR] utils:546 - Checking for the latest version 21:51:04,418 [INFOR] utils:570 - The current version v0.4.3 is already the lates t version 21:51:04,419 [INFOR] oneforall:243 - Start running OneForAll 21:51:04,421 [INFOR] oneforall:248 - Got 1 domains 21:51:04,675 [INFOR] wildcard:108 - Detecting baidu.com use wildcard dns record or not 21:51:04,782 [ALERT] wildcard:123 - The domain baidu.com disables wildcard Traceback (most recent call last): File "oneforall.py", line 277, in 21:51:04,783 [INFOR] collectfire.Fire(OneForAll): 44 File "C:\Users\zydx\AppData\Local\Programs\Python\Python37\lib\site-packages \fire\core.py", line 141, in Fire

  • Start collecting subdomains of baidu.comcomponent_trace = _Fire(component
    

, args, parsed_flag_args, context, name)

File "C:\Users\zydx\AppData\Local\Programs\Python\Python37\lib\site-packages\f ire\core.py", line 471, in _Fire target=component.name) File "C:\Users\zydx\AppData\Local\Programs\Python\Python37\lib\site-packages\f ire\core.py", line 681, in CallAndUpdateTrace component = fn(*varargs, **kwargs) File "oneforall.py", line 254, in run self.main() File "oneforall.py", line 159, in main collect.run() File "G:\admin\drf_admin\drf_admin\apps\tools\oneforall2\modules\collect.py", line 46, in run self.import_func() File "G:\admin\drf_admin\drf_admin\apps\tools\oneforall2\modules\collect.py", line 36, in import_func import_object = importlib.import_module(module) File "C:\Users\zydx\AppData\Local\Programs\Python\Python37\lib\importlib_ini t.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 953, in _find_and_load_unlocked File "", line 219, in _call_with_frames_removed File "", line 1006, in _gcd_import File "", line 983, in _find_and_load File "", line 965, in _find_and_load_unlocked ModuleNotFoundError: No module named 'modules.certificates.'

godzeo avatar Oct 17 '21 14:10 godzeo

升级一下Python试试呢?

shmilylty avatar Nov 22 '22 01:11 shmilylty