0x727 / ShuiZe_0x727

信息收集自动化工具
3.79k stars 572 forks source link

docker安装后运行python3 ShuiZe.py 报错 #177

Open LK00100 opened 4 months ago

LK00100 commented 4 months ago

$ python3 ShuiZe.py Traceback (most recent call last): File "/home/kali/Downloads/ShuiZe_0x727-master/ShuiZe.py", line 11, in import openpyxl File "/usr/local/lib/python3.11/dist-packages/openpyxl/init.py", line 4, in from openpyxl.compat.numbers import NUMPY, PANDAS File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/init.py", line 5, in from .strings import ( File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/strings.py", line 10, in from .numbers import NUMERIC_TYPES File "/usr/local/lib/python3.11/dist-packages/openpyxl/compat/numbers.py", line 49, in numpy.float, ^^^^^^^^^^^ File "/usr/lib/python3/dist-packages/numpy/init.py", line 324, in getattr raise AttributeError(__former_attrs__[attr]) AttributeError: module 'numpy' has no attribute 'float'. np.float was a deprecated alias for the builtin float. To avoid this error in existing code, use float by itself. Doing this will not modify any behavior and is safe. If you specifically wanted the numpy scalar type, use np.float64 here. The aliases was originally deprecated in NumPy 1.20; for more details and guidance see the original release note at: https://numpy.org/devdocs/release/1.20.0-notes.html#deprecations. Did you mean: 'cfloat'?

lzh24 commented 3 months ago

卸载原来的 numpy, 安装pip install -U numpy==1.23.5