ysrc / xunfeng

巡风是一款适用于企业内网的漏洞快速应急,巡航扫描系统。
GNU General Public License v3.0
3.53k stars 1.34k forks source link

RuntimeError: cryptography requires setuptools 18.5 or newer, please upgrade to a newer version of setuptools #220

Open 0xn0ne opened 5 years ago

0xn0ne commented 5 years ago

部署方式:docker 解决方法: 在 requirements.txt 第一行加上 setuptools=>18.5 或在 Dockerfile 中加入 RUN pip install setuptools=>18.5,保证这条命令在 pip install -r requirements.txt 之前执行即可

image

项目很棒!虽然报错但是目前使用没发现问题,未防后续引起其它bug,先提醒一下

threedr3am commented 5 years ago
Step 12/18 : RUN set -x     && pip install -r /opt/xunfeng/requirements.txt     && ln -s /usr/lib/x86_64-linux-gnu/libpcap.so /usr/lib/x86_64-linux-gnu/libpcap.so.1
 ---> Running in 7fccca54876a
+ pip install -r /opt/xunfeng/requirements.txt
Exception:
Traceback (most recent call last):
  File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
    status = self.run(options, args)
  File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 262, in run
    for req in parse_requirements(filename, finder=finder, options=options, session=session):
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1632, in parse_requirements
    req = InstallRequirement.from_line(line, comes_from, prereleases=getattr(options, "pre", None))
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 173, in from_line
    return cls(req, comes_from, url=url, prereleases=prereleases)
  File "/usr/lib/python2.7/dist-packages/pip/req.py", line 71, in __init__
    req = pkg_resources.Requirement.parse(req)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2667, in parse
    reqs = list(parse_requirements(s))
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2605, in parse_requirements
    line, p, specs = scan_list(VERSION,LINE_END,line,p,(1,2),"version spec")
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2573, in scan_list
    raise ValueError("Expected "+item_name+" in",line,"at",line[p:])
ValueError: ('Expected version spec in', 'setuptools=>18.5', 'at', '=>18.5')

Storing debug log for failure in /root/.pip/pip.log
The command '/bin/sh -c set -x     && pip install -r /opt/xunfeng/requirements.txt     && ln -s /usr/lib/x86_64-linux-gnu/libpcap.so /usr/lib/x86_64-linux-gnu/libpcap.so.1' returned a non-zero code: 2
threedr3am commented 5 years ago

依然报错

0xn0ne commented 5 years ago

依然报错

em..那你别加版本号,直接添加setuptools,或者手动 pip install setuptools

threedr3am commented 5 years ago

多加一行pip install setuptools --upgrade就好了

threedr3am commented 5 years ago

🐂🍺🐂🍺

0xn0ne commented 5 years ago

🐂🍺🐂🍺

hhhh...希望他们能早点修复这个不算什么问题的问题