H4ckForJob / dirmap

An advanced web directory & file scanning tool that will be more powerful than DirBuster, Dirsearch, cansina, and Yu Jian.一个高级web目录、文件扫描工具,功能将会强于DirBuster、Dirsearch、cansina、御剑。
GNU General Public License v3.0
3.11k stars 546 forks source link

AttributeError: module 'collections' has no attribute 'MutableSet' #70

Closed zz2846 closed 2 years ago

zz2846 commented 2 years ago

Traceback (most recent call last): File "/xxx/dirmap/dirmap.py", line 19, in from lib.core.option import initoptions File "/xxx/dirmap/lib/core/option.py", line 21, in from thirdlib.IPy.IPy import IP File "/xxx/dirmap/thirdlib/IPy/IPy.py", line 1020, in class IPSet(collections.MutableSet): AttributeError: module 'collections' has no attribute 'MutableSet'

Xiao-Chen-Whoami commented 2 years ago

这是python版本问题,用python3.10.1 我也是这个报错 折腾半天。。。。。结果换个python3.8.7就好了 ,应该是python3.10.X 就会这样

lal0ne commented 2 years ago

修改 dirmap\thirdlib\IPy\IPy.py

# 第1020行
class IPSet(collections.MutableSet):
# 修改为
class IPSet(collections.abc.MutableSet):