Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

运行出错 #47

Open
saoqi4826 opened this issue Apr 21, 2020 · 1 comment
Open

运行出错 #47

saoqi4826 opened this issue Apr 21, 2020 · 1 comment

Comments

@saoqi4826
Copy link

定位:\Git\BurstList\dirmap\lib\controller\bruter.py
安装包都装了,我一开始以为是python版本不行,开始是3.7.0,后来换了3.7.7、3.8.2 都不行 我心态崩了 希望大佬能帮忙解决一下 搞了一晚上了 百度好像也没有我这个情况,我也不知道为啥呢

错误:
Admin@PS2020UGTRNSJW MINGW64 ~/Desktop/Git/BurstList/dirmap (master)
$ python dirmap.py -i http://www.xsese.com/ -lcf
Traceback (most recent call last):
File "dirmap.py", line 14, in
from gevent import monkey
File "D:\python3\lib\site-packages\gevent_init_.py", line 86, in
from gevent._hub_local import get_hub
File "D:\python3\lib\site-packages\gevent_hub_local.py", line 101, in
import_c_accel(globals(), 'gevent._hub_local')
File "D:\python3\lib\site-packages\gevent_util.py", line 105, in import_c_accel
mod = importlib.import_module(cname)
File "D:\python3\lib\importlib_init
.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
ModuleNotFoundError: No module named 'gevent.__hub_local'

源代码:582行到591行
#设置进度条长度,若是递归模式或爬虫模式,则不设置任务队列长度,即无法显示进度,仅显示耗时
if not conf.recursive_scan:
#NOTE:这里取所有payloads的长度*target数量计算任务总数,修复issue#2
tasks.task_length = len(payloads.all_payloads)*conf.target_nums
bar.log.start(tasks.task_length)
#FIXME:循环任务数不能一次性取完所有的task,暂时采用每次执行30个任务。这样写还能解决hub.LoopExit的bug
while not tasks.all_task.empty():
all_task = [gevent.spawn(boss) for i in range(conf.request_limit)]
gevent.joinall(all_task)

@kegns
Copy link

kegns commented Jun 5, 2020

我遇到了和你类似的问题,你可以看看是不是python和gevent库匹配的问题,64/32位和版本号都需要满足当前python版本的要求才行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants